(file) Return to Path.cpp CVS log (file) (dir) Up to [ls] / linuxsampler / src / common

Diff for /linuxsampler/src/common/Path.cpp between version 1.7 and 1.8

This file is part of LinuxSampler, which is licensed under the GNU GPL with the exception that USAGE of the source code, libraries and applications FOR COMMERCIAL HARDWARE OR SOFTWARE PRODUCTS IS NOT ALLOWED without prior written permission by the LinuxSampler authors. If you have questions on the subject, that are not yet covered by the FAQ, please contact us.


version 1.7, 2007/11/05 13:56:25 version 1.8, 2007/11/14 23:41:58
Line 115 
Line 115 
  
 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
Line 206 
Line 207 
     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;


Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

LinuxSampler Developers
Powered by
ViewCVS