git-svn-id: svn://db.shs.com.ru/pip@956 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -90,6 +90,8 @@ ushort charFromCodepage(const char * c, int size, const char * codepage, int * t
|
|||||||
|
|
||||||
|
|
||||||
int charCompare(const PIChar & f, const PIChar & s) {
|
int charCompare(const PIChar & f, const PIChar & s) {
|
||||||
|
if (f.isAscii() && s.isAscii())
|
||||||
|
return strncmp(f.toCharPtr(), s.toCharPtr(), 1);
|
||||||
return
|
return
|
||||||
#ifdef PIP_ICU
|
#ifdef PIP_ICU
|
||||||
u_strCompare((const UChar*)f.toWCharPtr(), 1, (const UChar*)s.toWCharPtr(), 1, FALSE);
|
u_strCompare((const UChar*)f.toWCharPtr(), 1, (const UChar*)s.toWCharPtr(), 1, FALSE);
|
||||||
|
|||||||
Reference in New Issue
Block a user