libcmutils 0.6.5
Multi-platform C99 utility library
Loading...
Searching...
No Matches

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.
 

Detailed Description

Character set conversion object.

Field Documentation

◆ Forward

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.

Parameters
convA pointer to the CMUTIL_CSConv object that defines the source and target character sets.
instrA pointer to the input string to be converted.
Returns
A pointer to the newly converted string in the target character set.

◆ Backward

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.

Parameters
convA pointer to the CMUTIL_CSConv object that defines the source and target character sets.
instrA pointer to the input string to be converted.
Returns
A pointer to the newly converted string in the source character set.

◆ Destroy

void(* CMUTIL_CSConv::Destroy) (CMUTIL_CSConv *conv)

Destroy the character set conversion object.

Parameters
convA pointer to the CMUTIL_CSConv object to be destroyed.

The documentation for this struct was generated from the following file: