diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-26 19:33:59 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-26 19:34:42 -0400 |
commit | 69841530937c5a110bd37fe7c0c600a19551ed07 (patch) | |
tree | c0d8ca5e4ca5c0f8c8e81f0a7918b09c2b4f36bc /unotools | |
parent | f952331f0cf11f624d1df7c1c5a7468c16ffdc82 (diff) |
String to rtl::OUString.
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/charclass.hxx | 2 | ||||
-rw-r--r-- | unotools/source/i18n/charclass.cxx | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/unotools/inc/unotools/charclass.hxx b/unotools/inc/unotools/charclass.hxx index acb640d36825..4417fb278175 100644 --- a/unotools/inc/unotools/charclass.hxx +++ b/unotools/inc/unotools/charclass.hxx @@ -216,8 +216,10 @@ public: sal_Bool isAlphaNumeric( const String& rStr ) const; sal_Bool isLetterNumeric( const String& rStr ) const; + void toUpper( rtl::OUString& rStr ) const; void toUpper( String& rStr ) const { rStr = toUpper( rStr, 0, rStr.Len() ); } + void toLower( rtl::OUString& rStr ) const; void toLower( String& rStr ) const { rStr = toLower( rStr, 0, rStr.Len() ); } inline String upper( const String& rStr ) const diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx index a8343d98eec3..5fcd2ae6d476 100644 --- a/unotools/source/i18n/charclass.cxx +++ b/unotools/source/i18n/charclass.cxx @@ -326,12 +326,20 @@ sal_Bool CharClass::isLetterNumeric( const String& rStr ) const } } +void CharClass::toUpper( rtl::OUString& rStr ) const +{ + rStr = toUpper_rtl(rStr, 0, rStr.getLength()); +} String CharClass::toUpper( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const { return toUpper_rtl(rStr, nPos, nCount); } +void CharClass::toLower( rtl::OUString& rStr ) const +{ + rStr = toLower_rtl(rStr, 0, rStr.getLength()); +} String CharClass::toLower( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const { |