#include <IConv.hpp>
Public Member Functions | |
IConv_t () | |
Create an IConv object. | |
IConv_t (const String &fromEncoding, const String &toEncoding) | |
Create an IConv object and initializes its handle to convert between the specified character encodings. | |
~IConv_t () | |
Frees all resources and destroys the object. | |
bool | open (const String &fromEncoding, const String &toEncoding) |
Initializes the IConv object handle to convert between the specified character encodings. | |
size_t | convert (char **istr, size_t *ibytesleft, char **ostr, size_t *obytesleft) |
Converts the text in the input buffer and stores the result text in the output buffer. | |
bool | close () |
Frees all object resources. | |
Private Attributes | |
iconv_t | m_iconv |
See also the IConv namespace for some utility functions.
Definition at line 51 of file IConv.hpp.
|
Create an IConv object.
|
|
Create an IConv object and initializes its handle to convert between the specified character encodings. Throws an error if the requested conversion is not available.
Definition at line 57 of file IConv.cpp. References BLOCXX_THROW, BLOCXX_NAMESPACE::String::c_str(), and m_iconv. |
|
Frees all resources and destroys the object.
Definition at line 70 of file IConv.cpp. References close(). |
|
Frees all object resources. See "man 3 iconv_close" for more detailed description.
Definition at line 105 of file IConv.cpp. References m_iconv. Referenced by open(), and ~IConv_t(). |
|
Converts the text in the input buffer and stores the result text in the output buffer. See "man 3 iconv" for more detailed description.
Definition at line 88 of file IConv.cpp. References BLOCXX_ASSERT, and m_iconv. Referenced by BLOCXX_NAMESPACE::IConv::fromByteString(), BLOCXX_NAMESPACE::IConv::fromWideString(), BLOCXX_NAMESPACE::IConv::toByteString(), and BLOCXX_NAMESPACE::IConv::toWideString(). |
|
Initializes the IConv object handle to convert between the specified character encodings. See "man 3 iconv_open" for more detailed description.
Definition at line 78 of file IConv.cpp. References BLOCXX_NAMESPACE::String::c_str(), close(), and m_iconv. |
|
|