summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-06 23:00:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-09 13:28:37 +0000
commit45b19123a63f23fe37b11b063d7567bf79ef09aa (patch)
treebefd8c637ac6fbdf94c05bb80c500fb781dd2bb4 /linguistic
parentbcd9122715c7b708a65bee05a90dba3a38624ecb (diff)
simplify CharClass
multiple variants of toUpper (etc) some that take a non-const OUString or String and modify it some that take a const OUString or String and return a new one some that take part of a const OUString or String and return a new one
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/misc.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/linguistic/source/misc.cxx b/linguistic/source/misc.cxx
index 3e10cf3a9d3d..4927b4e63d20 100644
--- a/linguistic/source/misc.cxx
+++ b/linguistic/source/misc.cxx
@@ -653,7 +653,7 @@ String ToLower( const String &rText, sal_Int16 nLanguage )
CharClass &rCC = lcl_GetCharClass();
rCC.setLocale( CreateLocale( nLanguage ) );
- return rCC.lower( rText );
+ return rCC.lowercase( rText );
}
@@ -663,7 +663,7 @@ String ToUpper( const String &rText, sal_Int16 nLanguage )
CharClass &rCC = lcl_GetCharClass();
rCC.setLocale( CreateLocale( nLanguage ) );
- return rCC.upper( rText );
+ return rCC.uppercase( rText );
}
@@ -673,7 +673,7 @@ String ToTitle( const String &rText, sal_Int16 nLanguage )
CharClass &rCC = lcl_GetCharClass();
rCC.setLocale( CreateLocale( nLanguage ) );
- return rCC.toTitle( rText, 0, rText.Len() );
+ return rCC.titlecase(rText);
}
@@ -683,7 +683,7 @@ sal_Unicode ToLower( const sal_Unicode cChar, sal_Int16 nLanguage )
CharClass &rCC = lcl_GetCharClass();
rCC.setLocale( CreateLocale( nLanguage ) );
- return rCC.lower( cChar ).GetChar(0);
+ return rCC.lowercase( rtl::OUString(cChar) )[0];
}
@@ -693,7 +693,7 @@ sal_Unicode ToUpper( const sal_Unicode cChar, sal_Int16 nLanguage )
CharClass &rCC = lcl_GetCharClass();
rCC.setLocale( CreateLocale( nLanguage ) );
- return rCC.upper( cChar ).GetChar(0);
+ return rCC.uppercase( rtl::OUString(cChar) )[0];
}
// sorted(!) array of unicode ranges for code points that are exclusively(!) used as numbers