libtconv-0.1 manual
tconv::tconv
tconv::tconv(const char *iEncP = NULL, const char *oEncP = NULL);
declared in tconv.h, include tconv.h

iEncP input character set encoding, optional, default is NULL,
oEncP output character set encoding, optional, default is NULL.

Default constructor, creates an instance of tconv object. Accepts two optional parameters - definitions of input and output character encodings. Though iEncP and oEncP are optional, it is a good idea to provide them at the moment of instantiating the tconv. Proper conversion might not be possible without them. Still, if in need of creating the object without parameters, they can be supplied later on, with use of tconv::set_ienc and tconv::set_oenc functions.

NOTE: The constructor does not test whether provided encoding strings are valid or not. It just stores given pointers for future use.

Example
// C++ source

#include "tconv.h"

using namespace std;

int main(){
  tconv tc("pl_PL.iso_8859-1","pl_PL.utf8");

  // ...

  return 0;
}
Copyright 2015 TinyIT All rights reserved
Last modified 2015-06-04