Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACEXML_Encoding Class Reference

ACEXML_Encoding. More...

#include "ACEXML/common/Encoding.h"

List of all members.

Public Types

enum  {
  UCS4BE = 0, UCS4LE = 1, UCS4_2143 = 2, UCS4_3412 = 3,
  UTF16BE = 4, UTF16LE = 5, UTF8 = 6, OTHER = 7
}

Static Public Methods

const ACEXML_Charget_encoding (const char *input)

Public Attributes

enum ACEXML_Encoding:: { ... }  ENCODING

Static Public Attributes

const ACEXML_Charencoding_names_ [8]
const ACEXML_UTF8 byte_order_mark_ [][4]
const ACEXML_UTF8 magic_values_ [][4]


Detailed Description

ACEXML_Encoding.

Wrapper class for determining the encoding of a file or a byte stream.

Definition at line 35 of file Encoding.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
UCS4BE 
UCS4LE 
UCS4_2143 
UCS4_3412 
UTF16BE 
UTF16LE 
UTF8 
OTHER 

Definition at line 38 of file Encoding.h.

00038        {
00039     UCS4BE = 0,
00040     UCS4LE = 1,
00041     UCS4_2143 = 2,
00042     UCS4_3412 = 3,
00043     UTF16BE = 4,
00044     UTF16LE = 5,
00045     UTF8 = 6,
00046     OTHER = 7
00047   } ENCODING;


Member Function Documentation

const ACEXML_Char * ACEXML_Encoding::get_encoding const char *    input [static]
 

Definition at line 37 of file Encoding.cpp.

References byte_order_mark_, encoding_names_, magic_values_, ACE_OS_String::memcmp, OTHER, UTF16BE, UTF16LE, and UTF8.

Referenced by ACEXML_StrCharStream::determine_encoding, and ACEXML_FileCharStream::determine_encoding.


Member Data Documentation

const ACEXML_UTF8 ACEXML_Encoding::byte_order_mark_[][4] [static]
 

Definition at line 51 of file Encoding.h.

Referenced by get_encoding.

enum { ... } ACEXML_Encoding::ENCODING
 

const ACEXML_Char * ACEXML_Encoding::encoding_names_ [static]
 

Initial value:

 {
  ACE_TEXT ("UCS-4BE"),
  ACE_TEXT ("UCS-4LE"),
  ACE_TEXT ("UCS-4_2143"),
  ACE_TEXT ("UCS-4_3412"),
  ACE_TEXT ("UTF-16BE"),
  ACE_TEXT ("UTF-16LE"),
  ACE_TEXT ("UTF-8"),

}

Definition at line 5 of file Encoding.cpp.

Referenced by ACEXML_StrCharStream::determine_encoding, ACEXML_FileCharStream::determine_encoding, and get_encoding.

const ACEXML_UTF8 ACEXML_Encoding::magic_values_[][4] [static]
 

Definition at line 53 of file Encoding.h.

Referenced by get_encoding.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:26:49 2003 for ACEXML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002