Qore Mime Module Reference 1.4.4
|
Functions | |
binary | Mime::mime_decode_base64 (data str) |
string | Mime::mime_decode_base64_to_string (data str, *string encoding) |
returns a string value from a string in "BASE64" encoding More... | |
string | Mime::mime_decode_header (string hdr) |
decodes a header string More... | |
string | Mime::mime_decode_quoted_printable (string str, *string encoding, *bool is_body) |
returns a string parsed from "quoted-printable" (or "QP") encoding More... | |
data | Mime::mime_decode_transfer_data (data mime_data, string enc, *string ct, *bool is_body) |
decodes data according to the given encoding More... | |
binary Mime::mime_decode_base64 | ( | data | str | ) |
returns a binary value from a string in "BASE64" encoding According to RFC 2045
str | the string to decode |
string Mime::mime_decode_base64_to_string | ( | data | str, |
*string | encoding | ||
) |
returns a string value from a string in "BASE64" encoding
According to RFC 2045
str | the string to decode |
encoding | the character encoding to use for the string returned (if not present the default encoding is used) |
string Mime::mime_decode_header | ( | string | hdr | ) |
decodes a header string
If any part of the string is encoded with "B" ("BASE64") or "Q" ("quoted-printable") encodings according to RFC 2045 section 6.7, then those parts are decoded and the decoded string is returned
hdr | the header value string to decode |
string Mime::mime_decode_quoted_printable | ( | string | str, |
*string | encoding, | ||
*bool | is_body | ||
) |
returns a string parsed from "quoted-printable" (or "QP") encoding
According to RFC 2045 section 6.7
str | the string to decode |
encoding | the character encoding to use for the string returned (if not present the default encoding is used) |
QUOTED-PRINTABLE-DECODE-ERROR | an error occurred decoding the quoted-printable string |
data Mime::mime_decode_transfer_data | ( | data | mime_data, |
string | enc, | ||
*string | ct, | ||
*bool | is_body | ||
) |
decodes data according to the given encoding
mime_data | the data to decode |
enc | the decoding to use; see MIME Content Transfer Encoding Constants for possible values (case is ignored) |
ct | the content-type of the data; if there is a "charset=xxx" component and the data is decoded to a string, then it will be returned in the given character encoding |
MIME-TRANSFER-ENCODING-ERROR | unknown transfer encoding |