#include <scim_iconv.h>
Public Member Functions | |
| IConvert (const String &encoding=String()) | |
| Constructor. | |
| IConvert (const IConvert &iconvert) | |
| Copy constructor. | |
| ~IConvert () | |
| const IConvert & | operator= (const IConvert &iconvert) |
| Assign operator. | |
| bool | set_encoding (const String &encoding) |
| Set the working local encoding. | |
| String | get_encoding () const |
| Get the current working local encoding. | |
| bool | convert (String &dest, const WideString &src) const |
| Convert a UCS-4 encoded WideString into a local encoded String. | |
| bool | convert (String &dest, const ucs4_t *src, int src_len) const |
| Convert a UCS-4 encoded WideString into a local encoded String. | |
| bool | convert (WideString &dest, const String &src) const |
| Convert a local encoded String into a UCS-4 encoded WideString. | |
| bool | convert (WideString &dest, const char *src, int src_len) const |
| Convert a local encoded String into a UCS-4 encoded WideString. | |
| bool | test_convert (const WideString &src) const |
| Test if a UCS-4 encoded WideString can be converted to a local encoded String. | |
| bool | test_convert (const ucs4_t *src, int src_len) const |
| Test if a ucs-4 encoded string can be converted to a local encoded String. | |
| bool | test_convert (const String &src) const |
| Test if a local encoded string can be converted to a UCS-4 encoded WideString. | |
| bool | test_convert (const char *src, int src_len) const |
| Test if a local encoded string can be converted to a UCS-4 encoded WideString. | |
Constructor.
| encoding | the local encoding to be used. |
| scim::IConvert::IConvert | ( | const IConvert & | iconvert | ) |
Copy constructor.
| scim::IConvert::~IConvert | ( | ) |
| bool scim::IConvert::set_encoding | ( | const String & | encoding | ) |
Set the working local encoding.
| encoding | the local encoding to be used. |
| String scim::IConvert::get_encoding | ( | ) | const |
Get the current working local encoding.
| bool scim::IConvert::convert | ( | String & | dest, | |
| const WideString & | src | |||
| ) | const |
Convert a UCS-4 encoded WideString into a local encoded String.
| dest | the result string will be stored here. | |
| src | the WideString to be converted. |
Convert a UCS-4 encoded WideString into a local encoded String.
| dest | the result string will be stored here. | |
| src | the ucs-4 encoded string to be converted. | |
| src_len | the length of source string. |
| bool scim::IConvert::convert | ( | WideString & | dest, | |
| const String & | src | |||
| ) | const |
Convert a local encoded String into a UCS-4 encoded WideString.
| dest | the result string will be stored here. | |
| src | the local encoded string to be converted. |
| bool scim::IConvert::convert | ( | WideString & | dest, | |
| const char * | src, | |||
| int | src_len | |||
| ) | const |
Convert a local encoded String into a UCS-4 encoded WideString.
| dest | the result string will be stored here. | |
| src | the local encoded string to be converted. | |
| src_len | the length of source string. |
| bool scim::IConvert::test_convert | ( | const WideString & | src | ) | const |
Test if a UCS-4 encoded WideString can be converted to a local encoded String.
| src | the ucs-4 encoded string to be test. |
| bool scim::IConvert::test_convert | ( | const ucs4_t * | src, | |
| int | src_len | |||
| ) | const |
Test if a ucs-4 encoded string can be converted to a local encoded String.
| src | the ucs-4 encoded string to be test. | |
| src_len | the length of source string. |
| bool scim::IConvert::test_convert | ( | const String & | src | ) | const |
Test if a local encoded string can be converted to a UCS-4 encoded WideString.
| src | the local encoded string to be test. |
| bool scim::IConvert::test_convert | ( | const char * | src, | |
| int | src_len | |||
| ) | const |
Test if a local encoded string can be converted to a UCS-4 encoded WideString.
| src | the local encoded string to be test. | |
| src_len | the length of source string. |
1.5.7.1