|
ReactOS 0.4.17-dev-966-gf06eace
|
#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 struct xml_encoding_data | xml_encoding_map [] |
| static const struct IUnknownVtbl | xmlreaderinputvtbl |
| static WCHAR | emptyW [] = L"" |
| static WCHAR | xmlW [] = L"xml" |
| static WCHAR | xmlnsW [] = L"xmlns" |
| static const strval | strval_empty = { emptyW, 0 } |
| 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 766 of file reader.c.
Referenced by create_reader_input().
|
static |
Definition at line 3655 of file reader.c.
Referenced by CreateXmlReaderInputWithEncodingCodePage(), and CreateXmlReaderInputWithEncodingName().
Definition at line 3616 of file reader.c.
Referenced by check_writer_state(), d2d_factory_register_effect_from_stream(), get_xml_elements(), parse_desc_xml(), test_attribute_by_name(), test_encoding_detection(), test_endoffile(), test_invalid_output_encoding(), 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(), test_string_pointers(), test_WriteAttributes(), test_WriteNode(), and test_WriteNodeShallow().
| HRESULT WINAPI CreateXmlReaderInputWithEncodingCodePage | ( | IUnknown * | stream, |
| IMalloc * | imalloc, | ||
| UINT | codepage, | ||
| BOOL | hint, | ||
| const WCHAR * | base_uri, | ||
| IXmlReaderInput ** | input | ||
| ) |
Definition at line 3707 of file reader.c.
Referenced by test_readerinput().
| HRESULT WINAPI CreateXmlReaderInputWithEncodingName | ( | IUnknown * | stream, |
| IMalloc * | imalloc, | ||
| const WCHAR * | encoding, | ||
| BOOL | hint, | ||
| const WCHAR * | base_uri, | ||
| IXmlReaderInput ** | input | ||
| ) |
Definition at line 3695 of file reader.c.
Referenced by test_readerinput(), and xmlreader_SetInput().
Definition at line 467 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 91 of file reader.c.
Referenced by xmlreader_Read().
|
static |
Definition at line 121 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 985 of file reader.c.
Referenced by reader_more(), and readerinput_switchencoding().
|
static |
Definition at line 719 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 724 of file reader.c.
Referenced by readerinput_switchencoding().
| xml_encoding get_encoding_from_codepage | ( | UINT | codepage | ) |
Definition at line 160 of file reader.c.
Referenced by CreateXmlReaderInputWithEncodingCodePage(), and CreateXmlWriterOutputWithEncodingCodePage().
| const WCHAR * get_encoding_name | ( | xml_encoding | encoding | ) |
Definition at line 155 of file reader.c.
Referenced by get_output_encoding_name().
Definition at line 2020 of file reader.c.
Referenced by reader_parse_reference().
|
inlinestatic |
Definition at line 302 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_Read(), xmlreader_ReadValueChunk(), xmlreader_Release(), xmlreader_SetInput(), and xmlreader_SetProperty().
|
inlinestatic |
Definition at line 307 of file reader.c.
Referenced by xmlreader_SetInput(), xmlreaderinput_AddRef(), and xmlreaderinput_Release().
|
static |
Definition at line 1530 of file reader.c.
Referenced by is_valid_name(), and reader_parse_name().
Definition at line 1486 of file reader.c.
Referenced by is_valid_name(), reader_parse_name(), and readerinput_detectencoding().
Definition at line 1506 of file reader.c.
Referenced by is_namechar(), is_valid_ncname(), reader_parse_local(), and reader_parse_qname().
Definition at line 1473 of file reader.c.
Referenced by is_valid_pubid(), and reader_parse_pub_literal().
Definition at line 699 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().
| xml_encoding parse_encoding_name | ( | const WCHAR * | name, |
| int | len | ||
| ) |
Definition at line 737 of file reader.c.
Referenced by CreateXmlReaderInputWithEncodingName(), and reader_parse_encname().
|
static |
Definition at line 416 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 313 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 400 of file reader.c.
Referenced by reader_parse_nextnode(), and reader_reset_parser().
Definition at line 500 of file reader.c.
Referenced by reader_reset_parser().
Definition at line 2674 of file reader.c.
Referenced by reader_reset_parser().
Definition at line 1121 of file reader.c.
Referenced by reader_is_quote(), 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 534 of file reader.c.
Referenced by reader_parse_nextnode(), and xmlreader_MoveToElement().
Definition at line 326 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 570 of file reader.c.
Referenced by reader_pop_element(), and reader_push_element().
|
static |
Definition at line 480 of file reader.c.
Referenced by reader_free_strvalues(), and reader_set_strvalue().
Definition at line 391 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 485 of file reader.c.
Referenced by reader_reset_parser().
|
static |
Definition at line 3007 of file reader.c.
Referenced by xmlreader_GetLocalName(), and xmlreader_MoveToAttributeByName().
|
static |
Definition at line 2967 of file reader.c.
Referenced by xmlreader_GetNamespaceUri(), and xmlreader_MoveToAttributeByName().
Definition at line 1108 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 452 of file reader.c.
Referenced by xmlreader_GetLineNumber(), xmlreader_GetLinePosition(), xmlreader_GetLocalName(), and xmlreader_GetQualifiedName().
|
static |
Definition at line 1535 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 1113 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 332 of file reader.c.
Referenced by reader_get_strptr(), reader_parse_pi(), and reader_parse_reference().
Definition at line 338 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 3308 of file reader.c.
Referenced by xmlreader_GetValue(), and xmlreader_ReadValueChunk().
Definition at line 529 of file reader.c.
Referenced by reader_parse_nextnode(), and reader_set_current_attribute().
Definition at line 460 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 1216 of file reader.c.
Referenced by reader_parse_encdecl(), reader_parse_sddecl(), and reader_parse_versioninfo().
Definition at line 516 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 3158 of file reader.c.
Referenced by reader_get_value(), and xmlreader_GetNamespaceUri().
Definition at line 578 of file reader.c.
Referenced by reader_parse_stag(), and reader_push_element().
Definition at line 1068 of file reader.c.
Referenced by reader_cmp(), reader_get_ptr(), and reader_parse_misc().
Definition at line 2929 of file reader.c.
Referenced by xmlreader_MoveToFirstAttribute(), and xmlreader_MoveToNextAttribute().
Definition at line 2206 of file reader.c.
Referenced by reader_parse_stag().
Definition at line 2159 of file reader.c.
Referenced by reader_parse_attribute().
Definition at line 2370 of file reader.c.
Referenced by reader_parse_content().
Definition at line 2421 of file reader.c.
Referenced by reader_parse_content().
Definition at line 1414 of file reader.c.
Referenced by reader_parse_content(), and reader_parse_misc().
Definition at line 2480 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 1862 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 2284 of file reader.c.
Referenced by reader_parse_content(), and reader_parse_nextnode().
Definition at line 1297 of file reader.c.
Referenced by reader_parse_xmldecl().
Definition at line 1267 of file reader.c.
Referenced by reader_parse_encdecl().
Definition at line 2330 of file reader.c.
Referenced by reader_parse_content().
Definition at line 1206 of file reader.c.
Referenced by reader_parse_attribute(), reader_parse_encdecl(), reader_parse_sddecl(), and reader_parse_versioninfo().
Definition at line 1809 of file reader.c.
Referenced by reader_parse_dtd().
|
static |
Definition at line 1906 of file reader.c.
Referenced by reader_parse_qname().
Definition at line 1714 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 1548 of file reader.c.
Referenced by reader_parse_dtd(), reader_parse_pitarget(), and reader_parse_reference().
Definition at line 2522 of file reader.c.
Referenced by xmlreader_Read().
Definition at line 1613 of file reader.c.
Referenced by reader_parse_content(), and reader_parse_misc().
Definition at line 1586 of file reader.c.
Referenced by reader_parse_pi().
Definition at line 1784 of file reader.c.
Referenced by reader_parse_externalid().
|
static |
Definition at line 1948 of file reader.c.
Referenced by reader_parse_attribute(), reader_parse_endtag(), and reader_parse_stag().
Definition at line 2056 of file reader.c.
Referenced by reader_parse_attvalue(), and reader_parse_chardata().
Definition at line 1335 of file reader.c.
Referenced by reader_parse_xmldecl().
|
static |
Definition at line 2237 of file reader.c.
Referenced by reader_parse_element().
Definition at line 1758 of file reader.c.
Referenced by reader_parse_externalid().
Definition at line 1222 of file reader.c.
Referenced by reader_parse_xmldecl().
Definition at line 1181 of file reader.c.
Referenced by reader_parse_versioninfo().
Definition at line 1679 of file reader.c.
Referenced by reader_parse_misc().
Definition at line 1376 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 645 of file reader.c.
Referenced by reader_parse_nextnode().
Definition at line 620 of file reader.c.
Referenced by reader_parse_nextnode(), and reader_pop_element().
|
static |
Definition at line 595 of file reader.c.
Referenced by reader_parse_stag().
|
static |
Definition at line 540 of file reader.c.
Referenced by reader_parse_attribute().
Definition at line 2692 of file reader.c.
Referenced by xmlreader_Release(), and xmlreader_SetInput().
Definition at line 2918 of file reader.c.
Referenced by reader_move_to_first_attribute(), xmlreader_MoveToAttributeByName(), and xmlreader_MoveToNextAttribute().
|
static |
Definition at line 665 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 1052 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 1153 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 1166 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 343 of file reader.c.
Referenced by reader_add_attr(), reader_parse_stag(), reader_push_element(), and reader_push_ns().
|
inlinestatic |
Definition at line 360 of file reader.c.
Referenced by alloc_input_buffer(), init_encoded_buffer(), and readerinput_strdupW().
|
static |
Definition at line 890 of file reader.c.
Referenced by reader_parse_nextnode().
|
inlinestatic |
Definition at line 370 of file reader.c.
Referenced by alloc_input_buffer(), create_reader_input(), free_encoded_buffer(), free_input_buffer(), and xmlreaderinput_Release().
|
static |
Definition at line 952 of file reader.c.
Referenced by reader_more(), readerinput_shrinkraw(), and readerinput_switchencoding().
|
static |
Definition at line 932 of file reader.c.
Referenced by readerinput_get_convlen().
|
static |
Definition at line 857 of file reader.c.
Referenced by reader_more(), and readerinput_switchencoding().
|
static |
Definition at line 825 of file reader.c.
Referenced by reader_more(), reader_parse_nextnode(), and readerinput_detectencoding().
|
inlinestatic |
Definition at line 871 of file reader.c.
Referenced by readerinput_detectencoding().
|
inlinestatic |
Definition at line 812 of file reader.c.
Referenced by xmlreader_SetInput().
|
inlinestatic |
Definition at line 365 of file reader.c.
Referenced by readerinput_grow(), and readerinput_growraw().
|
static |
Definition at line 802 of file reader.c.
Referenced by readerinput_query_for_stream(), and xmlreader_SetInput().
|
static |
Definition at line 969 of file reader.c.
Referenced by reader_more(), and reader_parse_nextnode().
|
inlinestatic |
Definition at line 375 of file reader.c.
Referenced by create_reader_input().
|
static |
Definition at line 1014 of file reader.c.
Referenced by reader_parse_nextnode().
|
inlinestatic |
Definition at line 494 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 3433 of file reader.c.
|
static |
Definition at line 3465 of file reader.c.
|
static |
Definition at line 3222 of file reader.c.
|
static |
Definition at line 3166 of file reader.c.
|
static |
|
static |
|
static |
Definition at line 2789 of file reader.c.
|
static |
|
static |
Definition at line 3347 of file reader.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 3027 of file reader.c.
|
static |
|
static |
Definition at line 2939 of file reader.c.
|
static |
Definition at line 2948 of file reader.c.
|
static |
|
static |
Definition at line 2865 of file reader.c.
|
static |
|
static |
Definition at line 2709 of file reader.c.
|
static |
Definition at line 2730 of file reader.c.
|
static |
Definition at line 2826 of file reader.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 216 of file reader.c.
Referenced by reader_get_attribute_ns_uri(), xmlreader_GetLocalName(), xmlreader_GetNamespaceUri(), xmlreader_GetPrefix(), xmlreader_GetQualifiedName(), and xmlreader_MoveToAttributeByName().
Definition at line 219 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 220 of file reader.c.
Referenced by reader_get_attribute_ns_uri(), reader_parse_xmldecl(), and xmlreader_GetPrefix().
Definition at line 221 of file reader.c.
Referenced by reader_get_attribute_ns_uri(), reader_parse_attribute(), and xmlreader_GetPrefix().
|
static |
Definition at line 148 of file reader.c.
Referenced by get_code_page(), get_encoding_from_codepage(), get_encoding_name(), parse_encoding_name(), and reader_parse_nextnode().
|
static |
Definition at line 218 of file reader.c.
Referenced by domelem_setAttributeNode(), namespacemanager_declarePrefix(), reader_get_attribute_local_name(), SAXAttributes_populate(), xmlreader_GetPrefix(), and xmlreader_GetQualifiedName().
Definition at line 3528 of file reader.c.
Referenced by CreateXmlReader().
Definition at line 199 of file reader.c.
Referenced by create_reader_input(), and xmlreader_SetInput().
|
static |
Definition at line 217 of file reader.c.
Referenced by xmlreader_GetPrefix().