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.hpp File Reference

#include "xml/declxml.h"

Go to the source code of this file.

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

static
BEGIN_TERIMBER_NAMESPACE const
ub1_t 
s_white_space_mask = 0x01
static const ub1_t s_digit_mask = 0x02
static const ub1_t s_english_letter_mask = 0x04
static const ub1_t s_first_char_name_mask = 0x08
static const ub1_t s_char_name_mask = 0x10
static const ub1_t s_public_char_mask = 0x20
static const ub1_t s_versionnum_char_mask = 0x40
static const ub1_t s_encname_char_mask = 0x80


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 ub1_t s_char_name_mask = 0x10 [static]

Definition at line 40 of file declxml.hpp.

Referenced by is_name_char().

const ub1_t s_digit_mask = 0x02 [static]

Definition at line 37 of file declxml.hpp.

Referenced by is_digit().

const ub1_t s_encname_char_mask = 0x80 [static]

Definition at line 43 of file declxml.hpp.

Referenced by is_encname_char().

const ub1_t s_english_letter_mask = 0x04 [static]

Definition at line 38 of file declxml.hpp.

Referenced by is_letter().

const ub1_t s_first_char_name_mask = 0x08 [static]

Definition at line 39 of file declxml.hpp.

Referenced by is_name_first_char().

const ub1_t s_public_char_mask = 0x20 [static]

Definition at line 41 of file declxml.hpp.

Referenced by is_public_char().

const ub1_t s_versionnum_char_mask = 0x40 [static]

Definition at line 42 of file declxml.hpp.

Referenced by is_versionnum_char().

BEGIN_TERIMBER_NAMESPACE const ub1_t s_white_space_mask = 0x01 [static]

Definition at line 36 of file declxml.hpp.

Referenced by is_white_space().



© Copyright Terimber 2003-.