File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -357,12 +357,14 @@ yup_wchar CharacterFunctions::toLowerCase (const yup_wchar character) noexcept
357357
358358bool 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
363364bool 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
368370YUP_END_IGNORE_WARNINGS_MSVC
You can’t perform that action at this time.
0 commit comments