ReactOS 0.4.16-dev-1044-ga6558c0
|
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include "windef.h"
#include "winbase.h"
#include "initguid.h"
#include "objbase.h"
#include "xmllite.h"
#include "xmllite_private.h"
#include "wine/debug.h"
#include "wine/list.h"
Go to the source code of this file.
Classes | |
struct | xml_encoding_data |
struct | encoded_buffer |
struct | xmlreaderinput |
struct | strval |
struct | reader_position |
struct | attribute |
struct | element |
struct | ns |
struct | xmlreader |
struct | input_buffer |
Macros | |
#define | COBJMACROS |
Typedefs | |
typedef struct input_buffer | input_buffer |
Variables | |
static const WCHAR | usasciiW [] = {'U','S','-','A','S','C','I','I',0} |
static const WCHAR | utf16W [] = {'U','T','F','-','1','6',0} |
static const WCHAR | utf8W [] = {'U','T','F','-','8',0} |
static const WCHAR | dblquoteW [] = {'\"',0} |
static const WCHAR | quoteW [] = {'\'',0} |
static const WCHAR | ltW [] = {'<',0} |
static const WCHAR | gtW [] = {'>',0} |
static const WCHAR | commentW [] = {'<','!','-','-',0} |
static const WCHAR | piW [] = {'<','?',0} |
static const struct xml_encoding_data | xml_encoding_map [] |
static const struct IUnknownVtbl | xmlreaderinputvtbl |
static WCHAR | emptyW [] = {0} |
static WCHAR | xmlW [] = {'x','m','l',0} |
static WCHAR | xmlnsW [] = {'x','m','l','n','s',0} |
static const strval | strval_empty = { emptyW } |
static const strval | strval_xml = { xmlW, 3 } |
static const strval | strval_xmlns = { xmlnsW, 5 } |
static const struct IXmlReaderVtbl | xmlreader_vtbl |
typedef struct input_buffer input_buffer |
Enumerator | |
---|---|
ATTRIBUTE_NS_DEFINITION | |
ATTRIBUTE_DEFAULT_NS_DEFINITION |
Enumerator | |
---|---|
XmlReadResume_Name | |
XmlReadResume_Local | |
XmlReadResume_Body | |
XmlReadResume_Last |
Definition at line 72 of file reader.c.
Definition at line 59 of file reader.c.
Enumerator | |
---|---|
StringValue_LocalName | |
StringValue_Prefix | |
StringValue_QualifiedName | |
StringValue_Value | |
StringValue_Last |
Definition at line 80 of file reader.c.
|
static |
Definition at line 776 of file reader.c.
Referenced by CreateXmlReaderInputWithEncodingName().
Definition at line 3653 of file reader.c.
Referenced by test_attribute_by_name(), test_encoding_detection(), test_endoffile(), test_isemptyelement(), test_max_element_depth(), test_namespaceuri(), test_prefix(), test_read_attribute(), test_read_cdata(), test_read_charref(), test_read_comment(), test_read_element(), test_read_full(), test_read_pending(), test_read_pi(), test_read_public_dtd(), test_read_system_dtd(), test_read_text(), test_read_xmldeclaration(), test_reader_create(), test_reader_position(), test_reader_properties(), test_reader_state(), test_readerinput(), test_readvaluechunk(), and test_string_pointers().
HRESULT WINAPI CreateXmlReaderInputWithEncodingName | ( | IUnknown * | stream, |
IMalloc * | imalloc, | ||
LPCWSTR | encoding, | ||
BOOL | hint, | ||
LPCWSTR | base_uri, | ||
IXmlReaderInput ** | ppInput | ||
) |
Definition at line 3696 of file reader.c.
Referenced by test_readerinput(), and xmlreader_SetInput().
Definition at line 477 of file reader.c.
Referenced by reader_parse_attribute(), reader_parse_cdata(), reader_parse_comment(), reader_parse_name(), reader_parse_pi(), reader_parse_pitarget(), reader_parse_pub_literal(), reader_parse_qname(), reader_parse_reference(), reader_parse_sddecl(), reader_parse_sys_literal(), reader_parse_versionnum(), and reader_parse_whitespace().
|
static |
Definition at line 102 of file reader.c.
Referenced by xmlreader_Read().
|
static |
Definition at line 132 of file reader.c.
Referenced by xmlreader_GetProperty(), and xmlreader_SetProperty().
DEFINE_GUID | ( | IID_IXmlReaderInput | , |
0x0b3ccc9b | , | ||
0x9214 | , | ||
0x428b | , | ||
0xa2 | , | ||
0xae | , | ||
0xef | , | ||
0x3a | , | ||
0xa8 | , | ||
0x71 | , | ||
0xaf | , | ||
0xda | |||
) |
|
static |
Definition at line 990 of file reader.c.
Referenced by reader_more(), and readerinput_switchencoding().
|
static |
Definition at line 729 of file reader.c.
Referenced by alloc_input_buffer(), and free_input_buffer().
|
static |
HRESULT get_code_page | ( | xml_encoding | encoding, |
UINT * | cp | ||
) |
Definition at line 734 of file reader.c.
Referenced by readerinput_switchencoding().
xml_encoding get_encoding_from_codepage | ( | UINT | codepage | ) |
Definition at line 170 of file reader.c.
Referenced by CreateXmlWriterOutputWithEncodingCodePage().
const WCHAR * get_encoding_name | ( | xml_encoding | encoding | ) |
Definition at line 165 of file reader.c.
Referenced by get_output_encoding_name().
Definition at line 2046 of file reader.c.
Referenced by reader_parse_reference().
|
inlinestatic |
Definition at line 312 of file reader.c.
Referenced by xmlreader_AddRef(), xmlreader_GetAttributeCount(), xmlreader_GetDepth(), xmlreader_GetLineNumber(), xmlreader_GetLinePosition(), xmlreader_GetLocalName(), xmlreader_GetNamespaceUri(), xmlreader_GetNodeType(), xmlreader_GetPrefix(), xmlreader_GetProperty(), xmlreader_GetQualifiedName(), xmlreader_GetValue(), xmlreader_IsEmptyElement(), xmlreader_IsEOF(), xmlreader_MoveToAttributeByName(), xmlreader_MoveToElement(), xmlreader_MoveToFirstAttribute(), xmlreader_MoveToNextAttribute(), xmlreader_QueryInterface(), xmlreader_Read(), xmlreader_ReadValueChunk(), xmlreader_Release(), xmlreader_SetInput(), and xmlreader_SetProperty().
|
inlinestatic |
Definition at line 317 of file reader.c.
Referenced by xmlreader_SetInput(), xmlreaderinput_AddRef(), xmlreaderinput_QueryInterface(), and xmlreaderinput_Release().
|
static |
Definition at line 1486 of file reader.c.
Referenced by reader_parse_reference(), and reader_parse_sys_literal().
Definition at line 1553 of file reader.c.
Referenced by is_valid_name(), and reader_parse_name().
Definition at line 1509 of file reader.c.
Referenced by is_valid_name(), reader_parse_name(), and readerinput_detectencoding().
Definition at line 1529 of file reader.c.
Referenced by is_namechar(), is_valid_ncname(), reader_parse_local(), and reader_parse_qname().
Definition at line 1496 of file reader.c.
Referenced by is_valid_pubid(), and reader_parse_pub_literal().
Definition at line 709 of file reader.c.
Referenced by reader_parse_local(), reader_parse_name(), reader_parse_nextnode(), reader_parse_pitarget(), reader_parse_qname(), reader_parse_whitespace(), and xmlreader_GetValue().
Definition at line 1263 of file reader.c.
Referenced by reader_parse_encname().
Definition at line 1168 of file reader.c.
Referenced by reader_parse_attvalue(), reader_parse_chardata(), reader_parse_misc(), reader_parse_pi(), reader_parse_reference(), and reader_skipspaces().
xml_encoding parse_encoding_name | ( | const WCHAR * | name, |
int | len | ||
) |
Definition at line 747 of file reader.c.
Referenced by CreateXmlReaderInputWithEncodingName(), and reader_parse_encname().
|
static |
Definition at line 426 of file reader.c.
Referenced by reader_parse_attribute(), reader_parse_encdecl(), reader_parse_externalid(), reader_parse_sddecl(), and reader_parse_versioninfo().
Definition at line 323 of file reader.c.
Referenced by reader_add_attr(), reader_alloc_zero(), reader_get_value(), reader_push_ns(), reader_set_strvalue(), and reader_strvaldup().
Definition at line 410 of file reader.c.
Referenced by reader_parse_nextnode(), and reader_reset_parser().
Definition at line 510 of file reader.c.
Referenced by reader_reset_parser().
Definition at line 2712 of file reader.c.
Referenced by reader_reset_parser().
Definition at line 1124 of file reader.c.
Referenced by reader_parse_chardata(), reader_parse_content(), reader_parse_dtd(), reader_parse_element(), reader_parse_encdecl(), reader_parse_endtag(), reader_parse_eq(), reader_parse_externalid(), reader_parse_misc(), reader_parse_sddecl(), reader_parse_stag(), reader_parse_versioninfo(), reader_parse_versionnum(), and reader_parse_xmldecl().
Definition at line 544 of file reader.c.
Referenced by reader_parse_nextnode(), and xmlreader_MoveToElement().
Definition at line 336 of file reader.c.
Referenced by reader_add_attr(), reader_clear_attrs(), reader_clear_elements(), reader_clear_ns(), reader_free_element(), reader_free_strvalued(), reader_pop_ns_nodes(), reader_push_ns(), and xmlreader_Release().
Definition at line 580 of file reader.c.
Referenced by reader_pop_element(), and reader_push_element().
|
static |
Definition at line 490 of file reader.c.
Referenced by reader_free_strvalues(), and reader_set_strvalue().
Definition at line 401 of file reader.c.
Referenced by reader_add_attr(), reader_clear_attrs(), reader_clear_elements(), reader_clear_ns(), reader_free_element(), reader_free_strvalue(), reader_parse_stag(), reader_pop_ns_nodes(), and reader_push_ns().
Definition at line 495 of file reader.c.
Referenced by reader_reset_parser().
|
static |
Definition at line 3048 of file reader.c.
Referenced by xmlreader_GetLocalName(), and xmlreader_MoveToAttributeByName().
|
static |
Definition at line 3006 of file reader.c.
Referenced by xmlreader_GetNamespaceUri(), and xmlreader_MoveToAttributeByName().
Definition at line 1111 of file reader.c.
Referenced by reader_parse_attvalue(), reader_parse_cdata(), reader_parse_chardata(), reader_parse_comment(), reader_parse_encdecl(), reader_parse_encname(), reader_parse_local(), reader_parse_name(), reader_parse_pi(), reader_parse_pub_literal(), reader_parse_qname(), reader_parse_reference(), reader_parse_sddecl(), reader_parse_sys_literal(), reader_parse_versioninfo(), reader_parse_versionnum(), reader_parse_whitespace(), and reader_skipspaces().
Definition at line 462 of file reader.c.
Referenced by xmlreader_GetLineNumber(), xmlreader_GetLinePosition(), xmlreader_GetLocalName(), and xmlreader_GetQualifiedName().
|
static |
Definition at line 1558 of file reader.c.
Referenced by reader_get_value(), reader_parse_nextnode(), xmlreader_GetLineNumber(), xmlreader_GetLinePosition(), xmlreader_GetLocalName(), xmlreader_GetNamespaceUri(), xmlreader_GetNodeType(), xmlreader_GetPrefix(), xmlreader_GetQualifiedName(), and xmlreader_IsEmptyElement().
Definition at line 1116 of file reader.c.
Referenced by reader_cmp(), reader_parse_attvalue(), reader_parse_cdata(), reader_parse_chardata(), reader_parse_comment(), reader_parse_dtd(), reader_parse_encdecl(), reader_parse_encname(), reader_parse_local(), reader_parse_misc(), reader_parse_name(), reader_parse_nextnode(), reader_parse_pi(), reader_parse_pub_literal(), reader_parse_qname(), reader_parse_reference(), reader_parse_sys_literal(), reader_parse_versionnum(), reader_skipn(), and reader_skipspaces().
Definition at line 342 of file reader.c.
Referenced by reader_get_strptr(), reader_parse_pi(), and reader_parse_reference().
Definition at line 348 of file reader.c.
Referenced by debug_strval(), get_predefined_entity(), reader_get_value(), reader_parse_pitarget(), reader_set_strvalue(), reader_strvaldup(), strval_eq(), and xmlreader_ReadValueChunk().
Definition at line 3349 of file reader.c.
Referenced by xmlreader_GetValue(), and xmlreader_ReadValueChunk().
Definition at line 539 of file reader.c.
Referenced by reader_move_to_first_attribute(), and reader_parse_nextnode().
Definition at line 470 of file reader.c.
Referenced by reader_parse_attvalue(), reader_parse_cdata(), reader_parse_chardata(), reader_parse_comment(), reader_parse_local(), reader_parse_name(), reader_parse_pi(), reader_parse_pub_literal(), reader_parse_qname(), reader_parse_sddecl(), reader_parse_sys_literal(), reader_parse_versioninfo(), reader_parse_versionnum(), and reader_parse_whitespace().
Definition at line 526 of file reader.c.
Referenced by reader_get_attribute_local_name(), reader_get_attribute_ns_uri(), reader_get_value(), xmlreader_GetNamespaceUri(), and xmlreader_GetPrefix().
Definition at line 3199 of file reader.c.
Referenced by reader_get_value(), and xmlreader_GetNamespaceUri().
Definition at line 588 of file reader.c.
Referenced by reader_parse_stag(), and reader_push_element().
Definition at line 1073 of file reader.c.
Referenced by reader_cmp(), reader_get_ptr(), and reader_parse_misc().
Definition at line 2965 of file reader.c.
Referenced by xmlreader_MoveToFirstAttribute(), and xmlreader_MoveToNextAttribute().
Definition at line 2235 of file reader.c.
Referenced by reader_parse_stag().
Definition at line 2188 of file reader.c.
Referenced by reader_parse_attribute().
Definition at line 2401 of file reader.c.
Referenced by reader_parse_content().
Definition at line 2452 of file reader.c.
Referenced by reader_parse_content().
Definition at line 1427 of file reader.c.
Referenced by reader_parse_content(), and reader_parse_misc().
Definition at line 2513 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 1886 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 2315 of file reader.c.
Referenced by reader_parse_content(), and reader_parse_nextnode().
Definition at line 1303 of file reader.c.
Referenced by reader_parse_xmldecl().
Definition at line 1273 of file reader.c.
Referenced by reader_parse_encdecl().
Definition at line 2361 of file reader.c.
Referenced by reader_parse_content().
Definition at line 1215 of file reader.c.
Referenced by reader_parse_attribute(), reader_parse_encdecl(), reader_parse_sddecl(), and reader_parse_versioninfo().
Definition at line 1833 of file reader.c.
Referenced by reader_parse_dtd().
|
static |
Definition at line 1932 of file reader.c.
Referenced by reader_parse_qname().
Definition at line 1738 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 1571 of file reader.c.
Referenced by reader_parse_dtd(), reader_parse_pitarget(), and reader_parse_reference().
Definition at line 2558 of file reader.c.
Referenced by xmlreader_Read().
Definition at line 1637 of file reader.c.
Referenced by reader_parse_content(), and reader_parse_misc().
Definition at line 1609 of file reader.c.
Referenced by reader_parse_pi().
Definition at line 1808 of file reader.c.
Referenced by reader_parse_externalid().
|
static |
Definition at line 1974 of file reader.c.
Referenced by reader_parse_attribute(), reader_parse_endtag(), and reader_parse_stag().
Definition at line 2087 of file reader.c.
Referenced by reader_parse_attvalue(), and reader_parse_chardata().
Definition at line 1341 of file reader.c.
Referenced by reader_parse_xmldecl().
|
static |
Definition at line 2266 of file reader.c.
Referenced by reader_parse_element().
Definition at line 1782 of file reader.c.
Referenced by reader_parse_externalid().
Definition at line 1227 of file reader.c.
Referenced by reader_parse_xmldecl().
Definition at line 1189 of file reader.c.
Referenced by reader_parse_versioninfo().
Definition at line 1703 of file reader.c.
Referenced by reader_parse_misc().
Definition at line 1385 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 655 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 630 of file reader.c.
Referenced by reader_parse_nextnode(), and reader_pop_element().
|
static |
Definition at line 605 of file reader.c.
Referenced by reader_parse_stag().
|
static |
Definition at line 550 of file reader.c.
Referenced by reader_parse_attribute().
Definition at line 2730 of file reader.c.
Referenced by xmlreader_Release(), and xmlreader_SetInput().
Definition at line 2956 of file reader.c.
Referenced by reader_move_to_first_attribute(), xmlreader_MoveToAttributeByName(), and xmlreader_MoveToNextAttribute().
|
static |
Definition at line 675 of file reader.c.
Referenced by reader_parse_cdata(), reader_parse_chardata(), reader_parse_comment(), reader_parse_dtd(), reader_parse_element(), reader_parse_endtag(), reader_parse_pi(), reader_parse_whitespace(), reader_parse_xmldecl(), reader_set_current_attribute(), and xmlreader_MoveToElement().
Definition at line 1057 of file reader.c.
Referenced by reader_parse_cdata(), reader_parse_chardata(), reader_parse_comment(), reader_parse_content(), reader_parse_dtd(), reader_parse_element(), reader_parse_pi(), and reader_parse_whitespace().
Definition at line 1156 of file reader.c.
Referenced by reader_parse_attvalue(), reader_parse_cdata(), reader_parse_chardata(), reader_parse_comment(), reader_parse_dtd(), reader_parse_element(), reader_parse_encdecl(), reader_parse_encname(), reader_parse_endtag(), reader_parse_eq(), reader_parse_externalid(), reader_parse_local(), reader_parse_name(), reader_parse_pi(), reader_parse_pub_literal(), reader_parse_qname(), reader_parse_reference(), reader_parse_sddecl(), reader_parse_stag(), reader_parse_sys_literal(), reader_parse_versioninfo(), reader_parse_versionnum(), reader_parse_xmldecl(), and reader_skipspaces().
Definition at line 1174 of file reader.c.
Referenced by reader_parse_dtd(), reader_parse_encdecl(), reader_parse_endtag(), reader_parse_eq(), reader_parse_externalid(), reader_parse_sddecl(), reader_parse_stag(), reader_parse_versioninfo(), reader_parse_whitespace(), and reader_parse_xmldecl().
Definition at line 353 of file reader.c.
Referenced by reader_add_attr(), reader_parse_stag(), reader_push_element(), and reader_push_ns().
Definition at line 1142 of file reader.c.
Referenced by reader_skipn().
|
inlinestatic |
Definition at line 370 of file reader.c.
Referenced by alloc_input_buffer(), init_encoded_buffer(), and readerinput_strdupW().
|
static |
Definition at line 898 of file reader.c.
Referenced by reader_parse_nextnode().
|
inlinestatic |
Definition at line 380 of file reader.c.
Referenced by alloc_input_buffer(), CreateXmlReaderInputWithEncodingName(), free_encoded_buffer(), free_input_buffer(), and xmlreaderinput_Release().
|
static |
Definition at line 958 of file reader.c.
Referenced by reader_more(), readerinput_shrinkraw(), and readerinput_switchencoding().
|
static |
Definition at line 940 of file reader.c.
Referenced by readerinput_get_convlen().
|
static |
Definition at line 865 of file reader.c.
Referenced by reader_more(), and readerinput_switchencoding().
|
static |
Definition at line 835 of file reader.c.
Referenced by reader_more(), reader_parse_nextnode(), and readerinput_detectencoding().
|
inlinestatic |
Definition at line 879 of file reader.c.
Referenced by readerinput_detectencoding().
|
inlinestatic |
Definition at line 822 of file reader.c.
Referenced by xmlreader_SetInput().
|
inlinestatic |
Definition at line 375 of file reader.c.
Referenced by readerinput_grow(), and readerinput_growraw().
|
static |
Definition at line 812 of file reader.c.
Referenced by readerinput_query_for_stream(), and xmlreader_SetInput().
|
static |
Definition at line 975 of file reader.c.
Referenced by reader_more(), and reader_parse_nextnode().
|
inlinestatic |
Definition at line 385 of file reader.c.
Referenced by CreateXmlReaderInputWithEncodingName().
|
static |
Definition at line 1019 of file reader.c.
Referenced by reader_parse_nextnode().
|
inlinestatic |
Definition at line 504 of file reader.c.
Referenced by get_predefined_entity(), reader_get_attribute_ns_uri(), reader_lookup_ns(), reader_parse_attribute(), reader_parse_endtag(), reader_parse_pitarget(), and xmlreader_GetPrefix().
WINE_DEFAULT_DEBUG_CHANNEL | ( | xmllite | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 3472 of file reader.c.
|
static |
Definition at line 3504 of file reader.c.
|
static |
Definition at line 3263 of file reader.c.
|
static |
Definition at line 3207 of file reader.c.
|
static |
|
static |
|
static |
Definition at line 2827 of file reader.c.
|
static |
|
static |
Definition at line 3388 of file reader.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 3068 of file reader.c.
|
static |
|
static |
Definition at line 2978 of file reader.c.
|
static |
Definition at line 2987 of file reader.c.
|
static |
Definition at line 2681 of file reader.c.
|
static |
Definition at line 2903 of file reader.c.
|
static |
|
static |
Definition at line 2747 of file reader.c.
|
static |
Definition at line 2768 of file reader.c.
|
static |
Definition at line 2864 of file reader.c.
|
static |
|
static |
|
static |
Definition at line 97 of file reader.c.
Referenced by reader_parse_content(), reader_parse_misc(), test_indentation(), and test_mxwriter_comment().
Definition at line 93 of file reader.c.
Referenced by reader_parse_encdecl(), reader_parse_sddecl(), and reader_parse_versioninfo().
|
static |
Definition at line 226 of file reader.c.
Referenced by reader_get_attribute_ns_uri(), test_attribute_by_name(), xmlreader_GetLocalName(), xmlreader_GetNamespaceUri(), xmlreader_GetPrefix(), xmlreader_GetQualifiedName(), and xmlreader_MoveToAttributeByName().
Definition at line 96 of file reader.c.
Referenced by close_element_starttag(), get_escaped_string(), reader_parse_endtag(), reader_parse_stag(), SAXContentHandler_endElement(), and write_escaped_string().
Definition at line 95 of file reader.c.
Referenced by get_escaped_string(), mxwriter_write_starttag(), reader_parse_content(), reader_parse_element(), and write_escaped_string().
Definition at line 98 of file reader.c.
Referenced by reader_parse_content(), reader_parse_misc(), and test_bom().
Definition at line 94 of file reader.c.
Referenced by reader_parse_encdecl(), reader_parse_sddecl(), and reader_parse_versioninfo().
Definition at line 229 of file reader.c.
Referenced by CreateXmlReader(), reader_free_strvalued(), reader_get_attribute_ns_uri(), reader_get_value(), reader_parse_element(), reader_parse_pi(), reader_parse_whitespace(), reader_set_strvalue(), reader_strvaldup(), and xmlreader_MoveToElement().
Definition at line 230 of file reader.c.
Referenced by reader_get_attribute_ns_uri(), reader_parse_xmldecl(), and xmlreader_GetPrefix().
Definition at line 231 of file reader.c.
Referenced by reader_get_attribute_ns_uri(), reader_parse_attribute(), and xmlreader_GetPrefix().
Definition at line 89 of file reader.c.
Referenced by test_writeroutput(), and test_writestartdocument().
|
static |
Definition at line 159 of file reader.c.
Referenced by get_code_page(), get_encoding_from_codepage(), get_encoding_name(), parse_encoding_name(), and reader_parse_nextnode().
Definition at line 228 of file reader.c.
Referenced by namespacemanager_declarePrefix(), reader_get_attribute_local_name(), test_attribute_by_name(), xmlreader_GetPrefix(), and xmlreader_GetQualifiedName().
Definition at line 3563 of file reader.c.
Referenced by CreateXmlReader().
Definition at line 209 of file reader.c.
Referenced by CreateXmlReaderInputWithEncodingName(), and xmlreader_SetInput().
Definition at line 227 of file reader.c.
Referenced by reader_parse_pitarget(), and xmlreader_GetPrefix().