summaryrefslogtreecommitdiff
path: root/include/tools/inetmime.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/inetmime.hxx')
-rw-r--r--include/tools/inetmime.hxx67
1 files changed, 0 insertions, 67 deletions
diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx
index 11d5ee748a2e..23b86f1a5739 100644
--- a/include/tools/inetmime.hxx
+++ b/include/tools/inetmime.hxx
@@ -220,23 +220,6 @@ public:
HEADER_FIELD_ADDRESS
};
- /** Check for ISO 8859-1 character.
-
- @param nChar Some UCS-4 character.
-
- @return True if nChar is a ISO 8859-1 character (0x00--0xFF).
- */
- static inline bool isISO88591(sal_uInt32 nChar);
-
- /** Check for US-ASCII control character.
-
- @param nChar Some UCS-4 character.
-
- @return True if nChar is a US-ASCII control character (US-ASCII
- 0x00--0x1F or 0x7F).
- */
- static inline bool isControl(sal_uInt32 nChar);
-
/** Check for US-ASCII white space character.
@param nChar Some UCS-4 character.
@@ -255,15 +238,6 @@ public:
*/
static inline bool isVisible(sal_uInt32 nChar);
- /** Check for US-ASCII Base 64 digit character.
-
- @param nChar Some UCS-4 character.
-
- @return True if nChar is a US-ASCII Base 64 digit character (US-ASCII
- 'A'--'Z', 'a'--'z', '0'--'9', '+', or '/').
- */
- static inline bool isBase64Digit(sal_uInt32 nChar);
-
/** Check whether some character is valid within an RFC 822 <atom>.
@param nChar Some UCS-4 character.
@@ -381,9 +355,6 @@ public:
const sal_Unicode * pEnd1,
const sal_Char * pString2);
- static inline bool startsWithLineBreak(const sal_Char * pBegin,
- const sal_Char * pEnd);
-
static inline bool startsWithLineBreak(const sal_Unicode * pBegin,
const sal_Unicode * pEnd);
@@ -393,9 +364,6 @@ public:
static inline bool startsWithLineFolding(const sal_Unicode * pBegin,
const sal_Unicode * pEnd);
- static bool startsWithLinearWhiteSpace(const sal_Char * pBegin,
- const sal_Char * pEnd);
-
static const sal_Unicode * skipLinearWhiteSpace(const sal_Unicode *
pBegin,
const sal_Unicode * pEnd);
@@ -551,18 +519,6 @@ public:
};
// static
-inline bool INetMIME::isISO88591(sal_uInt32 nChar)
-{
- return nChar <= 0xFF;
-}
-
-// static
-inline bool INetMIME::isControl(sal_uInt32 nChar)
-{
- return nChar <= 0x1F || nChar == 0x7F;
-}
-
-// static
inline bool INetMIME::isWhiteSpace(sal_uInt32 nChar)
{
return nChar == '\t' || nChar == ' ';
@@ -575,13 +531,6 @@ inline bool INetMIME::isVisible(sal_uInt32 nChar)
}
// static
-inline bool INetMIME::isBase64Digit(sal_uInt32 nChar)
-{
- return rtl::isAsciiUpperCase(nChar) || rtl::isAsciiLowerCase(nChar) || rtl::isAsciiDigit(nChar)
- || nChar == '+' || nChar == '/';
-}
-
-// static
inline int INetMIME::getWeight(sal_uInt32 nChar)
{
return rtl::isAsciiDigit(nChar) ? int(nChar - '0') : -1;
@@ -607,15 +556,7 @@ inline int INetMIME::getBase64Weight(sal_uInt32 nChar)
}
// static
-inline bool INetMIME::startsWithLineBreak(const sal_Char * pBegin,
- const sal_Char * pEnd)
-{
- DBG_ASSERT(pBegin && pBegin <= pEnd,
- "INetMIME::startsWithLineBreak(): Bad sequence");
- return pEnd - pBegin >= 2 && pBegin[0] == 0x0D && pBegin[1] == 0x0A;
- // CR, LF
-}
// static
inline bool INetMIME::startsWithLineBreak(const sal_Unicode * pBegin,
@@ -651,15 +592,7 @@ inline bool INetMIME::startsWithLineFolding(const sal_Unicode * pBegin,
}
// static
-inline bool INetMIME::startsWithLinearWhiteSpace(const sal_Char * pBegin,
- const sal_Char * pEnd)
-{
- DBG_ASSERT(pBegin && pBegin <= pEnd,
- "INetMIME::startsWithLinearWhiteSpace(): Bad sequence");
- return pBegin != pEnd
- && (isWhiteSpace(*pBegin) || startsWithLineFolding(pBegin, pEnd));
-}
// static
inline bool INetMIME::needsQuotedStringEscape(sal_uInt32 nChar)