/[svn]/linuxsampler/trunk/src/common/Path.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/Path.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1471 by schoenebeck, Mon Nov 5 13:56:26 2007 UTC revision 1481 by senoner, Wed Nov 14 23:42:15 2007 UTC
# Line 115  std::string Path::toLscp() const { Line 115  std::string Path::toLscp() const {
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
# Line 206  Path Path::fromDbPath(std::string path) Line 207  Path Path::fromDbPath(std::string 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;

Legend:
Removed from v.1471  
changed lines
  Added in v.1481

  ViewVC Help
Powered by ViewVC