|
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
XMLRecognizer Class ReferenceThis class provides some simple code to recognize the encodings of XML files.
More...
#include <XMLRecognizer.hpp>
List of all members. Public Types
- enum Encodings {
EBCDIC = 0,
UCS_4B = 1,
UCS_4L = 2,
US_ASCII = 3,
UTF_8 = 4,
UTF_16B = 5,
UTF_16L = 6,
Encodings_Count,
Encodings_Min = EBCDIC,
Encodings_Max = UTF_16L,
OtherEncoding = 999,
Def_UTF16 = UTF_16L,
Def_UCS4 = UCS_4L
}
Public Methods
Static Public Methods
Static Public Attributes
Detailed Description
This class provides some simple code to recognize the encodings of XML files.
This recognition only does very basic sensing of the encoding
in a broad sense. Basically its just enough to let us get started and
read the XMLDecl line. The scanner, once it reads the XMLDecl, will
tell the reader any actual encoding string it found and the reader can
update itself to be more specific at that point.
Member Enumeration Documentation
enum XMLRecognizer::Encodings |
|
Member Function Documentation
Encodings XMLRecognizer::basicEncodingProbe (
|
const XMLByte * const rawBuffer, |
|
const unsigned int rawByteCount) [static] |
|
Encodings XMLRecognizer::encodingForName (
|
const XMLCh * const theEncName) [static] |
|
const XMLCh* XMLRecognizer::nameForEncoding (
|
const Encodings theEncoding) [static] |
|
Member Data Documentation
const char XMLRecognizer::fgASCIIPre[] [static] |
|
const unsigned int XMLRecognizer::fgASCIIPreLen [static] |
|
const XMLByte XMLRecognizer::fgEBCDICPre[] [static] |
|
const unsigned int XMLRecognizer::fgEBCDICPreLen [static] |
|
const XMLByte XMLRecognizer::fgUCS4BPre[] [static] |
|
const XMLByte XMLRecognizer::fgUCS4LPre[] [static] |
|
const unsigned int XMLRecognizer::fgUCS4PreLen [static] |
|
const XMLByte XMLRecognizer::fgUTF16BPre[] [static] |
|
const XMLByte XMLRecognizer::fgUTF16LPre[] [static] |
|
const unsigned int XMLRecognizer::fgUTF16PreLen [static] |
|
The documentation for this class was generated from the following file:
|