summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2013-06-22 14:51:36 +0200
committerMichael Stahl <mstahl@redhat.com>2013-06-24 22:03:31 +0000
commit337225b36a2965cca532c73f02e9313149f73d80 (patch)
tree8557073192e5cf2ebea162de936eb3f95d2fb059 /sc
parent126827b0fdc2277d728d57d4fe68b446fa2f7a08 (diff)
Replace more characters functions with rtl/character.hxx
Change-Id: I70f3c31e4b2f44d2b30020a588aaa53d3b63d452 Reviewed-on: https://gerrit.libreoffice.org/4447 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/compiler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index afd50e1c8f57..d0ef4addf033 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -570,7 +570,7 @@ static bool lcl_parseExternalName(
{
do
{
- if (CharClass::isAsciiAlphaNumeric(c))
+ if (rtl::isAsciiAlphanumeric(c))
// allowed.
break;
@@ -2156,7 +2156,7 @@ Label_MaskStateMachine:
}
}
else if ((nMask & SC_COMPILER_C_WORD_SEP) ||
- (c < 128 && !CharClass::isAsciiAlphaNumeric( c)))
+ (c < 128 && !rtl::isAsciiAlphanumeric( c)))
{
bAdd = false;
eState = ssStop;
@@ -2781,7 +2781,7 @@ bool ScCompiler::IsReference( const String& rName )
if ( ch1 == cDecSep )
return false;
// Who was that imbecile introducing '.' as the sheet name separator!?!
- if ( CharClass::isAsciiNumeric( OUString(ch1) ) )
+ if ( rtl::isAsciiDigit( ch1 ) )
{
// Numerical sheet name is valid.
// But English 1.E2 or 1.E+2 is value 100, 1.E-2 is 0.01
@@ -2798,7 +2798,7 @@ bool ScCompiler::IsReference( const String& rName )
}
sal_Unicode const * const pTabSep = rName.GetBuffer() + nPos;
sal_Unicode ch2 = pTabSep[1]; // maybe a column identifier
- if ( !(ch2 == '$' || CharClass::isAsciiAlpha( ch2 )) )
+ if ( !(ch2 == '$' || rtl::isAsciiAlpha( ch2 )) )
return false;
if ( cDecSep == '.' && (ch2 == 'E' || ch2 == 'e') // E + - digit
&& (GetCharTableFlags( pTabSep[2], pTabSep[1] ) & SC_COMPILER_C_VALUE_EXP) )