![]() |
![]() |
Public Member Functions | |
IConv (const std::string& to_codeset, const std::string& from_codeset) | |
Open new conversion descriptor. | |
IConv (GIConv gobject) | |
~IConv () | |
Close conversion descriptor. | |
size_t | iconv (char** inbuf, gsize* inbytes_left, char** outbuf, gsize* outbytes_left) |
Same as the standard UNIX routine iconv(), but may be implemented via libiconv on UNIX flavors that lack a native implementation. | |
void | reset () |
Reset conversion descriptor to initial state. | |
std::string | convert (const std::string& str) |
Convert from one encoding to another. | |
GIConv | gobj () |
glibmm provides Glib::convert() and Glib::locale_to_utf8() which are likely more convenient than the raw iconv wrappers. However, creating an IConv object once and using the convert() method could be useful when converting multiple times between the same charsets.
|
Open new conversion descriptor.
|
|
|
|
Close conversion descriptor.
|
|
Convert from one encoding to another.
|
|
|
|
Same as the standard UNIX routine iconv(), but may be implemented via libiconv on UNIX flavors that lack a native implementation. glibmm provides Glib::convert() and Glib::locale_to_utf8() which are likely more convenient than the raw iconv wrappers.
|
|
Reset conversion descriptor to initial state.
Same as |