Skip to content

Commit b2e93c0

Browse files
committed
Fix issue
1 parent 3b5629f commit b2e93c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/yup_core/text/yup_CharacterFunctions.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,12 +357,14 @@ yup_wchar CharacterFunctions::toLowerCase (const yup_wchar character) noexcept
357357

358358
bool CharacterFunctions::isUpperCase (const yup_wchar character) noexcept
359359
{
360-
return upperCaseToLowerCaseMap().find (character) != std::cend (upperCaseToLowerCaseMap());
360+
return upperCaseToLowerCaseMap().find (character) != std::cend (upperCaseToLowerCaseMap())
361+
|| iswupper ((wint_t) character) != 0;
361362
}
362363

363364
bool CharacterFunctions::isLowerCase (const yup_wchar character) noexcept
364365
{
365-
return lowerCaseToUpperCaseMap().find (character) != std::cend (lowerCaseToUpperCaseMap());
366+
return lowerCaseToUpperCaseMap().find (character) != std::cend (lowerCaseToUpperCaseMap())
367+
|| iswlower ((wint_t) character) != 0;
366368
}
367369

368370
YUP_END_IGNORE_WARNINGS_MSVC

0 commit comments

Comments
 (0)