svl/source/numbers/numfmuno.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit eeb6f0740903a7e78156cf755cc442383ace77d9
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Wed Jun 15 11:13:23 2022 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Wed Jun 15 14:29:48 2022 +0200

    Use rtl::isAsceeLowerCase/rtl::toAsciiUpperCase
    
    Change-Id: I61593b4f147bb2b83bd979f8fd429b70b3286d77
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135885
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx
index 4c3d4abda553..4e1ffed5b21f 100644
--- a/svl/source/numbers/numfmuno.cxx
+++ b/svl/source/numbers/numfmuno.cxx
@@ -21,6 +21,7 @@
 #include <o3tl/any.hxx>
 #include <osl/mutex.hxx>
 #include <osl/diagnose.h>
+#include <rtl/character.hxx>
 #include <rtl/ustring.hxx>
 
 #include <com/sun/star/util/Date.hpp>
@@ -449,8 +450,8 @@ sal_Int32 SAL_CALL SvNumberFormatsObj::queryKey( const 
OUString& aFormat,
             }
             else if (*p == '"')
                 bQuoted = true;
-            else if ('a' <= *p && *p <= 'z')
-                *p -= 0x20;     // upper
+            else if (rtl::isAsciiLowerCase(*p))
+                *p = rtl::toAsciiUpperCase(*p);
             else if (*p == '\\')
                 ++p;            // skip escaped next char
                 // Theoretically that should cater for UTF-32 with

Reply via email to