diff options
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 { |