Logo Search packages:      
Sourcecode: jmk version File versions  Download package

static StringList edu::neu::ccs::jmk::StringUtils::dirs ( StringList  input,
StringList  list 
) [inline, static, package]

This method expands a list of file names into a list of all directories in those files. The inputs and outputs use generic separators.

See also:

Definition at line 203 of file StringUtils.java.

References generalizePaths(), edu::neu::ccs::jmk::StringList::getRest(), edu::neu::ccs::jmk::StringList::getString(), localizePaths(), and edu::neu::ccs::jmk::StringList::setRest().

    if (input == null)
      return list;
    else {
      StringList head = new StringList("");
      StringList last = head;
      for (; input != null; input = input.getRest()) {
      String string = input.getString();
      String[] dirList = FileOperator.dirs(localizePaths(string));
      for (int i = 0; i < dirList.length; i++) {
        StringList temp = new StringList(generalizePaths(dirList[i]));
        last = temp;
      return head.getRest();

Generated by  Doxygen 1.6.0   Back to index