Lexical XPath elements.
More...XPath constructions. The ordinals are rules of XPath or XML definitions in w3c.
More...Expression types.
More...typedef unsigned char TinyXPath::_byte_ |
enum TinyXPath::lexico |
Lexical XPath elements.
XPath constructions. The ordinals are rules of XPath or XML definitions in w3c.
enum TinyXPath::xpath_sub |
const char * TinyXPath::cp_disp_class_lex | ( | lexico | lex_in | ) |
Dump a lexical element.
Referenced by TinyXPath::token_syntax_decoder::v_syntax_decode().
lexico TinyXPath::lex_get_class | ( | _byte_ | b_in | ) |
Get the lexical class of an XPath expression byte.
Referenced by TinyXPath::xpath_stream::v_lexico_decode().
bool TinyXPath::o_is_axis_name | ( | lexico | lex_test | ) |
Check if a lexical element can be an axis name.
Referenced by TinyXPath::token_syntax_decoder::o_recognize().
lexico TinyXPath::lex_test_id | ( | const _byte_ * | bp_str, | |
unsigned | u_size, | |||
lexico | lex_next | |||
) |
Check if an ID maps an existing keyword
Returns the new lexical element or lex_ncname if not found
Referenced by TinyXPath::xpath_stream::v_lexico_decode().
TiXmlString TinyXPath::S_remove_lead_trail | ( | const char * | cp_in | ) |
Removes all leading and trailing white spaces.
Referenced by TinyXPath::xpath_processor::v_function_normalize_space().
void TinyXPath::v_assign_int_to_string | ( | TiXmlString & | S_string, | |
int | i_val | |||
) |
Assign an integer to a string.
Referenced by TinyXPath::expression_result::S_get_string().
void TinyXPath::v_assign_double_to_string | ( | TiXmlString & | S_string, | |
double | d_val | |||
) |
Assign a double to a string, cleaning any trailing zeroes and the decimal point if there's no decimal part
Referenced by TinyXPath::expression_result::S_get_string().
int TinyXPath::i_compare_ptr_and_flag | ( | const void * | vp_1, | |
const void * | vp_2 | |||
) |
Internal utility function for node set sorting.
vp_1 | Ptr to first element to compare | |
vp_2 | Ptr to second element to compare |
Referenced by TinyXPath::node_set::v_document_sort().
int TinyXPath::i_xml_cardinality | ( | const TiXmlElement * | XEp_elem, | |
bool | o_by_name | |||
) |
Cardinality in the terms of XPath counts from 1 for the first element.
XEp_elem | Base element. Must not be null | |
o_by_name | true if we ask for the cardinality for our name only |
Referenced by TinyXPath::xpath_processor::o_check_predicate(), and TinyXPath::xpath_processor::v_function_position().
int TinyXPath::i_xml_family_size | ( | const TiXmlElement * | XEp_elem | ) |
Family size : Nb of sibling elements (including ourselves).
XEp_elem | Base element. Must not be null |
Referenced by TinyXPath::xpath_processor::v_function_last().
int TinyXPath::i_xpath_int | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr | |||
) |
Static function to compute an integer XPath expression, without an error check.
Referenced by main().
double TinyXPath::d_xpath_double | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr | |||
) |
Static function to compute a double XPath expression, without an error check.
bool TinyXPath::o_xpath_bool | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr | |||
) |
Static function to compute a bool XPath expression, without an error check.
TiXmlString TinyXPath::S_xpath_string | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr | |||
) |
Static function to compute a string XPath expression, without an error check.
Referenced by main(), and v_test_one_string_tiny().
TiXmlNode * TinyXPath::XNp_xpath_node | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr | |||
) |
Static function to compute a node XPath expression, without an error check.
Referenced by CConcXml::GetTextAreaElements().
TiXmlAttribute * TinyXPath::XAp_xpath_attribute | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr | |||
) |
Static function to compute an attribute XPath expression, without an error check.
bool TinyXPath::o_xpath_int | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr, | |||
int & | i_res | |||
) |
Static function to compute an integer XPath expression, with an error check.
bool TinyXPath::o_xpath_double | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr, | |||
double & | d_res | |||
) |
Static function to compute a double XPath expression, without an error check.
Referenced by main().
bool TinyXPath::o_xpath_bool | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr, | |||
bool & | o_res | |||
) |
Static function to compute a bool XPath expression, without an error check.
bool TinyXPath::o_xpath_string | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr, | |||
TiXmlString & | S_res | |||
) |
Static function to compute a string XPath expression, without an error check.
bool TinyXPath::o_xpath_node | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr, | |||
const TiXmlNode *& | XNp_node | |||
) |
Static function to compute a node XPath expression, without an error check.
bool TinyXPath::o_xpath_attribute | ( | const TiXmlNode * | XNp_source_tree, | |
const char * | cp_xpath_expr, | |||
const TiXmlAttribute *& | XAp_attrib | |||
) |
Static function to compute an attribute XPath expression, without an error check.
const int TinyXPath::i_alloc_size = 100 |
Allocation unit.
Referenced by TinyXPath::action_store::v_add().
lexico TinyXPath::lex_char_map[256] [static] |
Mapping of all the byte values into elementary lexical items.