diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-29 20:44:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-30 11:39:01 +0100 |
commit | 74929bba736cc6cceed3c088e13f5952abb1bd2b (patch) | |
tree | 8a026d95bc586ca6a41686dee32dfa53b659b252 /tools | |
parent | fc7e7b683112e9ccd23104f38d4acc3417e9d5b8 (diff) |
Related: fdo#38838 remove UniString::ToUpperAscii
things got a little out of hand and I ended up
converting quite a bit of calc to OUString
Change-Id: I056326d37ffefa8c120cb2e564d166dd9f20f216
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/string/tustring.cxx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx index 839603e7aae9..f3bb24f09ab5 100644 --- a/tools/source/string/tustring.cxx +++ b/tools/source/string/tustring.cxx @@ -293,30 +293,6 @@ STRING& STRING::Insert( STRCODE c, xub_StrLen nIndex ) return *this; } -STRING& STRING::ToUpperAscii() -{ - DBG_CHKTHIS( STRING, DBGCHECKSTRING ); - - sal_Int32 nIndex = 0; - sal_Int32 nLen = mpData->mnLen; - STRCODE* pStr = mpData->maStr; - while ( nIndex < nLen ) - { - // convert char if between 'a' and 'z' - if ( (*pStr >= 97) && (*pStr <= 122) ) - { - // allocate string of new size - pStr = ImplCopyStringData( pStr ); - *pStr -= 32; - } - - ++pStr, - ++nIndex; - } - - return *this; -} - StringCompare STRING::CompareTo( const STRING& rStr, xub_StrLen nLen ) const { DBG_CHKTHIS( STRING, DBGCHECKSTRING ); |