Kaydet (Commit) 26dea94b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use rtl::isAscii* instead of ctype.h is* with sal_Unicode arg

Change-Id: I744f774e6e43866f1c6ef9ff8de2d9f2e183f0be
üst 1df029d4
......@@ -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++;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment