charset level
charset mask
Gets the best charset name based on the charset mask charset
.
Check to see if the UTF-8 text
will fit safely within charset
.
a charset
utf-8 text to check
length of text
Initializes a charset mask structure.
Steps through the input buffer 1 unicode character (glyph) at a
time (ie, not necessarily 1 byte at a time). Bitwise 'and' our
charset->
mask with the mask for each glyph. This has the effect of
limiting what charsets our charset->
mask can match.
input text buffer (must be in UTF-8)
input buffer length
Computes the best charset to use to encode this text buffer.
a UTF-8 text buffer
input buffer length
Attempts to find a canonical charset name for charset
.
Note: Will normally return the same value as g_mime_charset_iconv_name() unless the system iconv does not use the canonical ISO charset names (such as using ISO8859-1 rather than the canonical form ISO-8859-1).
charset name
Attempts to find an iconv-friendly charset name for charset
.
charset name
Maps the ISO-8859-# charset to the equivalent Windows-CP125# charset.
ISO-8859-# charset
Attempts to find a specific language code that is specific to
charset
. Currently only handles CJK and Russian/Ukranian
charset->lang mapping. Everything else will return %NULL.
charset name
Gets the user's locale charset (or iso-8859-1 by default).
Note: This function is deprecated. Use g_mime_locale_charset() instead.
Initializes character set maps.
Note: g_mime_init() calls this routine for you.
Frees internal lookup tables created in g_mime_charset_map_init().
Attempts to find an iconv-friendly charset name for charset
.
Note: This function is deprecated. Use g_mime_charset_iconv_name() instead.
charset name
State used by g_mime_charset_best() and g_mime_charset_best_name().