Go to the source code of this file.
Functions | |
| int | test_parse_path () |
|
|
Definition at line 31 of file testp.cxx. References parse_path(). 00032 {
00033 const char* paths[] = {
00034 "/an/absolute/path",
00035 "a/relative/path",
00036 "a/path/ending/in/slash/",
00037 "/a/path/with//double/slash",
00038 ".",
00039 "a/path/with/a/./dot",
00040 "",
00041 0
00042 };
00043
00044 for (int ind=0; paths[ind]; ++ind) {
00045 vector<string> vs = parse_path(paths[ind]);
00046 cerr << "\"" << paths[ind] << "\" " << vs.size() << " subdirs: ";
00047 for (unsigned int i=0;i<vs.size();++i)
00048 cerr << "\"" << vs[i] << "\" ";
00049 cerr << endl;
00050 }
00051
00052
00053 return 0;
00054 } // end of main()
|
1.3.9.1