Charset
Object Hierarchy:
Description:
[ CCode ( has_type_id = false ) ]
public struct Charset
public struct Charset
Namespace: GMime
Package: gmime-3.0
Content:
Static methods:
- public static unowned string? best (string inbuf, size_t inlen)
Computes the best charset to use to encode this text buffer.
- public static unowned string canon_name (string charset)
Attempts to find a canonical charset name for
charset
. - public static unowned string iconv_name (string charset)
Attempts to find an iconv-friendly charset name for
charset
. - public static unowned string iso_to_windows (string isocharset)
Maps the ISO-8859-# charset to the equivalent Windows-CP125# charset.
- public static unowned string? language (string charset)
Attempts to find a specific language code that is specific to
charset
. - public static unowned string locale_name ()
Gets the user's locale charset (or iso-8859-1 by default).
- public static void map_init ()
Initializes character set maps.
- public static void map_shutdown ()
Frees internal lookup tables created in map_init.
- public static unowned string name (string charset)
Attempts to find an iconv-friendly charset name for
charset
.
Methods:
- public unowned string? best_name ()
Gets the best charset name based on the charset mask this.
- public bool can_encode (string charset, string text, size_t len)
Check to see if the UTF-8
text
will fit safely withincharset
. - public void init ()
Initializes a charset mask structure.
- public void step (string inbuf, size_t inlen)
Steps through the input buffer 1 unicode character (glyph) at a time (ie, not necessarily 1 byte at a time).