summaryrefslogtreecommitdiff
path: root/include/tools/inetmime.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-09-30 11:37:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-09-30 11:49:22 +0200
commitedecc4e9af189ff8f4c95d4b89a713facb368d71 (patch)
tree2776121237ee2d6541b6a55fddc96dc6cedd64be /include/tools/inetmime.hxx
parent89de6ba4c65c8709e32fe636ff743d914cf56225 (diff)
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/inetmime.hxx')
-rw-r--r--include/tools/inetmime.hxx34
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;