ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

encoding.c File Reference
#include "libxml.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <libxml/encoding.h>
#include <libxml/xmlmemory.h>
#include <libxml/globals.h>
#include <libxml/xmlerror.h>
#include "elfgcchack.h"

Go to the source code of this file.

Data Structures

struct  xmlCharEncodingAlias

Defines

#define IN_LIBXML

Typedefs

typedef xmlCharEncodingAlias * xmlCharEncodingAliasPtr

Functions

static void xmlEncodingErrMemory (const char *extra)
static void xmlEncodingErr (xmlParserErrors error, const char *msg, const char *val)
static int asciiToUTF8 (unsigned char *out, int *outlen, const unsigned char *in, int *inlen)
int isolat1ToUTF8 (unsigned char *out, int *outlen, const unsigned char *in, int *inlen)
static int UTF8ToUTF8 (unsigned char *out, int *outlen, const unsigned char *inb, int *inlenb)
static int UTF16LEToUTF8 (unsigned char *out, int *outlen, const unsigned char *inb, int *inlenb)
static int UTF16BEToUTF8 (unsigned char *out, int *outlen, const unsigned char *inb, int *inlenb)
xmlCharEncoding xmlDetectCharEncoding (const unsigned char *in, int len)
void xmlCleanupEncodingAliases (void)
const charxmlGetEncodingAlias (const char *alias)
. Existing alias

will be overwritten.

Returns 0 in case of success, -1 in case of error

int xmlAddEncodingAlias (const char *name, const char *alias)
int xmlDelEncodingAlias (const char *alias)
: the encoding name, in UTF-8 format (ASCII actually)

xmlNewCharEncodingHandler:

: the xmlCharEncodingInputFunc to read that encoding : the xmlCharEncodingOutputFunc to write that encoding

Create and registers an xmlCharEncodingHandler.

Returns the xmlCharEncodingHandlerPtr created (or NULL in case of error).

xmlCharEncodingHandlerPtr xmlNewCharEncodingHandler (const char *name, xmlCharEncodingInputFunc input, xmlCharEncodingOutputFunc output)
void xmlInitCharEncodingHandlers (void)
void xmlCleanupCharEncodingHandlers (void)
void xmlRegisterCharEncodingHandler (xmlCharEncodingHandlerPtr handler)
xmlCharEncodingHandlerPtr xmlGetCharEncodingHandler (xmlCharEncoding enc)

Variables

static xmlCharEncodingHandlerPtr xmlUTF16LEHandler = NULL
static xmlCharEncodingHandlerPtr xmlUTF16BEHandler = NULL
static xmlCharEncodingAliasPtr xmlCharEncodingAliases = NULL
static int xmlCharEncodingAliasesNb = 0
static int xmlCharEncodingAliasesMax = 0
static int xmlLittleEndian = 1

: the encoding name as parsed, in UTF-8 format (ASCII actually)

xmlParseCharEncoding:

Compare the string to the encoding schemes already known. Note that the comparison is case insensitive accordingly to the section [XML] 4.3.3 Character Encoding in Entities.

Returns one of the XML_CHAR_ENCODING_... values or XML_CHAR_ENCODING_NONE if not recognized.

#define MAX_ENCODING_HANDLERS   50
static xmlCharEncodingHandlerPtrhandlers = NULL
static int nbCharEncodingHandler = 0
static xmlCharEncodingHandlerPtr xmlDefaultCharEncodingHandler = NULL
xmlCharEncoding xmlParseCharEncoding (const char *name)
const charxmlGetCharEncodingName (xmlCharEncoding enc)

: a string describing the char encoding.

xmlFindCharEncodingHandler:

Search in the registered set the handler able to read/write that encoding.

Returns the handler or NULL if not found

#define bottom_encoding
xmlCharEncodingHandlerPtr xmlFindCharEncodingHandler (const char *name)
int xmlCharEncFirstLineInt (xmlCharEncodingHandler *handler, xmlBufferPtr out, xmlBufferPtr in, int len)
int xmlCharEncFirstLine (xmlCharEncodingHandler *handler, xmlBufferPtr out, xmlBufferPtr in)
int xmlCharEncInFunc (xmlCharEncodingHandler *handler, xmlBufferPtr out, xmlBufferPtr in)
int xmlCharEncOutFunc (xmlCharEncodingHandler *handler, xmlBufferPtr out, xmlBufferPtr in)
int xmlCharEncCloseFunc (xmlCharEncodingHandler *handler)
long xmlByteConsumed (xmlParserCtxtPtr ctxt)

Generated on Sat May 26 2012 06:00:26 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.