|
libcmutils 0.6.5
Multi-platform C99 utility library
|
Character set conversion object. More...
Data Fields | |
| CMUTIL_String *(* | Forward )(const CMUTIL_CSConv *conv, CMUTIL_String *instr) |
| Convert a string from the source character set to the target character set. | |
| CMUTIL_String *(* | Backward )(const CMUTIL_CSConv *conv, CMUTIL_String *instr) |
| Convert a string from the target character set back to the source character set. | |
| void(* | Destroy )(CMUTIL_CSConv *conv) |
| Destroy the character set conversion object. | |
Character set conversion object.
| CMUTIL_String *(* CMUTIL_CSConv::Forward) (const CMUTIL_CSConv *conv, CMUTIL_String *instr) |
Convert a string from the source character set to the target character set.
This function takes an input string encoded in the source character set and converts it to the target character set, returning a new string in the target encoding.
| conv | A pointer to the CMUTIL_CSConv object that defines the source and target character sets. |
| instr | A pointer to the input string to be converted. |
| CMUTIL_String *(* CMUTIL_CSConv::Backward) (const CMUTIL_CSConv *conv, CMUTIL_String *instr) |
Convert a string from the target character set back to the source character set.
This function takes an input string encoded in the target character set and converts it back to the source character set, returning a new string in the source encoding.
| conv | A pointer to the CMUTIL_CSConv object that defines the source and target character sets. |
| instr | A pointer to the input string to be converted. |
| void(* CMUTIL_CSConv::Destroy) (CMUTIL_CSConv *conv) |
Destroy the character set conversion object.
| conv | A pointer to the CMUTIL_CSConv object to be destroyed. |