Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

declxml.h File Reference

#include "allinc.h"

Go to the source code of this file.

Defines

#define xml_forceinline   __forceinline

Enumerations

enum  encodingSchema {
  AUTO, UTF_8, US_ASCII, UTF_16B,
  UTF_16L, UTF_16, UCS_4B, UCS_4BS,
  UCS_4L, UCS_4LS, UCS_4, WINDOWS_1251,
  UTF_ISO88591
}
 supported encoding More...

Functions

xml_forceinline bool is_white_space (ub1_t symbol)
 detect if symbol is whitespace
xml_forceinline bool is_public_char (ub1_t symbol)
 detects if the symbol is public
xml_forceinline bool is_versionnum_char (ub1_t symbol)
 check is symbol is valid vesrion number symbol
xml_forceinline bool is_encname_char (ub1_t symbol)
 checks if the symbol is EncName
xml_forceinline bool is_digit (ub1_t symbol)
 checks if the symbol is digit
xml_forceinline bool is_letter (ub1_t symbol)
 checks if the symbol is letter
xml_forceinline bool is_name_first_char (ub1_t symbol)
 checks if the symbol is a legal name first char
xml_forceinline bool is_name_char (ub1_t symbol)
 checks if the symbol is a legal name char
xml_forceinline bool is_attribute_char (ub1_t symbol)
 checks if the symbol is a valid attribute char

Variables

BEGIN_TERIMBER_NAMESPACE const
ub1_t 
s_char_map [256]
const char ch_null = 0x00
const char ch_hor_tab = 0x09
const char ch_lf = 0x0A
const char ch_ver_tab = 0x0B
const char ch_ff = 0x0C
const char ch_cr = 0x0D
const char ch_ampersand = 0x26
const char ch_asterisk = 0x2A
const char ch_at = 0x40
const char ch_back_slash = 0x5C
const char ch_bang = 0x21
const char ch_caret = 0x5E
const char ch_close_angle = 0x3E
const char ch_close_curly = 0x7D
const char ch_close_paren = 0x29
const char ch_close_square = 0x5D
const char ch_colon = 0x3A
const char ch_comma = 0x2C
const char ch_dash = 0x2D
const char ch_dollar_sign = 0x24
const char ch_double_quote = 0x22
const char ch_equal = 0x3D
const char ch_forward_slash = 0x2F
const char ch_grave = 0x60
const char ch_open_angle = 0x3C
const char ch_open_curly = 0x7B
const char ch_open_paren = 0x28
const char ch_open_square = 0x5B
const char ch_percent = 0x25
const char ch_period = 0x2E
const char ch_pipe = 0x7C
const char ch_plus = 0x2B
const char ch_pound = 0x23
const char ch_question = 0x3F
const char ch_single_quote = 0x27
const char ch_space = 0x20
const char ch_semicolon = 0x3B
const char ch_tilde = 0x7E
const char ch_underscore = 0x5F
const char ch_0 = 0x30
const char ch_1 = 0x31
const char ch_2 = 0x32
const char ch_3 = 0x33
const char ch_4 = 0x34
const char ch_5 = 0x35
const char ch_6 = 0x36
const char ch_7 = 0x37
const char ch_8 = 0x38
const char ch_9 = 0x39
const char ch_a = 0x61
const char ch_b = 0x62
const char ch_c = 0x63
const char ch_d = 0x64
const char ch_e = 0x65
const char ch_f = 0x66
const char ch_g = 0x67
const char ch_h = 0x68
const char ch_i = 0x69
const char ch_j = 0x6A
const char ch_k = 0x6B
const char ch_l = 0x6C
const char ch_m = 0x6D
const char ch_n = 0x6E
const char ch_o = 0x6F
const char ch_p = 0x70
const char ch_q = 0x71
const char ch_r = 0x72
const char ch_s = 0x73
const char ch_t = 0x74
const char ch_u = 0x75
const char ch_v = 0x76
const char ch_w = 0x77
const char ch_x = 0x78
const char ch_y = 0x79
const char ch_z = 0x7A
const char ch_A = 0x41
const char ch_B = 0x42
const char ch_C = 0x43
const char ch_D = 0x44
const char ch_E = 0x45
const char ch_F = 0x46
const char ch_G = 0x47
const char ch_H = 0x48
const char ch_I = 0x49
const char ch_J = 0x4A
const char ch_K = 0x4B
const char ch_L = 0x4C
const char ch_M = 0x4D
const char ch_N = 0x4E
const char ch_O = 0x4F
const char ch_P = 0x50
const char ch_Q = 0x51
const char ch_R = 0x52
const char ch_S = 0x53
const char ch_T = 0x54
const char ch_U = 0x55
const char ch_V = 0x56
const char ch_W = 0x57
const char ch_X = 0x58
const char ch_Y = 0x59
const char ch_Z = 0x5A


Define Documentation

#define xml_forceinline   __forceinline

Definition at line 40 of file declxml.h.


Enumeration Type Documentation

supported encoding

Enumerator:
AUTO  automatic detection
UTF_8  utf-8
US_ASCII  ascii
UTF_16B  utf-16 big ending
UTF_16L  utf-16 little ending
UTF_16  utf-16 endings detected automatically
UCS_4B  utf-32 (1234 byte order)
UCS_4BS  utf-32 (3412 byte order)
UCS_4L  utf-32 (4321 byte order)
UCS_4LS  utf-32 (2143 byte order)
UCS_4  utf-32 endings detected automatically
WINDOWS_1251  windows 1251
UTF_ISO88591  iso 88591

Definition at line 156 of file declxml.h.


Function Documentation

xml_forceinline bool is_attribute_char ( ub1_t  symbol  ) 

checks if the symbol is a valid attribute char

Parameters:
symbol  input symbol

Definition at line 112 of file declxml.hpp.

References ch_ampersand, and ch_open_angle.

Referenced by byte_manager::parseAttributeValue().

xml_forceinline bool is_digit ( ub1_t  symbol  ) 

checks if the symbol is digit

Parameters:
symbol  input symbol

Definition at line 82 of file declxml.hpp.

References s_char_map, and s_digit_mask.

xml_forceinline bool is_encname_char ( ub1_t  symbol  ) 

checks if the symbol is EncName

Parameters:
symbol  input symbol

Definition at line 75 of file declxml.hpp.

References s_char_map, and s_encname_char_mask.

Referenced by byte_source::parseEncoding().

xml_forceinline bool is_letter ( ub1_t  symbol  ) 

checks if the symbol is letter

Parameters:
symbol  input symbol

Definition at line 89 of file declxml.hpp.

References s_char_map, and s_english_letter_mask.

Referenced by xml_stream_attribute::crack_xml_request(), and byte_source::parseEncoding().

xml_forceinline bool is_name_char ( ub1_t  symbol  ) 

checks if the symbol is a legal name char

Parameters:
symbol  input symbol

Definition at line 105 of file declxml.hpp.

References s_char_map, and s_char_name_mask.

Referenced by xml_document::assign_attribute_value(), byte_manager::parseName(), and byte_manager::parseValue().

xml_forceinline bool is_name_first_char ( ub1_t  symbol  ) 

checks if the symbol is a legal name first char

Parameters:
symbol  input symbol

Definition at line 97 of file declxml.hpp.

References s_char_map, and s_first_char_name_mask.

Referenced by xml_document::assign_attribute_value(), and byte_manager::parseName().

xml_forceinline bool is_public_char ( ub1_t  symbol  ) 

detects if the symbol is public

Parameters:
symbol  input symbol

Definition at line 59 of file declxml.hpp.

References s_char_map, and s_public_char_mask.

Referenced by byte_manager::parseExternalID().

xml_forceinline bool is_versionnum_char ( ub1_t  symbol  ) 

check is symbol is valid vesrion number symbol

Parameters:
symbol  input symbol

Definition at line 67 of file declxml.hpp.

References s_char_map, and s_versionnum_char_mask.

Referenced by byte_source::parseVersion().

xml_forceinline bool is_white_space ( ub1_t  symbol  ) 

detect if symbol is whitespace

Parameters:
symbol  input symbol

Definition at line 51 of file declxml.hpp.

References s_char_map, and s_white_space_mask.

Referenced by xml_processor::_parseCharData(), dtd_processor::parseEntityDef(), dtd_processor::parsePEReference(), byte_manager::parsePI(), and tokenValues().


Variable Documentation

const char ch_0 = 0x30

Definition at line 89 of file declxml.h.

Referenced by detect_token_type(), and byte_manager::parseCharRef().

const char ch_1 = 0x31

Definition at line 90 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and detect_token_type().

const char ch_2 = 0x32

Definition at line 91 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and detect_token_type().

const char ch_3 = 0x33

Definition at line 92 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and detect_token_type().

const char ch_4 = 0x34

Definition at line 93 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and detect_token_type().

const char ch_5 = 0x35

Definition at line 94 of file declxml.h.

Referenced by detect_token_type().

const char ch_6 = 0x36

Definition at line 95 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and detect_token_type().

const char ch_7 = 0x37

Definition at line 96 of file declxml.h.

Referenced by detect_token_type().

const char ch_8 = 0x38

Definition at line 97 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and detect_token_type().

const char ch_9 = 0x39

Definition at line 98 of file declxml.h.

Referenced by detect_token_type(), and byte_manager::parseCharRef().

const char ch_A = 0x41

const char ch_a = 0x61

Definition at line 100 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and byte_manager::parseCharRef().

const char ch_at = 0x40

Definition at line 55 of file declxml.h.

Referenced by xml_stream_attribute::crack_xml_request(), and detect_token_type().

const char ch_B = 0x42

Definition at line 128 of file declxml.h.

const char ch_b = 0x62

Definition at line 101 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_C = 0x43

Definition at line 129 of file declxml.h.

Referenced by dtd_processor::parseAttDef().

const char ch_c = 0x63

Definition at line 102 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_caret = 0x5E

Definition at line 58 of file declxml.h.

Referenced by detect_token_type().

const char ch_close_curly = 0x7D

Definition at line 60 of file declxml.h.

Referenced by detect_token_type().

const char ch_colon = 0x3A

Definition at line 63 of file declxml.h.

Referenced by xml_stream_attribute::crack_xml_request(), and detect_token_type().

const char ch_comma = 0x2C

const char ch_D = 0x44

Definition at line 130 of file declxml.h.

Referenced by dtd_processor::parseAttDef(), and xml_processor::parseProlog().

const char ch_d = 0x64

Definition at line 103 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_dollar_sign = 0x24

Definition at line 66 of file declxml.h.

Referenced by detect_token_type().

const char ch_E = 0x45

const char ch_e = 0x65

const char ch_F = 0x46

Definition at line 132 of file declxml.h.

Referenced by byte_manager::parseCharRef(), and dtd_processor::parseDefaultDecl().

const char ch_f = 0x66

Definition at line 105 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and byte_manager::parseCharRef().

const char ch_ff = 0x0C

Definition at line 51 of file declxml.h.

Referenced by detect_token_type().

const char ch_G = 0x47

Definition at line 133 of file declxml.h.

Referenced by dtd_processor::parseSubSet().

const char ch_g = 0x67

Definition at line 106 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_grave = 0x60

Definition at line 70 of file declxml.h.

Referenced by detect_token_type().

const char ch_H = 0x48

Definition at line 134 of file declxml.h.

const char ch_h = 0x68

Definition at line 107 of file declxml.h.

const char ch_I = 0x49

const char ch_i = 0x69

Definition at line 108 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_J = 0x4A

Definition at line 136 of file declxml.h.

const char ch_j = 0x6A

Definition at line 109 of file declxml.h.

const char ch_K = 0x4B

Definition at line 137 of file declxml.h.

const char ch_k = 0x6B

Definition at line 110 of file declxml.h.

const char ch_L = 0x4C

Definition at line 138 of file declxml.h.

Referenced by dtd_processor::parseSubSet().

const char ch_l = 0x6C

Definition at line 111 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_M = 0x4D

Definition at line 139 of file declxml.h.

Referenced by dtd_processor::parseAttDef().

const char ch_m = 0x6D

Definition at line 112 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_N = 0x4E

const char ch_n = 0x6E

Definition at line 113 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_O = 0x4F

Definition at line 141 of file declxml.h.

const char ch_o = 0x6F

Definition at line 114 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_open_curly = 0x7B

Definition at line 73 of file declxml.h.

Referenced by detect_token_type().

const char ch_P = 0x50

Definition at line 142 of file declxml.h.

Referenced by xml_processor::parseDocTypeDecl(), and byte_manager::parseExternalID().

const char ch_p = 0x70

Definition at line 115 of file declxml.h.

const char ch_period = 0x2E

Definition at line 77 of file declxml.h.

Referenced by detect_token_type().

const char ch_Q = 0x51

Definition at line 143 of file declxml.h.

const char ch_q = 0x71

Definition at line 116 of file declxml.h.

const char ch_R = 0x52

Definition at line 144 of file declxml.h.

Referenced by dtd_processor::parseAttDef(), and dtd_processor::parseDefaultDecl().

const char ch_r = 0x72

Definition at line 117 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_S = 0x53

const char ch_s = 0x73

Definition at line 118 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and byte_source::parseXMLDecl().

const char ch_T = 0x54

Definition at line 146 of file declxml.h.

const char ch_t = 0x74

Definition at line 119 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_tilde = 0x7E

Definition at line 85 of file declxml.h.

Referenced by detect_token_type().

const char ch_U = 0x55

Definition at line 147 of file declxml.h.

const char ch_u = 0x75

Definition at line 120 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_underscore = 0x5F

Definition at line 86 of file declxml.h.

Referenced by dtd_processor::convert_ctype(), and detect_token_type().

const char ch_V = 0x56

Definition at line 148 of file declxml.h.

const char ch_v = 0x76

const char ch_ver_tab = 0x0B

Definition at line 50 of file declxml.h.

Referenced by detect_token_type().

const char ch_W = 0x57

Definition at line 149 of file declxml.h.

const char ch_w = 0x77

Definition at line 122 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_X = 0x58

Definition at line 150 of file declxml.h.

Referenced by byte_manager::parseCharRef().

const char ch_x = 0x78

Definition at line 123 of file declxml.h.

Referenced by byte_manager::parseCharRef().

const char ch_Y = 0x59

Definition at line 151 of file declxml.h.

Referenced by dtd_processor::parseAttDef().

const char ch_y = 0x79

Definition at line 124 of file declxml.h.

Referenced by dtd_processor::convert_ctype().

const char ch_Z = 0x5A

Definition at line 152 of file declxml.h.

const char ch_z = 0x7A

Definition at line 125 of file declxml.h.

BEGIN_TERIMBER_NAMESPACE const ub1_t s_char_map[256]



© Copyright Terimber 2003-.