My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
portable_c.c File Reference
#include <iconv.h>

Go to the source code of this file.

Functions

void * portable_iconv_open (const char *tocode, const char *fromcode)
 
size_t portable_iconv (void *cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft)
 
int portable_iconv_close (void *cd)
 

Function Documentation

size_t portable_iconv ( void *  cd,
char **  inbuf,
size_t *  inbytesleft,
char **  outbuf,
size_t *  outbytesleft 
)

Definition at line 24 of file portable_c.c.

Referenced by encodeForOutput(), HtmlHelp::recode(), TemplateContextImpl::recode(), transcodeCharacterBuffer(), and transcodeCharacterStringToUTF8().

{
return iconv((iconv_t)cd,inbuf,inbytesleft,outbuf,outbytesleft);
}
int portable_iconv_close ( void *  cd)

Definition at line 30 of file portable_c.c.

Referenced by encodeForOutput(), TemplateContextImpl::setEncoding(), transcodeCharacterBuffer(), transcodeCharacterStringToUTF8(), and HtmlHelp::~HtmlHelp().

{
return iconv_close((iconv_t)cd);
}
void* portable_iconv_open ( const char *  tocode,
const char *  fromcode 
)

Definition at line 19 of file portable_c.c.

Referenced by encodeForOutput(), HtmlHelp::initialize(), TemplateContextImpl::setEncoding(), transcodeCharacterBuffer(), and transcodeCharacterStringToUTF8().

{
return iconv_open(tocode,fromcode);
}