Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

WBXML Library


Files

file  wbxml.h
 WBXML Library Main Header.


Modules

WBXML Base64 Functions
WBXML Buffers
WBXML Converters
WBXML Element
WBXML Encoder
WBXML Error Codes
WBXML Lists
WBXML Log Functions
WBXML Memory Wrapper
WBXML Parser
WBXML Tables
WBXML Tree

Defines

#define WBXML_LIB_VERSION   "0.8.2"
#define WB_BOOL   unsigned char
#define WB_UTINY   unsigned char
#define WB_TINY   char
#define WB_ULONG   unsigned int
#define WB_LONG   int
#define TRUE   1
#define FALSE   0
#define NULL   0
#define WBXML_UTINY_NULL_STRING   ((WB_UTINY *)"")
#define WBXML_STRLEN(a)   strlen((const WB_TINY*)a)
#define WBXML_STRCMP(a, b)   strcmp((const WB_TINY*)a,(const WB_TINY*)b)
#define WBXML_STRNCMP(a, b, c)   strncmp((const WB_TINY*)a,(const WB_TINY*)b,c)
#define WBXML_STRSTR(a, b)   strstr((const WB_TINY*)a,(const WB_TINY*)b)
#define WBXML_STRCASECMP(a, b)   strcasecmp((const WB_TINY*)a,(const WB_TINY*)b)
#define WBXML_ISDIGIT(a)   isdigit(a)
#define WBXML_DECLARE(type)   type
#define WBXML_DECLARE_NONSTD(type)   type
#define WBXML_SWITCH_PAGE   0x00
#define WBXML_END   0x01
#define WBXML_ENTITY   0x02
#define WBXML_STR_I   0x03
#define WBXML_LITERAL   0x04
#define WBXML_EXT_I_0   0x40
#define WBXML_EXT_I_1   0x41
#define WBXML_EXT_I_2   0x42
#define WBXML_PI   0x43
#define WBXML_LITERAL_C   0x44
#define WBXML_EXT_T_0   0x80
#define WBXML_EXT_T_1   0x81
#define WBXML_EXT_T_2   0x82
#define WBXML_STR_T   0x83
#define WBXML_LITERAL_A   0x84
#define WBXML_EXT_0   0xC0
#define WBXML_EXT_1   0xC1
#define WBXML_EXT_2   0xC2
#define WBXML_OPAQUE   0xC3
#define WBXML_LITERAL_AC   0xC4
#define WBXML_TOKEN_MASK   0x3F
#define WBXML_TOKEN_WITH_ATTRS   0x80
#define WBXML_TOKEN_WITH_CONTENT   0x40
#define WBXML_VERSION_TEXT_10   "1.0"
#define WBXML_VERSION_TEXT_11   "1.1"
#define WBXML_VERSION_TEXT_12   "1.2"
#define WBXML_VERSION_TEXT_13   "1.3"

Typedefs

typedef enum WBXMLVersion_e WBXMLVersion
typedef enum WBXMLLanguage_e WBXMLLanguage

Enumerations

enum  WBXMLVersion_e {
  WBXML_VERSION_UNKNOWN = -1, WBXML_VERSION_10 = 0x00, WBXML_VERSION_11 = 0x01, WBXML_VERSION_12 = 0x02,
  WBXML_VERSION_13 = 0x03
}
enum  WBXMLLanguage_e { WBXML_LANG_UNKNOWN = 0 }

Detailed Description

Result is libwbxml2

Define Documentation

#define FALSE   0
 

Definition at line 57 of file wbxml.h.

Referenced by main(), wbxml_buffer_append(), wbxml_buffer_append_char(), wbxml_buffer_append_data_real(), wbxml_buffer_binary_to_hex(), wbxml_buffer_contains_only_whitespaces(), wbxml_buffer_get_char(), wbxml_buffer_insert(), wbxml_buffer_insert_cstr(), wbxml_buffer_search(), wbxml_buffer_search_char(), wbxml_buffer_search_cstr(), wbxml_conv_wbxml2xml(), wbxml_encoder_create_real(), wbxml_encoder_encode_to_wbxml(), wbxml_list_append(), wbxml_list_insert(), wbxml_parser_set_language(), wbxml_tables_contains_attr_value_from_xml(), wbxml_tables_get_attr_from_xml(), wbxml_tree_destroy(), and wbxml_tree_get_element_node_from_name().

#define NULL   0
 

Definition at line 61 of file wbxml.h.

Referenced by getopt(), main(), wbxml_attribute_create(), wbxml_attribute_destroy(), wbxml_attribute_duplicate(), wbxml_attribute_get_xml_name(), wbxml_attribute_get_xml_value(), wbxml_attribute_name_create(), wbxml_attribute_name_create_literal(), wbxml_attribute_name_create_token(), wbxml_attribute_name_destroy(), wbxml_attribute_name_duplicate(), wbxml_attribute_name_get_xml_name(), wbxml_base64_decode(), wbxml_base64_encode(), wbxml_buffer_append(), wbxml_buffer_append_char(), wbxml_buffer_append_cstr_real(), wbxml_buffer_append_data_real(), wbxml_buffer_binary_to_hex(), wbxml_buffer_compare(), wbxml_buffer_compare_cstr(), wbxml_buffer_contains_only_whitespaces(), wbxml_buffer_create_real(), wbxml_buffer_destroy(), wbxml_buffer_duplicate(), wbxml_buffer_get_char(), wbxml_buffer_get_cstr(), wbxml_buffer_hex_to_binary(), wbxml_buffer_insert(), wbxml_buffer_insert_cstr(), wbxml_buffer_len(), wbxml_buffer_remove_trailing_zeros(), wbxml_buffer_search(), wbxml_buffer_search_char(), wbxml_buffer_search_cstr(), wbxml_buffer_shrink_blanks(), wbxml_buffer_split_words_real(), wbxml_conv_wbxml2xml(), wbxml_conv_xml2wbxml(), wbxml_encoder_create_real(), wbxml_encoder_destroy(), wbxml_encoder_encode_to_wbxml(), wbxml_encoder_encode_to_xml(), wbxml_encoder_set_ignore_empty_text(), wbxml_encoder_set_indent(), wbxml_encoder_set_remove_text_blanks(), wbxml_encoder_set_tree(), wbxml_encoder_set_use_strtbl(), wbxml_encoder_set_wbxml_version(), wbxml_encoder_set_xml_gen_type(), wbxml_list_append(), wbxml_list_create_real(), wbxml_list_destroy(), wbxml_list_extract_first(), wbxml_list_get(), wbxml_list_insert(), wbxml_list_len(), wbxml_parser_create(), wbxml_parser_destroy(), wbxml_parser_get_current_byte_index(), wbxml_parser_get_wbxml_public_id(), wbxml_parser_get_wbxml_version(), wbxml_parser_get_xml_public_id(), wbxml_parser_parse(), wbxml_parser_set_content_handler(), wbxml_parser_set_language(), wbxml_parser_set_main_table(), wbxml_parser_set_user_data(), wbxml_tables_contains_attr_value_from_xml(), wbxml_tables_get_attr_from_xml(), wbxml_tables_get_ext_from_xml(), wbxml_tables_get_tag_from_xml(), wbxml_tables_get_wbxml_publicid(), wbxml_tables_get_xmlns(), wbxml_tables_search_table(), wbxml_tag_create(), wbxml_tag_create_literal(), wbxml_tag_create_token(), wbxml_tag_destroy(), wbxml_tag_duplicate(), wbxml_tag_get_xml_name(), wbxml_tree_attribute_create(), wbxml_tree_attribute_destroy(), wbxml_tree_clb_wbxml_characters(), wbxml_tree_clb_wbxml_end_element(), wbxml_tree_clb_wbxml_start_element(), wbxml_tree_clb_xml_characters(), wbxml_tree_clb_xml_doctype_decl(), wbxml_tree_clb_xml_end_element(), wbxml_tree_clb_xml_start_element(), wbxml_tree_create(), wbxml_tree_destroy(), wbxml_tree_from_wbxml(), wbxml_tree_from_xml(), wbxml_tree_get_element_node_from_name(), wbxml_tree_node_create(), and wbxml_tree_node_destroy().

#define TRUE   1
 

Definition at line 53 of file wbxml.h.

Referenced by main(), wbxml_buffer_append(), wbxml_buffer_append_cstr_real(), wbxml_buffer_append_data_real(), wbxml_buffer_binary_to_hex(), wbxml_buffer_contains_only_whitespaces(), wbxml_buffer_get_char(), wbxml_buffer_search(), wbxml_buffer_search_char(), wbxml_buffer_search_cstr(), wbxml_conv_wbxml2xml(), wbxml_conv_xml2wbxml(), wbxml_encoder_create_real(), wbxml_list_append(), wbxml_list_insert(), wbxml_parser_set_language(), wbxml_tables_contains_attr_value_from_xml(), wbxml_tables_get_attr_from_xml(), wbxml_tree_destroy(), wbxml_tree_from_xml(), and wbxml_tree_get_element_node_from_name().

#define WB_BOOL   unsigned char
 

Definition at line 46 of file wbxml.h.

Referenced by wbxml_buffer_append(), wbxml_buffer_append_char(), wbxml_buffer_append_cstr_real(), wbxml_buffer_append_data_real(), wbxml_buffer_append_mb_uint_32(), wbxml_buffer_binary_to_hex(), wbxml_buffer_contains_only_whitespaces(), wbxml_buffer_get_char(), wbxml_buffer_insert(), wbxml_buffer_insert_cstr(), wbxml_buffer_search(), wbxml_buffer_search_char(), wbxml_buffer_search_cstr(), wbxml_encoder_set_ignore_empty_text(), wbxml_encoder_set_remove_text_blanks(), wbxml_encoder_set_use_strtbl(), wbxml_list_append(), wbxml_list_insert(), wbxml_parser_set_language(), wbxml_tables_contains_attr_value_from_xml(), wbxml_tables_get_attr_from_xml(), wbxml_tree_clb_wbxml_end_element(), wbxml_tree_clb_wbxml_start_element(), wbxml_tree_destroy(), and wbxml_tree_get_element_node_from_name().

#define WB_LONG   int
 

Definition at line 50 of file wbxml.h.

Referenced by main(), wbxml_base64_decode(), wbxml_base64_encode(), wbxml_buffer_append_mb_uint_32(), wbxml_buffer_binary_to_hex(), wbxml_buffer_compare(), wbxml_buffer_compare_cstr(), wbxml_parser_get_current_byte_index(), wbxml_tree_clb_wbxml_start_document(), and wbxml_tree_from_wbxml().

#define WB_TINY   char
 

Definition at line 48 of file wbxml.h.

Referenced by get_lang(), get_version(), main(), wbxml_buffer_compare_cstr(), wbxml_tables_get_xmlns(), and wbxml_tree_from_xml().

#define WB_ULONG   unsigned int
 

Definition at line 49 of file wbxml.h.

Referenced by main(), wbxml_buffer_append_data_real(), wbxml_buffer_append_mb_uint_32(), wbxml_buffer_contains_only_whitespaces(), wbxml_buffer_create_real(), wbxml_buffer_delete(), wbxml_buffer_get_char(), wbxml_buffer_hex_to_binary(), wbxml_buffer_insert(), wbxml_buffer_insert_cstr(), wbxml_buffer_len(), wbxml_buffer_search(), wbxml_buffer_search_char(), wbxml_buffer_search_cstr(), wbxml_buffer_set_char(), wbxml_buffer_shrink_blanks(), wbxml_buffer_split_words_real(), wbxml_buffer_strip_blanks(), wbxml_conv_wbxml2xml(), wbxml_conv_xml2wbxml(), wbxml_encoder_encode_to_wbxml(), wbxml_errors_string(), wbxml_list_get(), wbxml_list_insert(), wbxml_list_len(), wbxml_parser_get_wbxml_public_id(), wbxml_parser_parse(), wbxml_tables_contains_attr_value_from_xml(), wbxml_tables_get_attr_from_xml(), wbxml_tables_get_ext_from_xml(), wbxml_tables_get_tag_from_xml(), wbxml_tables_get_wbxml_publicid(), wbxml_tables_get_xmlns(), wbxml_tables_search_table(), wbxml_tree_clb_wbxml_characters(), and wbxml_tree_from_wbxml().

#define WB_UTINY   unsigned char
 

Definition at line 47 of file wbxml.h.

Referenced by main(), wbxml_attribute_get_xml_name(), wbxml_attribute_get_xml_value(), wbxml_attribute_name_create_literal(), wbxml_attribute_name_get_xml_name(), wbxml_base64_decode(), wbxml_base64_encode(), wbxml_buffer_append_char(), wbxml_buffer_append_cstr_real(), wbxml_buffer_append_data_real(), wbxml_buffer_append_mb_uint_32(), wbxml_buffer_binary_to_hex(), wbxml_buffer_create_real(), wbxml_buffer_get_char(), wbxml_buffer_get_cstr(), wbxml_buffer_hex_to_binary(), wbxml_buffer_insert_cstr(), wbxml_buffer_remove_trailing_zeros(), wbxml_buffer_search(), wbxml_buffer_search_char(), wbxml_buffer_search_cstr(), wbxml_buffer_set_char(), wbxml_buffer_shrink_blanks(), wbxml_buffer_split_words_real(), wbxml_buffer_strip_blanks(), wbxml_conv_wbxml2xml(), wbxml_conv_xml2wbxml(), wbxml_encoder_encode_to_wbxml(), wbxml_encoder_encode_to_xml(), wbxml_encoder_set_indent(), wbxml_errors_string(), wbxml_parser_get_xml_public_id(), wbxml_parser_parse(), wbxml_tables_contains_attr_value_from_xml(), wbxml_tables_get_attr_from_xml(), wbxml_tables_get_ext_from_xml(), wbxml_tables_get_tag_from_xml(), wbxml_tables_get_xmlns(), wbxml_tables_search_table(), wbxml_tag_create_literal(), wbxml_tag_get_xml_name(), wbxml_tree_clb_wbxml_characters(), wbxml_tree_clb_wbxml_pi(), wbxml_tree_clb_xml_doctype_decl(), wbxml_tree_clb_xml_start_element(), wbxml_tree_from_wbxml(), and wbxml_tree_from_xml().

#define WBXML_DECLARE type       type
 

Definition at line 85 of file wbxml.h.

#define WBXML_DECLARE_NONSTD type       type
 

Definition at line 86 of file wbxml.h.

#define WBXML_END   0x01
 

Definition at line 92 of file wbxml.h.

#define WBXML_ENTITY   0x02
 

Definition at line 93 of file wbxml.h.

#define WBXML_EXT_0   0xC0
 

Definition at line 106 of file wbxml.h.

#define WBXML_EXT_1   0xC1
 

Definition at line 107 of file wbxml.h.

#define WBXML_EXT_2   0xC2
 

Definition at line 108 of file wbxml.h.

#define WBXML_EXT_I_0   0x40
 

Definition at line 96 of file wbxml.h.

#define WBXML_EXT_I_1   0x41
 

Definition at line 97 of file wbxml.h.

#define WBXML_EXT_I_2   0x42
 

Definition at line 98 of file wbxml.h.

#define WBXML_EXT_T_0   0x80
 

Definition at line 101 of file wbxml.h.

#define WBXML_EXT_T_1   0x81
 

Definition at line 102 of file wbxml.h.

#define WBXML_EXT_T_2   0x82
 

Definition at line 103 of file wbxml.h.

#define WBXML_ISDIGIT      isdigit(a)
 

Definition at line 78 of file wbxml.h.

#define WBXML_LIB_VERSION   "0.8.2"
 

WBXML Parser Lib Version

Definition at line 43 of file wbxml.h.

Referenced by help().

#define WBXML_LITERAL   0x04
 

Definition at line 95 of file wbxml.h.

#define WBXML_LITERAL_A   0x84
 

Definition at line 105 of file wbxml.h.

#define WBXML_LITERAL_AC   0xC4
 

Definition at line 110 of file wbxml.h.

#define WBXML_LITERAL_C   0x44
 

Definition at line 100 of file wbxml.h.

#define WBXML_OPAQUE   0xC3
 

Definition at line 109 of file wbxml.h.

#define WBXML_PI   0x43
 

Definition at line 99 of file wbxml.h.

#define WBXML_STR_I   0x03
 

Definition at line 94 of file wbxml.h.

#define WBXML_STR_T   0x83
 

Definition at line 104 of file wbxml.h.

#define WBXML_STRCASECMP a,
     strcasecmp((const WB_TINY*)a,(const WB_TINY*)b)
 

Definition at line 75 of file wbxml.h.

Referenced by wbxml_tables_search_table().

#define WBXML_STRCMP a,
     strcmp((const WB_TINY*)a,(const WB_TINY*)b)
 

Definition at line 69 of file wbxml.h.

Referenced by get_lang(), get_version(), main(), wbxml_tables_get_attr_from_xml(), wbxml_tables_get_ext_from_xml(), wbxml_tables_get_tag_from_xml(), wbxml_tables_search_table(), wbxml_tree_clb_xml_end_element(), wbxml_tree_clb_xml_start_element(), and wbxml_tree_get_element_node_from_name().

#define WBXML_STRLEN      strlen((const WB_TINY*)a)
 

Definition at line 68 of file wbxml.h.

Referenced by wbxml_attribute_name_create_literal(), wbxml_buffer_append_cstr_real(), wbxml_buffer_compare_cstr(), wbxml_buffer_insert_cstr(), wbxml_buffer_search_cstr(), wbxml_tables_get_attr_from_xml(), wbxml_tag_create_literal(), and wbxml_tree_from_xml().

#define WBXML_STRNCMP a,
b,
     strncmp((const WB_TINY*)a,(const WB_TINY*)b,c)
 

Definition at line 70 of file wbxml.h.

Referenced by wbxml_tables_get_attr_from_xml().

#define WBXML_STRSTR a,
     strstr((const WB_TINY*)a,(const WB_TINY*)b)
 

Definition at line 71 of file wbxml.h.

Referenced by wbxml_tables_contains_attr_value_from_xml().

#define WBXML_SWITCH_PAGE   0x00
 

Definition at line 91 of file wbxml.h.

#define WBXML_TOKEN_MASK   0x3F
 

Definition at line 113 of file wbxml.h.

#define WBXML_TOKEN_WITH_ATTRS   0x80
 

Definition at line 114 of file wbxml.h.

#define WBXML_TOKEN_WITH_CONTENT   0x40
 

Definition at line 115 of file wbxml.h.

#define WBXML_UTINY_NULL_STRING   ((WB_UTINY *)"")
 

Definition at line 65 of file wbxml.h.

Referenced by wbxml_attribute_get_xml_value(), and wbxml_buffer_get_cstr().

#define WBXML_VERSION_TEXT_10   "1.0"
 

WBXML 1.0

Definition at line 118 of file wbxml.h.

#define WBXML_VERSION_TEXT_11   "1.1"
 

WBXML 1.1

Definition at line 119 of file wbxml.h.

#define WBXML_VERSION_TEXT_12   "1.2"
 

WBXML 1.2

Definition at line 120 of file wbxml.h.

#define WBXML_VERSION_TEXT_13   "1.3"
 

WBXML 1.3

Definition at line 121 of file wbxml.h.

Referenced by wbxml_parser_parse().


Typedef Documentation

typedef enum WBXMLLanguage_e WBXMLLanguage
 

Supported WBXML Languages

Referenced by get_lang(), wbxml_parser_set_language(), wbxml_tables_get_wbxml_publicid(), and wbxml_tree_from_wbxml().

typedef enum WBXMLVersion_e WBXMLVersion
 

WBXML Versions (WBXML tokens)

Referenced by get_version(), wbxml_encoder_set_wbxml_version(), and wbxml_parser_get_wbxml_version().


Enumeration Type Documentation

enum WBXMLLanguage_e
 

Supported WBXML Languages

Enumeration values:
WBXML_LANG_UNKNOWN  Unknown / Not Specified

Definition at line 152 of file wbxml.h.

enum WBXMLVersion_e
 

WBXML Versions (WBXML tokens)

Enumeration values:
WBXML_VERSION_UNKNOWN  Unknown WBXML Version
WBXML_VERSION_10  WBXML 1.0 Token
WBXML_VERSION_11  WBXML 1.1 Token
WBXML_VERSION_12  WBXML 1.2 Token
WBXML_VERSION_13  WBXML 1.3 Token

Definition at line 124 of file wbxml.h.


Generated on Mon Nov 24 20:09:48 2003 for WBXML Library by doxygen1.3-rc1