115 |
|
|
116 |
std::string Path::toWindows() const { |
std::string Path::toWindows() const { |
117 |
std::stringstream result; |
std::stringstream result; |
118 |
result << |
const char cDrive = |
119 |
((drive >= 'A' && drive <= 'Z') || (drive >= 'a' && drive <= 'z')) |
((drive >= 'A' && drive <= 'Z') || (drive >= 'a' && drive <= 'z')) |
120 |
? drive : '?'; |
? drive : '?'; |
121 |
|
result << cDrive; |
122 |
result << ':'; |
result << ':'; |
123 |
for (int iElement = 0; iElement < elements.size(); iElement++) { |
for (int iElement = 0; iElement < elements.size(); iElement++) { |
124 |
// append encoded node to full encoded path |
// append encoded node to full encoded path |
207 |
return result; |
return result; |
208 |
} |
} |
209 |
|
|
210 |
Path Path::fromWindowsPath(std::string path) { |
Path Path::fromWindows(std::string path) { |
211 |
Path result; |
Path result; |
212 |
|
|
213 |
int nodeEnd = 0; |
int nodeEnd = 0; |