|
|
|
@ -134,12 +134,12 @@ std::string standardizePath(const std::string &path, bool addFinalSlash)
|
|
|
|
|
return newPath;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
inline bool isCharacter(char c)
|
|
|
|
|
inline bool isCharacter(uint8 c)
|
|
|
|
|
{
|
|
|
|
|
return (32 <= c /*&& c <= 127) || (161 <= c*/ && c <= 255);
|
|
|
|
|
return (32 <= c /*&& c <= 127) || (161 <= c*/ /*&& c <= 255*/);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
inline char stripFrenchLocale(char c)
|
|
|
|
|
inline uint8 stripFrenchLocale(uint8 c)
|
|
|
|
|
{
|
|
|
|
|
if (192 <= c && c <= 197) return 'a';
|
|
|
|
|
if (200 <= c && c <= 203) return 'e';
|
|
|
|
@ -383,7 +383,7 @@ public:
|
|
|
|
|
{
|
|
|
|
|
if (!isCharacter(buffer[j]))
|
|
|
|
|
{
|
|
|
|
|
if (buffer[j + 1] == '\\' && buffer[j + 2] == '\\' || buffer[j] == 0)
|
|
|
|
|
if ((buffer[j + 1] == '\\' && buffer[j + 2] == '\\') || buffer[j] == 0)
|
|
|
|
|
{
|
|
|
|
|
beginPath = j + 1;
|
|
|
|
|
break;
|
|
|
|
@ -432,7 +432,7 @@ public:
|
|
|
|
|
|
|
|
|
|
if (NLMISC::CFile::isDirectory(subPath))
|
|
|
|
|
{
|
|
|
|
|
if (subPath.find("\\.") == std::string.npos)
|
|
|
|
|
if (subPath.find("\\.") == std::string::npos)
|
|
|
|
|
doDirectory(subPath);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -491,7 +491,7 @@ public:
|
|
|
|
|
|
|
|
|
|
if (NLMISC::CFile::isDirectory(subPath))
|
|
|
|
|
{
|
|
|
|
|
if (subPath.find("\\.") == std::string.npos)
|
|
|
|
|
if (subPath.find("\\.") == std::string::npos)
|
|
|
|
|
doDirectory(subPath);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|