X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1701c4d42145de20ece5ddb87c7f4b993445bf77..335a0bc33903ff598cf002524c8ceb4a222e55d9:/src/regex/regc_locale.c diff --git a/src/regex/regc_locale.c b/src/regex/regc_locale.c index 331f6d1935..7370318b84 100644 --- a/src/regex/regc_locale.c +++ b/src/regex/regc_locale.c @@ -11,9 +11,9 @@ * * RCS: @(#) $Id$ * - * wxWindows: + * wxWidgets: * The Scriptics license can be found in the file COPYRIGHT. Modifications - * for wxWindows are under the wxWindows licence, see README for details. + * for wxWidgets are under the wxWidgets licence, see README for details. */ #define CONST const @@ -634,9 +634,9 @@ static struct cclass { */ #define Tcl_UniChar wxChar -Tcl_UniChar Tcl_UniCharToUpper(int ch) { return wxToupper(ch); } -Tcl_UniChar Tcl_UniCharToLower(int ch) { return wxTolower(ch); } -Tcl_UniChar Tcl_UniCharToTitle(int ch) { return wxToupper(ch); } +Tcl_UniChar Tcl_UniCharToUpper(int ch) { return wxCRT_ToupperNative(ch); } +Tcl_UniChar Tcl_UniCharToLower(int ch) { return wxCRT_TolowerNative(ch); } +Tcl_UniChar Tcl_UniCharToTitle(int ch) { return wxCRT_ToupperNative(ch); } #endif /* !wxUSE_UNICODE */ @@ -703,7 +703,7 @@ element(v, startp, endp) /* search table */ for (cn=cnames; cn->name!=NULL; cn++) { - if (wxStrlen_(cn->name)==len && wxStrncmp(cn->name, startp, len)==0) { + if (wxCRT_StrlenNative(cn->name)==len && wxCRT_StrncmpNative(cn->name, startp, len)==0) { break; /* NOTE BREAK OUT */ } } @@ -871,8 +871,8 @@ cclass(v, startp, endp, cases) * Remap lower and upper to alpha if the match is case insensitive. */ - if (cases && len == 5 && (wxStrncmp(_T("lower"), np, 5) == 0 - || wxStrncmp(_T("upper"), np, 5) == 0)) { + if (cases && len == 5 && (wxCRT_StrncmpNative(_T("lower"), np, 5) == 0 + || wxCRT_StrncmpNative(_T("upper"), np, 5) == 0)) { np = _T("alpha"); } @@ -882,7 +882,7 @@ cclass(v, startp, endp, cases) index = -1; for (namePtr=classNames,i=0 ; *namePtr!=NULL ; namePtr++,i++) { - if ((wxStrlen_(*namePtr) == len) && (wxStrncmp(*namePtr, np, len) == 0)) { + if ((wxCRT_StrlenNative(*namePtr) == len) && (wxCRT_StrncmpNative(*namePtr, np, len) == 0)) { index = i; break; } @@ -1057,11 +1057,11 @@ int cases; /* case-independent? */ /* find the name */ len = endp - startp; np = startp; - if (cases && len == 5 && (wxStrncmp(_T("lower"), np, 5) == 0 || - wxStrncmp(_T("upper"), np, 5) == 0)) + if (cases && len == 5 && (wxCRT_StrncmpNative(_T("lower"), np, 5) == 0 || + wxCRT_StrncmpNative(_T("upper"), np, 5) == 0)) np = _T("alpha"); for (cc = cclasses; cc->name != NULL; cc++) - if (wxStrlen_(cc->name) == len && wxStrncmp(cc->name, np, len) == 0) + if (wxCRT_StrlenNative(cc->name) == len && wxCRT_StrncmpNative(cc->name, np, len) == 0) break; /* NOTE BREAK OUT */ if (cc->name == NULL) { ERR(REG_ECTYPE);