git-svn-id: svn://db.shs.com.ru/pip@925 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2020-03-06 23:24:29 +00:00
parent eed9f1db51
commit 48d91c2551

View File

@@ -95,7 +95,7 @@ int charCompare(const ushort * f, const ushort * s) {
# ifdef WINDOWS # ifdef WINDOWS
CompareStringW(LOCALE_USER_DEFAULT, 0, (PCNZWCH)f, 1, (PCNZWCH)s, 1); CompareStringW(LOCALE_USER_DEFAULT, 0, (PCNZWCH)f, 1, (PCNZWCH)s, 1);
# else # else
strcmp((const char *)f, (const char *)s); wcsncmp((const wchar_t *)f, (const wchar_t *)s, 1);
# endif # endif
#endif #endif
} }
@@ -277,7 +277,7 @@ PIChar PIChar::toUpper() const {
return PIChar(wc); return PIChar(wc);
# endif # endif
#endif #endif
return PIChar(toupper(ch)); return PIChar(towupper(ch));
} }
@@ -295,7 +295,7 @@ PIChar PIChar::toLower() const {
return PIChar(wc); return PIChar(wc);
# endif # endif
#endif #endif
return PIChar(tolower(ch)); return PIChar(towlower(ch));
} }