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

bool Poco::Path::find ( const std::string &  pathList,
const std::string &  name,
Path path 
) [static]

Searches the file with the given name in the locations (paths) specified by it and end. A relative path may be given in name.

If the file is found in one of the locations, the complete path of the file is stored in the path given as argument and true is returned. Otherwise false is returned and the path argument remains unchanged.

Definition at line 626 of file Path.cpp.

References Poco::StringTokenizer::begin(), Poco::StringTokenizer::end(), find(), pathSeparator(), and Poco::StringTokenizer::TOK_TRIM.

      StringTokenizer st(pathList, std::string(1, pathSeparator()), StringTokenizer::TOK_IGNORE_EMPTY + StringTokenizer::TOK_TRIM);
      return find(st.begin(), st.end(), name, path);

Generated by  Doxygen 1.6.0   Back to index