summaryrefslogtreecommitdiff
path: root/rsc/source/tools/rscchar.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'rsc/source/tools/rscchar.cxx')
-rw-r--r--rsc/source/tools/rscchar.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsc/source/tools/rscchar.cxx b/rsc/source/tools/rscchar.cxx
index 463622671766..fb5411407b54 100644
--- a/rsc/source/tools/rscchar.cxx
+++ b/rsc/source/tools/rscchar.cxx
@@ -106,9 +106,9 @@ char * RscChar::MakeUTF8( char * pStr, sal_uInt16 nTextEncoding )
sal_uInt16 nChar = 0;
int i = 0;
++pStr;
- while( isxdigit( *pStr ) && i != 2 )
+ while( rtl::isAsciiHexDigit( static_cast<unsigned char>(*pStr) ) && i != 2 )
{
- if( isdigit( *pStr ) )
+ if( rtl::isAsciiDigit( static_cast<unsigned char>(*pStr) ) )
nChar = nChar * 16 + (sal_uInt8)*pStr - (sal_uInt8)'0';
else if( rtl::isAsciiUpperCase( static_cast<unsigned char>(*pStr) ) )
nChar = nChar * 16 + (sal_uInt8)*pStr - (sal_uInt8)'A' +10;