Bugz Door Project
Public Member Functions | Private Attributes | List of all members
door::IConv Class Reference

Converts from one encoding to another. Uses iconv (international conversion) API. More...

Public Member Functions

 IConv (const char *to, const char *from)
 Construct a new IConv::IConv object. More...
 
int convert (char *input, char *output, size_t outbufsize)
 Calls iconv API to do the conversion. More...
 

Private Attributes

iconv_t ic
 

Detailed Description

Converts from one encoding to another. Uses iconv (international conversion) API.

Constructor & Destructor Documentation

◆ IConv()

door::IConv::IConv ( const char *  to,
const char *  from 
)

Construct a new IConv::IConv object.

Give the encodings that you want to convert to and from.

Parameters
to
from

Member Function Documentation

◆ convert()

int door::IConv::convert ( char *  input,
char *  output,
size_t  outbufsize 
)

Calls iconv API to do the conversion.

Buffers must be provided.

Parameters
input
output
outbufsize
Returns
int

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