summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-08-19 20:21:41 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-08-19 20:21:41 +0200
commitc7c0510a6c86939e41966aa39eae676a03e6872d (patch)
tree8b98cea3f9bdb5b0f0148c2b75d391f3998b6e18 /sc
parentbd9c1714eda37bbbd43f22bfb71a7c4304d40630 (diff)
Fix deprecated: use rtl::isAsciiDigit/isAsciiAlpha instead (part2)
Change-Id: If7aa24718c3a4bc1656277f0bb741b41fcaf6f4f
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/address.cxx24
-rw-r--r--sc/source/core/tool/compiler.cxx4
2 files changed, 14 insertions, 14 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index 33c653e51505..6906c876fc9b 100644
--- a/sc/source/core/tool/address.cxx
+++ b/sc/source/core/tool/address.cxx
@@ -107,7 +107,7 @@ sal_Unicode_strtol ( const sal_Unicode* p,
else if( *p == '+' )
p++;
- while (CharClass::isAsciiDigit( *p ))
+ while (rtl::isAsciiDigit( *p ))
{
accum = accum * 10 + *p - '0';
if( accum < prev )
@@ -289,7 +289,7 @@ lcl_XL_ParseSheetRef( const sal_Unicode* start,
while( 1 )
{
const sal_Unicode uc = *p;
- if( CharClass::isAsciiAlpha( uc ) || uc == '_' )
+ if( rtl::isAsciiAlpha( uc ) || uc == '_' )
{
if( only_digits && p != start &&
(uc == 'e' || uc == 'E' ) )
@@ -300,7 +300,7 @@ lcl_XL_ParseSheetRef( const sal_Unicode* start,
only_digits = false;
p++;
}
- else if( CharClass::isAsciiDigit( uc ))
+ else if( rtl::isAsciiDigit( uc ))
{
p++;
}
@@ -808,13 +808,13 @@ lcl_a1_get_col( const sal_Unicode* p, ScAddress* pAddr, sal_uInt16* nFlags )
if( *p == '$' )
*nFlags |= SCA_COL_ABSOLUTE, p++;
- if( !CharClass::isAsciiAlpha( *p ) )
+ if( !rtl::isAsciiAlpha( *p ) )
return NULL;
nCol = sal::static_int_cast<SCCOL>( toupper( char(*p++) ) - 'A' );
- while (nCol <= MAXCOL && CharClass::isAsciiAlpha(*p))
+ while (nCol <= MAXCOL && rtl::isAsciiAlpha(*p))
nCol = sal::static_int_cast<SCCOL>( ((nCol + 1) * 26) + toupper( char(*p++) ) - 'A' );
- if( nCol > MAXCOL || CharClass::isAsciiAlpha( *p ) )
+ if( nCol > MAXCOL || rtl::isAsciiAlpha( *p ) )
return NULL;
*nFlags |= SCA_VALID_COL;
@@ -1089,16 +1089,16 @@ lcl_ScAddress_Parse_OOo( const sal_Unicode* p, ScDocument* pDoc, ScAddress& rAdd
if (*p == '$')
nBits |= SCA_COL_ABSOLUTE, p++;
- if (CharClass::isAsciiAlpha( *p ))
+ if (rtl::isAsciiAlpha( *p ))
{
nCol = sal::static_int_cast<SCCOL>( toupper( char(*p++) ) - 'A' );
- while (nCol < MAXCOL && CharClass::isAsciiAlpha(*p))
+ while (nCol < MAXCOL && rtl::isAsciiAlpha(*p))
nCol = sal::static_int_cast<SCCOL>( ((nCol + 1) * 26) + toupper( char(*p++) ) - 'A' );
}
else
nBits = 0;
- if( nCol > MAXCOL || CharClass::isAsciiAlpha( *p ) )
+ if( nCol > MAXCOL || rtl::isAsciiAlpha( *p ) )
nBits = 0;
nRes |= nBits;
if( !nBits )
@@ -1111,7 +1111,7 @@ lcl_ScAddress_Parse_OOo( const sal_Unicode* p, ScDocument* pDoc, ScAddress& rAdd
nBits = SCA_VALID_ROW;
if (*p == '$')
nBits |= SCA_ROW_ABSOLUTE, p++;
- if( !CharClass::isAsciiDigit( *p ) )
+ if( !rtl::isAsciiDigit( *p ) )
{
nBits = 0;
nRow = SCROW(-1);
@@ -1120,7 +1120,7 @@ lcl_ScAddress_Parse_OOo( const sal_Unicode* p, ScDocument* pDoc, ScAddress& rAdd
{
OUString aTmp( p );
long n = aTmp.toInt32() - 1;
- while (CharClass::isAsciiDigit( *p ))
+ while (rtl::isAsciiDigit( *p ))
p++;
if( n < 0 || n > MAXROW )
nBits = 0;
@@ -2090,7 +2090,7 @@ bool AlphaToCol( SCCOL& rCol, const String& rStr)
xub_StrLen nPos = 0;
sal_Unicode c;
while (nResult <= MAXCOL && nPos < nStop && (c = rStr.GetChar( nPos)) != 0 &&
- CharClass::isAsciiAlpha(c))
+ rtl::isAsciiAlpha(c))
{
if (nPos > 0)
nResult = (nResult + 1) * 26;
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 547daa6ae94a..62d4178f6bc8 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -3548,8 +3548,8 @@ bool ScCompiler::NextNewToken( bool bInArray )
bool bAsciiNonAlnum; // operators, separators, ...
if ( cSymbol[0] < 128 )
{
- bMayBeFuncName = CharClass::isAsciiAlpha( cSymbol[0] );
- bAsciiNonAlnum = !bMayBeFuncName && !CharClass::isAsciiDigit( cSymbol[0] );
+ bMayBeFuncName = rtl::isAsciiAlpha( cSymbol[0] );
+ bAsciiNonAlnum = !bMayBeFuncName && !rtl::isAsciiDigit( cSymbol[0] );
}
else
{