summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-20 09:52:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-20 10:09:58 +0100
commitfd8c06aded20cfd6b4f9c729cec120c0d2d574aa (patch)
tree3c0d558218456ba87a2858019defcce0ed4c235a /include/tools
parenta2fea109e6454b10e8e85148b93bdca89066fe8d (diff)
duplicate surrogate code
Change-Id: I9fad024e4b5c8a4ca272f2387df07351198cf5dc
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/inetmime.hxx30
1 files changed, 0 insertions, 30 deletions
diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx
index 020e16a2e13c..45bf02a5878e 100644
--- a/include/tools/inetmime.hxx
+++ b/include/tools/inetmime.hxx
@@ -262,13 +262,6 @@ public:
*/
static sal_uInt32 getHexDigit(int nWeight);
- static inline bool isHighSurrogate(sal_uInt32 nUTF16);
-
- static inline bool isLowSurrogate(sal_uInt32 nUTF16);
-
- static inline sal_uInt32 toUTF32(sal_Unicode cHighSurrogate,
- sal_Unicode cLowSurrogate);
-
/** Check two US-ASCII strings for equality, ignoring case.
@param pBegin1 Points to the start of the first string, must not be
@@ -531,29 +524,6 @@ inline int INetMIME::getBase64Weight(sal_uInt32 nChar)
}
// static
-inline bool INetMIME::isHighSurrogate(sal_uInt32 nUTF16)
-{
- return nUTF16 >= 0xD800 && nUTF16 <= 0xDBFF;
-}
-
-// static
-inline bool INetMIME::isLowSurrogate(sal_uInt32 nUTF16)
-{
- return nUTF16 >= 0xDC00 && nUTF16 <= 0xDFFF;
-}
-
-// static
-inline sal_uInt32 INetMIME::toUTF32(sal_Unicode cHighSurrogate,
- sal_Unicode cLowSurrogate)
-{
- DBG_ASSERT(isHighSurrogate(cHighSurrogate)
- && isLowSurrogate(cLowSurrogate),
- "INetMIME::toUTF32(): Bad chars");
- return ((sal_uInt32(cHighSurrogate) & 0x3FF) << 10)
- | (sal_uInt32(cLowSurrogate) & 0x3FF);
-}
-
-// static
inline bool INetMIME::startsWithLineBreak(const sal_Char * pBegin,
const sal_Char * pEnd)
{