diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 21:34:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 21:34:35 +0100 |
commit | 26dea94b01d196a146767af8b76fba41697e8150 (patch) | |
tree | 570b5ac9eca2dead28305b43c900468637e367a2 /svl | |
parent | 1df029d45f068180f3cb97027bb4f7a2ba4b2eec (diff) |
Use rtl::isAscii* instead of ctype.h is* with sal_Unicode arg
Change-Id: I744f774e6e43866f1c6ef9ff8de2d9f2e183f0be
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 15 | ||||
-rw-r--r-- | svl/source/numbers/zforfind.hxx | 2 |
2 files changed, 4 insertions, 13 deletions
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index e04272a847b8..c550d205247c 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -140,13 +140,6 @@ void ImpSvNumberInputScan::Reset() } } - -// static -inline bool ImpSvNumberInputScan::MyIsdigit( sal_Unicode c ) -{ - return c < 128 && isdigit( (unsigned char) c ); -} - // native number transliteration if necessary void TransformInput( SvNumberFormatter* pFormatter, OUString& rStr ) { @@ -246,7 +239,7 @@ bool ImpSvNumberInputScan::NextNumberStringSymbol( const sal_Unicode*& pStr, switch (eState) { case SsStart: - if ( MyIsdigit( cToken ) ) + if ( rtl::isAsciiDigit( cToken ) ) { eState = SsGetValue; isNumber = true; @@ -258,7 +251,7 @@ bool ImpSvNumberInputScan::NextNumberStringSymbol( const sal_Unicode*& pStr, nChars++; break; case SsGetValue: - if ( MyIsdigit( cToken ) ) + if ( rtl::isAsciiDigit( cToken ) ) { nChars++; } @@ -269,7 +262,7 @@ bool ImpSvNumberInputScan::NextNumberStringSymbol( const sal_Unicode*& pStr, } break; case SsGetString: - if ( !MyIsdigit( cToken ) ) + if ( !rtl::isAsciiDigit( cToken ) ) { nChars++; } @@ -332,7 +325,7 @@ bool ImpSvNumberInputScan::SkipThousands( const sal_Unicode*& pStr, } break; case SsGetValue: - if ( MyIsdigit( cToken ) ) + if ( rtl::isAsciiDigit( cToken ) ) { sBuff.append(cToken); nCounter++; diff --git a/svl/source/numbers/zforfind.hxx b/svl/source/numbers/zforfind.hxx index 351283bdef04..cedda8c7d73d 100644 --- a/svl/source/numbers/zforfind.hxx +++ b/svl/source/numbers/zforfind.hxx @@ -371,8 +371,6 @@ private: bool IsNumberFormatMain( const OUString& rString, const SvNumberformat* pFormat); // number format to match against - static inline bool MyIsdigit( sal_Unicode c ); - /** Whether input matches locale dependent date acceptance pattern. @param nStartPatternAt |