|
version 1.7, 2007/11/05 13:56:25
|
version 1.8, 2007/11/14 23:41:58
|
|
|
|
| | |
| std::string Path::toWindows() const { | std::string Path::toWindows() const { |
| std::stringstream result; | std::stringstream result; |
| result << |
const char cDrive = |
| ((drive >= 'A' && drive <= 'Z') || (drive >= 'a' && drive <= 'z')) | ((drive >= 'A' && drive <= 'Z') || (drive >= 'a' && drive <= 'z')) |
| ? drive : '?'; | ? drive : '?'; |
| |
result << cDrive; |
| result << ':'; | result << ':'; |
| for (int iElement = 0; iElement < elements.size(); iElement++) { | for (int iElement = 0; iElement < elements.size(); iElement++) { |
| // append encoded node to full encoded path | // append encoded node to full encoded path |
|
|
|
| return result; | return result; |
| } | } |
| | |
| Path Path::fromWindowsPath(std::string path) { |
Path Path::fromWindows(std::string path) { |
| Path result; | Path result; |
| | |
| int nodeEnd = 0; | int nodeEnd = 0; |