diff options
Diffstat (limited to 'fxjs')
-rw-r--r-- | fxjs/cfxjse_formcalc_context.cpp | 2 | ||||
-rw-r--r-- | fxjs/cjs_util.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fxjs/cfxjse_formcalc_context.cpp b/fxjs/cfxjse_formcalc_context.cpp index 14053c8d33..4157c29426 100644 --- a/fxjs/cfxjse_formcalc_context.cpp +++ b/fxjs/cfxjse_formcalc_context.cpp @@ -1892,7 +1892,7 @@ bool CFXJSE_FormCalcContext::IsIsoTimeFormat(const char* pData, iIndex += kSubSecondLength; } - if (iIndex < iLength && FXSYS_toASCIIlower(pData[iIndex]) == 'z') + if (iIndex < iLength && FXSYS_towlower(pData[iIndex]) == 'z') return true; int32_t iSign = 1; diff --git a/fxjs/cjs_util.cpp b/fxjs/cjs_util.cpp index 25d4590259..883d022006 100644 --- a/fxjs/cjs_util.cpp +++ b/fxjs/cjs_util.cpp @@ -264,9 +264,9 @@ CJS_Return CJS_Util::printx(CJS_Runtime* pRuntime, enum CaseMode { kPreserveCase, kUpperCase, kLowerCase }; static wchar_t TranslateCase(wchar_t input, CaseMode eMode) { - if (eMode == kLowerCase && FXSYS_isASCIIupper(input)) + if (eMode == kLowerCase && FXSYS_iswupper(input)) return input | 0x20; - if (eMode == kUpperCase && FXSYS_isASCIIlower(input)) + if (eMode == kUpperCase && FXSYS_iswlower(input)) return input & ~0x20; return input; } |