1225 |
} |
} |
1226 |
|
|
1227 |
String s = FilePath; |
String s = FilePath; |
|
|
|
|
#if WIN32 |
|
|
for (int i = 0; i < s.length(); i++) { |
|
|
if (s[i] == '\\') s[i] = '/'; |
|
|
} |
|
|
#endif |
|
|
|
|
1228 |
s = toEscapedFsPath(s); |
s = toEscapedFsPath(s); |
1229 |
BindTextParam(pStmt, 2, s); |
BindTextParam(pStmt, 2, s); |
1230 |
String ver = ""; |
String ver = ""; |
1857 |
} |
} |
1858 |
|
|
1859 |
String InstrumentsDb::toEscapedFsPath(String FsPath) { |
String InstrumentsDb::toEscapedFsPath(String FsPath) { |
1860 |
|
#ifdef WIN32 |
1861 |
|
replace(FsPath.begin(), FsPath.end(), '\\', '/'); |
1862 |
|
#endif |
1863 |
return toEscapedText(FsPath); |
return toEscapedText(FsPath); |
1864 |
} |
} |
1865 |
|
|
1866 |
String InstrumentsDb::toNonEscapedFsPath(String FsPath) { |
String InstrumentsDb::toNonEscapedFsPath(String FsPath) { |
1867 |
return toNonEscapedText(FsPath); |
FsPath = toNonEscapedText(FsPath); |
1868 |
|
#ifdef WIN32 |
1869 |
|
replace(FsPath.begin(), FsPath.end(), '/', '\\'); |
1870 |
|
#endif |
1871 |
|
return FsPath; |
1872 |
} |
} |
1873 |
|
|
1874 |
String InstrumentsDb::toAbstractName(String DbName) { |
String InstrumentsDb::toAbstractName(String DbName) { |