gmime.global
Global functions for gmime3 library
fn checkVersion contentEncodingFromString contentEncodingToString iconvLocaleToUtf8 iconvLocaleToUtf8Length iconvUtf8ToLocale iconvUtf8ToLocaleLength init_ localeCharset localeLanguage shutdown utilsBestEncoding utilsDecode8bit utilsDecodeMessageId utilsGenerateMessageId utilsHeaderDecodeDate utilsHeaderDecodePhrase utilsHeaderDecodeText utilsHeaderEncodePhrase utilsHeaderEncodeText utilsHeaderFormatDate utilsHeaderUnfold utilsQuoteString utilsStructuredHeaderFold utilsTextIs8bit utilsUnquoteString utilsUnstructuredHeaderFold ydecodeStep yencodeClose yencodeStep
Functions 30
fn
bool checkVersion(uint major, uint minor, uint micro) nothrowChecks that the GMime library version meets the requirements of the required version.fn
gmime.types.ContentEncoding contentEncodingFromString(string str) nothrowGets the appropriate #GMimeContentEncoding enumeration value based on the input string.fn
string contentEncodingToString(gmime.types.ContentEncoding encoding) nothrowGets the string value of the content encoding.fn
string iconvLocaleToUtf8(string str) nothrowAllocates a new string buffer containing str in UTF-8.fn
string iconvLocaleToUtf8Length(string str, size_t n) nothrowAllocates a new string buffer containing the first `n` bytes of str converted to UTF-8.fn
string iconvUtf8ToLocale(string str) nothrowAllocates a new string buffer containing str converted to the user's locale charset.fn
string iconvUtf8ToLocaleLength(string str, size_t n) nothrowAllocates a new string buffer containing the first `n` bytes of str converted to the user's locale charset.fn
string localeCharset() nothrowGets the user's locale charset (or iso-8859-1 by default). Returns: the user's locale charset (or iso-8859-1 by default).fn
string localeLanguage() nothrowGets the user's locale language code (or null by default). Returns: the user's locale language code (or null by default).fn
gmime.types.ContentEncoding utilsBestEncoding(ubyte[] text) nothrowDetermines the best content encoding for the first len bytes of text.fn
string utilsDecode8bit(gmime.parser_options.ParserOptions options, ubyte[] text) nothrowAttempts to convert text in an unknown 8bit/multibyte charset into UTF-8 by finding the charset which will convert the most bytes into valid UTF-8 characters as possible. If no exact match can be f...fn
string utilsHeaderDecodePhrase(gmime.parser_options.ParserOptions options, string phrase) nothrowDecodes an rfc2047 encoded 'phrase' header.fn
string utilsHeaderDecodeText(gmime.parser_options.ParserOptions options, string text) nothrowDecodes an rfc2047 encoded 'text' header.fn
string utilsHeaderEncodePhrase(gmime.format_options.FormatOptions options, string phrase, string charset = null) nothrowEncodes a 'phrase' header according to the rules in rfc2047.fn
string utilsHeaderEncodeText(gmime.format_options.FormatOptions options, string text, string charset = null) nothrowEncodes a 'text' header according to the rules in rfc2047.fn
string utilsHeaderFormatDate(glib.date_time.DateTime date) nothrowAllocates a string buffer containing the rfc822 formatted date string represented by date.fn
string utilsHeaderUnfold(string value) nothrowUnfolds a raw header value according to the rules in rfc822.fn
string utilsQuoteString(string str) nothrowQuotes string as needed according to the rules in rfc2822.fn
string utilsStructuredHeaderFold(gmime.parser_options.ParserOptions options, gmime.format_options.FormatOptions format, string header) nothrowFolds a structured header according to the rules in rfc822.fn
bool utilsTextIs8bit(ubyte[] text) nothrowDetermines if text contains 8bit characters within the first len bytes.fn
string utilsUnstructuredHeaderFold(gmime.parser_options.ParserOptions options, gmime.format_options.FormatOptions format, string header) nothrowFolds an unstructured header according to the rules in rfc822.fn
size_t ydecodeStep(ubyte[] inbuf, ref ubyte[] outbuf, ref int state, ref uint pcrc, ref uint crc) nothrowPerforms a 'decode step' on a chunk of yEncoded data of length inlen pointed to by inbuf and writes to outbuf. Assumes the =ybegin and =ypart lines have already been stripped off.fn
size_t yencodeClose(ubyte[] inbuf, ref ubyte[] outbuf, ref int state, ref uint pcrc, ref uint crc) nothrowCall this function when finished encoding data with [gmime.global.yencodeStep] to flush off the remaining state.fn
size_t yencodeStep(ubyte[] inbuf, ref ubyte[] outbuf, ref int state, ref uint pcrc, ref uint crc) nothrowPerforms an yEncode 'encode step' on a chunk of raw data of length inlen pointed to by inbuf and writes to outbuf.