LibreOffice Module tools (master) 1
|
#include <inetmime.hxx>
Static Public Member Functions | |
static bool | isVisible (sal_uInt32 nChar) |
Check for US-ASCII visible character. More... | |
static bool | isAtomChar (sal_uInt32 nChar) |
Check whether some character is valid within an RFC 822 <atom>. More... | |
static bool | isIMAPAtomChar (sal_uInt32 nChar) |
Check whether some character is valid within an RFC 2060 <atom>. More... | |
static int | getWeight (sal_uInt32 nChar) |
Get the digit weight of a US-ASCII character. More... | |
static int | getHexWeight (sal_uInt32 nChar) |
Get the hexadecimal digit weight of a US-ASCII character. More... | |
static bool | equalIgnoreCase (const sal_Unicode *pBegin1, const sal_Unicode *pEnd1, const char *pString2) |
Check two US-ASCII strings for equality, ignoring case. More... | |
static bool | scanUnsigned (const sal_Unicode *&rBegin, const sal_Unicode *pEnd, bool bLeadingZeroes, sal_uInt32 &rValue) |
static sal_Unicode const * | scanContentType (std::u16string_view rStr, OUString *pType=nullptr, OUString *pSubType=nullptr, INetContentTypeParameterList *pParameters=nullptr) |
Parse the body of an RFC 2045 Content-Type header field. More... | |
static OUString | decodeHeaderFieldBody (const OString &rBody) |
static sal_uInt32 | getUTF32Character (const sal_Unicode *&rBegin, const sal_Unicode *pEnd) |
Get the UTF-32 character at the head of a UTF-16 encoded string. More... | |
Definition at line 77 of file inetmime.hxx.
|
static |
Definition at line 1053 of file inetmime.cxx.
References getHexWeight(), isVisible(), nCount, nValue, and p.
Referenced by UNLESS_MERGELIBS().
|
static |
Check two US-ASCII strings for equality, ignoring case.
pBegin1 | Points to the start of the first string, must not be null. |
pEnd1 | Points past the end of the first string, must be >= pBegin1. |
pString2 | Points to the start of the null terminated second string, must not be null. |
Definition at line 969 of file inetmime.cxx.
References DBG_ASSERT.
Referenced by INetURLObject::setAbsURIRef().
|
inlinestatic |
Get the hexadecimal digit weight of a US-ASCII character.
nChar | Some UCS-4 character. |
Definition at line 219 of file inetmime.hxx.
Referenced by decodeHeaderFieldBody(), INetURLObject::getUTF32(), and INetURLObject::parseHost().
|
inlinestatic |
Get the UTF-32 character at the head of a UTF-16 encoded string.
rBegin | Points to the start of the UTF-16 encoded string, must not be null. On exit, it points past the first UTF-32 character's encoding. |
pEnd | Points past the end of the UTF-16 encoded string, must be strictly greater than rBegin. |
Definition at line 227 of file inetmime.hxx.
Referenced by INetURLObject::getUTF32().
|
inlinestatic |
Get the digit weight of a US-ASCII character.
nChar | Some UCS-4 character. |
Definition at line 213 of file inetmime.hxx.
Referenced by INetURLObject::parseHost(), and scanUnsigned().
|
static |
Check whether some character is valid within an RFC 822 <atom>.
nChar | Some UCS-4 character. |
Definition at line 921 of file inetmime.cxx.
References aMap.
|
static |
Check whether some character is valid within an RFC 2060 <atom>.
nChar | Some UCS-4 character. |
Definition at line 945 of file inetmime.cxx.
References aMap.
Referenced by INetURLObject::setAbsURIRef().
|
inlinestatic |
Check for US-ASCII visible character.
nChar | Some UCS-4 character. |
Definition at line 207 of file inetmime.hxx.
Referenced by INetURLObject::appendUCS4(), decodeHeaderFieldBody(), and INetURLObject::parseHostOrNetBiosName().
|
static |
Parse the body of an RFC 2045 Content-Type header field.
pBegin | The range (that must be valid) from non-null pBegin, inclusive. to non-null pEnd, exclusive, forms the body of the Content-Type header field. It must be of the form |
token "/" token *(";" token "=" (token / quoted-string))
with intervening linear white space and comments (cf. RFCs 822, 2045). The RFC 2231 extensions are supported. The encoding of rMediaType should be US-ASCII, but any Unicode values in the range U+0080..U+FFFF are interpreted 'as appropriate.'
pType | If not null, returns the type (the first of the above tokens), in US-ASCII encoding and converted to lower case. |
pSubType | If not null, returns the sub-type (the second of the above tokens), in US-ASCII encoding and converted to lower case. |
pParameters | If not null, returns the parameters as a list of INetContentTypeParameters (the attributes are in US-ASCII encoding and converted to lower case, the values are in Unicode encoding). If null, only the syntax of the parameters is checked, but they are not returned. |
Definition at line 1009 of file inetmime.cxx.
References p.
Referenced by INetURLObject::getData().
|
static |
Definition at line 986 of file inetmime.cxx.
References getWeight(), and p.
Referenced by INetURLObject::GetPort().