/***************************************************************************
                            qt_QTextCodec.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QTextCodec.h"
}

#include <qtextcodec.h>

void qt_del_QTextCodec( qt_QTextCodec* p ){
	delete (QTextCodec*) p;
}
char* qt_QTextCodec_name( qt_QTextCodec* instPointer){
	return (char*) ((QTextCodec*)instPointer)->name();
}
char* qt_QTextCodec_mimeName( qt_QTextCodec* instPointer){
	return (char*) ((QTextCodec*)instPointer)->mimeName();
}
int qt_QTextCodec_mibEnum( qt_QTextCodec* instPointer){
	return (int) ((QTextCodec*)instPointer)->mibEnum();
}
qt_QTextDecoder* qt_QTextCodec_makeDecoder( qt_QTextCodec* instPointer){
	return (qt_QTextDecoder*) ((QTextCodec*)instPointer)->makeDecoder();
}
qt_QTextEncoder* qt_QTextCodec_makeEncoder( qt_QTextCodec* instPointer){
	return (qt_QTextEncoder*) ((QTextCodec*)instPointer)->makeEncoder();
}
qt_QString * qt_QTextCodec_toUnicode( qt_QTextCodec* instPointer,char* chars, int len){
	return (qt_QString *)new QString(((QTextCodec*)instPointer)->toUnicode((char*)chars, (int)len));
}
qt_QCString* qt_QTextCodec_fromUnicode( qt_QTextCodec* instPointer,qt_QString * uc, int lenInOut){
	return (qt_QCString*)new QCString(((QTextCodec*)instPointer)->fromUnicode((QString&)* (QString*)uc, (int&)lenInOut));
}
qt_QCString* qt_QTextCodec_fromUnicode1( qt_QTextCodec* instPointer,qt_QString * uc){
	return (qt_QCString*)new QCString(((QTextCodec*)instPointer)->fromUnicode((QString&)* (QString*)uc));
}
qt_QString * qt_QTextCodec_toUnicode1( qt_QTextCodec* instPointer,qt_QByteArray* arg1, int len){
	return (qt_QString *)new QString(((QTextCodec*)instPointer)->toUnicode((QByteArray&)* (QByteArray*)arg1, (int)len));
}
qt_QString * qt_QTextCodec_toUnicode2( qt_QTextCodec* instPointer,qt_QByteArray* arg1){
	return (qt_QString *)new QString(((QTextCodec*)instPointer)->toUnicode((QByteArray&)* (QByteArray*)arg1));
}
qt_QString * qt_QTextCodec_toUnicode3( qt_QTextCodec* instPointer,qt_QCString* arg1, int len){
	return (qt_QString *)new QString(((QTextCodec*)instPointer)->toUnicode((QCString&)* (QCString*)arg1, (int)len));
}
qt_QString * qt_QTextCodec_toUnicode4( qt_QTextCodec* instPointer,qt_QCString* arg1){
	return (qt_QString *)new QString(((QTextCodec*)instPointer)->toUnicode((QCString&)* (QCString*)arg1));
}
qt_QString * qt_QTextCodec_toUnicode5( qt_QTextCodec* instPointer,char* chars){
	return (qt_QString *)new QString(((QTextCodec*)instPointer)->toUnicode((char*)chars));
}
int qt_QTextCodec_canEncode( qt_QTextCodec* instPointer,qt_QChar* arg1){
	return (int) ((QTextCodec*)instPointer)->canEncode((QChar)* (QChar*)arg1);
}
int qt_QTextCodec_canEncode1( qt_QTextCodec* instPointer,qt_QString * arg1){
	return (int) ((QTextCodec*)instPointer)->canEncode((QString&)* (QString*)arg1);
}
int qt_QTextCodec_heuristicContentMatch( qt_QTextCodec* instPointer,char* chars, int len){
	return (int) ((QTextCodec*)instPointer)->heuristicContentMatch((char*)chars, (int)len);
}
int qt_QTextCodec_heuristicNameMatch( qt_QTextCodec* instPointer,char* hint){
	return (int) ((QTextCodec*)instPointer)->heuristicNameMatch((char*)hint);
}
qt_QByteArray* qt_QTextCodec_fromUnicode2( qt_QTextCodec* instPointer,qt_QString * uc, int from, int len){
	return (qt_QByteArray*)new QByteArray(((QTextCodec*)instPointer)->fromUnicode((QString&)* (QString*)uc, (int)from, (int)len));
}
unsigned short qt_QTextCodec_characterFromUnicode( qt_QTextCodec* instPointer,qt_QString * str, int pos){
	return (unsigned short) ((QTextCodec*)instPointer)->characterFromUnicode((QString&)* (QString*)str, (int)pos);
}
qt_QTextCodec* qt_QTextCodec_loadCharmap( qt_QIODevice * arg1){
	return (qt_QTextCodec*) QTextCodec::loadCharmap((QIODevice*)arg1);
}
qt_QTextCodec* qt_QTextCodec_loadCharmapFile( qt_QString * filename){
	return (qt_QTextCodec*) QTextCodec::loadCharmapFile((QString)* (QString*)filename);
}
qt_QTextCodec* qt_QTextCodec_codecForMib( int mib){
	return (qt_QTextCodec*) QTextCodec::codecForMib((int)mib);
}
qt_QTextCodec* qt_QTextCodec_codecForName( char* hint, int accuracy){
	return (qt_QTextCodec*) QTextCodec::codecForName((char*)hint, (int)accuracy);
}
qt_QTextCodec* qt_QTextCodec_codecForContent( char* chars, int len){
	return (qt_QTextCodec*) QTextCodec::codecForContent((char*)chars, (int)len);
}
qt_QTextCodec* qt_QTextCodec_codecForIndex( int i){
	return (qt_QTextCodec*) QTextCodec::codecForIndex((int)i);
}
qt_QTextCodec* qt_QTextCodec_codecForLocale( ){
	return (qt_QTextCodec*) QTextCodec::codecForLocale();
}
void qt_QTextCodec_setCodecForLocale( qt_QTextCodec* c){
	QTextCodec::setCodecForLocale((QTextCodec*)c);
	return;
}
void qt_QTextCodec_deleteAllCodecs( ){
	QTextCodec::deleteAllCodecs();
	return;
}
char* qt_QTextCodec_locale( ){
	return (char*) QTextCodec::locale();
}
