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

defxml.cpp File Reference

#include "xml/defxml.hpp"
#include "xml/declxml.hpp"
#include "xml/miscxml.hpp"
#include "xml/mngxml.hpp"
#include "xml/storexml.hpp"
#include "base/common.hpp"
#include "base/list.hpp"
#include "base/string.hpp"
#include "base/memory.hpp"

Go to the source code of this file.

Functions

void tokenValues (const char *x, _list< const char * > &values, byte_allocator &tmp_allocator)
 tokenizes the string into list of tokens

Variables

BEGIN_TERIMBER_NAMESPACE const
ub1_t 
s_char_map [256]
const ub2_t encoding_table_winodws_1251 [256]
 windows 1251 encoding table


Function Documentation

void tokenValues ( const char *  x,
_list< const char * > &  values,
byte_allocator tmp_allocator 
)

tokenizes the string into list of tokens

Parameters:
x  input string
values  [out] list of tokens
tmp_allocator  external allocator

Definition at line 68 of file defxml.cpp.

References copy_string(), is_white_space(), os_def_size, paged_buffer::persist(), _list< T, A >::push_back(), paged_buffer::reset(), paged_buffer::size(), and xml_exception_throw().

Referenced by xml_document::assign_attribute_value(), and dtd_processor::parseAttDef().


Variable Documentation

windows 1251 encoding table

Definition at line 99 of file defxml.cpp.

Referenced by windowsN_to_utf8().

BEGIN_TERIMBER_NAMESPACE const ub1_t s_char_map[256]

Initial value:

 
{
        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x01,0x21,0x00, 0x00,0x21,0x00,0x00,
        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
        0x21,0x20,0x00,0x20, 0x20,0x20,0x00,0x20, 0x20,0x20,0x20,0x20, 0x20,0xF0,0xF0,0x20,
        0xF2,0xF2,0xF2,0xF2, 0xF2,0xF2,0xF2,0xF2, 0xF2,0xF2,0x78,0x20, 0x00,0x20,0x00,0x20,

        0x20,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0xFC,
        0xFC,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0x00, 0x00,0x00,0x00,0xF8,
        0x00,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0xFC,
        0xFC,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0xFC, 0xFC,0xFC,0xFC,0x00, 0x00,0x00,0x00,0x00,
        
        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,

        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,
        0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00
}

Definition at line 42 of file defxml.cpp.

Referenced by is_digit(), is_encname_char(), is_letter(), is_name_char(), is_name_first_char(), is_public_char(), is_versionnum_char(), and is_white_space().



© Copyright Terimber 2003-.