summaryrefslogtreecommitdiff
path: root/linguistic/source/misc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-10 16:34:44 +0200
committerNoel Grandin <noel@peralex.com>2013-09-11 09:45:40 +0200
commitb2ff26cc4e9a012b67c7244ee75ab98898d02827 (patch)
treee08992473ecfffbdf1e834c3af1d14fc3625e471 /linguistic/source/misc.cxx
parentf9ce731120f2e308e8fe71eb1a1d981590362afb (diff)
convert include/linguistic/misc.hxx from String to OUString
Change-Id: I454c577d7b6c0994046de9cba076e6478a4ce309
Diffstat (limited to 'linguistic/source/misc.cxx')
-rw-r--r--linguistic/source/misc.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index d5b96bd69903..867dccfc4c38 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -392,12 +392,12 @@ uno::Sequence< sal_Int16 >
return aLangs;
}
-sal_Bool IsReadOnly( const String &rURL, sal_Bool *pbExist )
+sal_Bool IsReadOnly( const OUString &rURL, sal_Bool *pbExist )
{
sal_Bool bRes = sal_False;
sal_Bool bExists = sal_False;
- if (rURL.Len() > 0)
+ if (!rURL.isEmpty())
{
try
{
@@ -583,7 +583,7 @@ osl::Mutex & lcl_GetCharClassMutex()
return aMutex;
}
-sal_Bool IsUpper( const String &rText, xub_StrLen nPos, xub_StrLen nLen, sal_Int16 nLanguage )
+sal_Bool IsUpper( const OUString &rText, xub_StrLen nPos, xub_StrLen nLen, sal_Int16 nLanguage )
{
MutexGuard aGuard( lcl_GetCharClassMutex() );
@@ -599,7 +599,7 @@ CapType SAL_CALL capitalType(const OUString& aTerm, CharClass * pCC)
sal_Int32 tlen = aTerm.getLength();
if ((pCC) && (tlen))
{
- String aStr(aTerm);
+ OUString aStr(aTerm);
sal_Int32 nc = 0;
for (sal_uInt16 tindex = 0; tindex < tlen; tindex++)
{
@@ -620,7 +620,7 @@ CapType SAL_CALL capitalType(const OUString& aTerm, CharClass * pCC)
return CAPTYPE_UNKNOWN;
}
-String ToLower( const String &rText, sal_Int16 nLanguage )
+OUString ToLower( const OUString &rText, sal_Int16 nLanguage )
{
MutexGuard aGuard( lcl_GetCharClassMutex() );
@@ -689,17 +689,17 @@ sal_Bool HasDigits( const OUString &rText )
return sal_False;
}
-sal_Bool IsNumeric( const String &rText )
+sal_Bool IsNumeric( const OUString &rText )
{
sal_Bool bRes = sal_False;
- xub_StrLen nLen = rText.Len();
- if (nLen)
+ if (!rText.isEmpty())
{
+ xub_StrLen nLen = rText.getLength();
bRes = sal_True;
xub_StrLen i = 0;
while (i < nLen)
{
- sal_Unicode cChar = rText.GetChar( i++ );
+ sal_Unicode cChar = rText[ i++ ];
if ( !((sal_Unicode)'0' <= cChar && cChar <= (sal_Unicode)'9') )
{
bRes = sal_False;