diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-28 00:17:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:06 +0100 |
commit | 14d2a60053e30dcb7e6956637fe8d57d18563e3f (patch) | |
tree | a395e8185afde2031fa255094ee9b0d23f11afe9 /l10ntools/source | |
parent | ByteString->rtl::OString and destupid-api a bit (diff) | |
download | core-14d2a60053e30dcb7e6956637fe8d57d18563e3f.tar.gz core-14d2a60053e30dcb7e6956637fe8d57d18563e3f.zip |
remove ByteString::IsAlphaNumericAscii and refactor a bit
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/gsicheck.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/l10ntools/source/gsicheck.cxx b/l10ntools/source/gsicheck.cxx index da305db9ca04..5fc52baba086 100644 --- a/l10ntools/source/gsicheck.cxx +++ b/l10ntools/source/gsicheck.cxx @@ -67,7 +67,7 @@ sal_Bool LanguageOK( ByteString aLang ) if ( !aLang.Len() ) return sal_False; - if (comphelper::string::isAsciiDecimalString(aLang)) + if (comphelper::string::isdigitAsciiString(aLang)) return sal_True; if ( aLang.GetTokenCount( '-' ) == 1 ) @@ -153,7 +153,7 @@ GSILine::GSILine( const ByteString &rLine, sal_uLong nLine ) aTitle = rLine.GetToken( 13, '\t' ); // do some more format checks here - if (!comphelper::string::isAsciiDecimalString(rLine.GetToken(8, '\t'))) + if (!comphelper::string::isdigitAsciiString(rLine.GetToken(8, '\t'))) { PrintError( "The length field does not contain a number!", "Line format", rLine.GetToken( 8, '\t' ), sal_True, GetLineNumber(), GetUniqId() ); NotOK(); @@ -491,7 +491,7 @@ sal_Bool GSIBlock::IsUTF8( const ByteString &aTestee, sal_Bool bFixTags, sal_uIn if ( aID.Len() > 0 && aID.GetChar(aID.Len()-1) == '*' ) aID.Erase( aID.Len()-1 ); - if (comphelper::string::isAsciiDecimalString(aID) && aID.Len() >= 5) + if (comphelper::string::isdigitAsciiString(aID) && aID.Len() >= 5) bIsKeyID = sal_True; } |