diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-09-30 11:37:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-09-30 11:49:22 +0200 |
commit | edecc4e9af189ff8f4c95d4b89a713facb368d71 (patch) | |
tree | 2776121237ee2d6541b6a55fddc96dc6cedd64be /include/tools | |
parent | Introduce ASCII case conversion and use more/rtl/character.hxx. (diff) | |
download | core-edecc4e9af189ff8f4c95d4b89a713facb368d71.tar.gz core-edecc4e9af189ff8f4c95d4b89a713facb368d71.zip |
Clean up rtl/character.hxx
It is probably best to base the functions on Unicode code points instead of
scalar values, now that they are also used from sal/rtl/strtmpl.cxx with UTF-16
code units and with arbitrary bytes (with values assumed to be a superset of
ASCII, though). Rename compareAsciiIgnoreCase to compareIgnoreAsciiCase. Also,
the corresponding tools::INetMIME functions can be removed completely; no need
to keep them around as deprecated.
Change-Id: I8d322177f4909e70a946e8186e3e0f7fa6d9a43e
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/inetmime.hxx | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx index 292f7449ba7d..40b8429a31b0 100644 --- a/include/tools/inetmime.hxx +++ b/include/tools/inetmime.hxx @@ -222,28 +222,6 @@ public: */ static bool isIMAPAtomChar(sal_uInt32 nChar); - /** Translate an US-ASCII character to upper case. - - @param nChar Some UCS-4 character. - - @return If nChar is a US-ASCII upper case character (US-ASCII - 'A'--'Z'), return the corresponding US-ASCII lower case character (US- - ASCII 'a'--'z'); otherwise, return nChar unchanged. - */ - SAL_DEPRECATED("Use rtl::toAsciiUpperCase instead") - static inline sal_uInt32 toUpperCase(sal_uInt32 nChar); - - /** Translate an US-ASCII character to lower case. - - @param nChar Some UCS-4 character. - - @return If nChar is a US-ASCII lower case character (US-ASCII - 'a'--'z'), return the corresponding US-ASCII upper case character (US- - ASCII 'A'--'Z'); otherwise, return nChar unchanged. - */ - SAL_DEPRECATED("Use rtl::toAsciiLowerCase instead") - static inline sal_uInt32 toLowerCase(sal_uInt32 nChar); - /** Get the digit weight of a US-ASCII character. @param nChar Some UCS-4 character. @@ -498,18 +476,6 @@ inline bool INetMIME::isBase64Digit(sal_uInt32 nChar) } // static -inline sal_uInt32 INetMIME::toUpperCase(sal_uInt32 nChar) -{ - return rtl::toAsciiUpperCase(nChar); -} - -// static -inline sal_uInt32 INetMIME::toLowerCase(sal_uInt32 nChar) -{ - return rtl::toAsciiLowerCase(nChar); -} - -// static inline int INetMIME::getWeight(sal_uInt32 nChar) { return rtl::isAsciiDigit(nChar) ? int(nChar - '0') : -1; |