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

bool Poco::Path::tryParse ( const std::string &  path,
Style  style 

Tries to interpret the given string as a path in native format. If the path is syntactically valid, assigns the path and returns true. Otherwise leaves the object unchanged and returns false.

Definition at line 277 of file Path.cpp.

References assign(), and parse().

            Path p;
            p.parse(path, style);
            return true;
      catch (...)
            return false;

Generated by  Doxygen 1.6.0   Back to index