summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@libreoffice.org>2013-08-10 12:41:03 +0200
committerPetr Mladek <pmladek@suse.cz>2013-08-19 15:49:18 +0000
commitc8e39e66528affb66f1ae121fa36dd4ab31a9b0b (patch)
tree227691ebad802e87695bfffb96889a1ccfe147a4 /unotools
parent2e45813b7e5757bc050e121acfe942763b9544ff (diff)
Introduce rtl::compareIgnoreCase and deprecate rtl/character.hxx equivalents.
Change-Id: Id90935fd2b0f904f89477792edc8140cfc31e91f Reviewed-on: https://gerrit.libreoffice.org/5412 Reviewed-by: Petr Mladek <pmladek@suse.cz> Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/charclass.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx
index 2b620262030c..ba86a2b531fc 100644
--- a/unotools/source/i18n/charclass.cxx
+++ b/unotools/source/i18n/charclass.cxx
@@ -20,6 +20,7 @@
#include <comphelper/processfactory.hxx>
#include <unotools/charclass.hxx>
+#include <rtl/character.hxx>
#include <tools/debug.hxx>
#include <com/sun/star/i18n/CharacterClassification.hpp>
@@ -85,7 +86,7 @@ bool CharClass::isAsciiNumeric( const OUString& rStr )
do
{
- if ( !isAsciiDigit( *p ) )
+ if ( !rtl::isAsciiDigit( *p ) )
return false;
}
while ( ++p < pStop );
@@ -104,7 +105,7 @@ bool CharClass::isAsciiAlpha( const OUString& rStr )
do
{
- if ( !isAsciiAlpha( *p ) )
+ if ( !rtl::isAsciiAlpha( *p ) )
return false;
}
while ( ++p < pStop );
@@ -118,7 +119,7 @@ bool CharClass::isAlpha( const OUString& rStr, sal_Int32 nPos ) const
{
sal_Unicode c = rStr[nPos];
if ( c < 128 )
- return isAsciiAlpha( c );
+ return rtl::isAsciiAlpha( c );
try
{
@@ -141,7 +142,7 @@ bool CharClass::isLetter( const OUString& rStr, sal_Int32 nPos ) const
{
sal_Unicode c = rStr[nPos];
if ( c < 128 )
- return isAsciiAlpha( c );
+ return rtl::isAsciiAlpha( c );
try
{
@@ -180,7 +181,7 @@ bool CharClass::isDigit( const OUString& rStr, sal_Int32 nPos ) const
{
sal_Unicode c = rStr[ nPos ];
if ( c < 128 )
- return isAsciiDigit( c );
+ return rtl::isAsciiDigit( c );
try
{
@@ -219,7 +220,7 @@ bool CharClass::isAlphaNumeric( const OUString& rStr, sal_Int32 nPos ) const
{
sal_Unicode c = rStr[nPos];
if ( c < 128 )
- return isAsciiAlphaNumeric( c );
+ return rtl::isAsciiAlphanumeric( c );
try
{
@@ -241,7 +242,7 @@ bool CharClass::isLetterNumeric( const OUString& rStr, sal_Int32 nPos ) const
{
sal_Unicode c = rStr[nPos];
if ( c < 128 )
- return isAsciiAlphaNumeric( c );
+ return rtl::isAsciiAlphanumeric( c );
try
{