nokolexbor 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ext/nokolexbor/config.h +186 -0
- data/ext/nokolexbor/extconf.rb +131 -0
- data/ext/nokolexbor/libxml/HTMLparser.h +320 -0
- data/ext/nokolexbor/libxml/SAX2.h +173 -0
- data/ext/nokolexbor/libxml/chvalid.h +230 -0
- data/ext/nokolexbor/libxml/debugXML.h +217 -0
- data/ext/nokolexbor/libxml/dict.h +81 -0
- data/ext/nokolexbor/libxml/encoding.h +232 -0
- data/ext/nokolexbor/libxml/entities.h +153 -0
- data/ext/nokolexbor/libxml/globals.h +529 -0
- data/ext/nokolexbor/libxml/hash.h +236 -0
- data/ext/nokolexbor/libxml/list.h +137 -0
- data/ext/nokolexbor/libxml/parser.h +1264 -0
- data/ext/nokolexbor/libxml/parserInternals.h +641 -0
- data/ext/nokolexbor/libxml/pattern.h +100 -0
- data/ext/nokolexbor/libxml/threads.h +94 -0
- data/ext/nokolexbor/libxml/tree.h +1315 -0
- data/ext/nokolexbor/libxml/uri.h +94 -0
- data/ext/nokolexbor/libxml/valid.h +448 -0
- data/ext/nokolexbor/libxml/xmlIO.h +369 -0
- data/ext/nokolexbor/libxml/xmlautomata.h +146 -0
- data/ext/nokolexbor/libxml/xmlerror.h +919 -0
- data/ext/nokolexbor/libxml/xmlexports.h +79 -0
- data/ext/nokolexbor/libxml/xmlmemory.h +226 -0
- data/ext/nokolexbor/libxml/xmlregexp.h +222 -0
- data/ext/nokolexbor/libxml/xmlstring.h +140 -0
- data/ext/nokolexbor/libxml/xmlversion.h +526 -0
- data/ext/nokolexbor/libxml/xpath.h +575 -0
- data/ext/nokolexbor/libxml/xpathInternals.h +632 -0
- data/ext/nokolexbor/libxml/xpointer.h +137 -0
- data/ext/nokolexbor/libxml.h +76 -0
- data/ext/nokolexbor/memory.c +39 -0
- data/ext/nokolexbor/nl_document.c +51 -0
- data/ext/nokolexbor/nl_node.c +790 -0
- data/ext/nokolexbor/nl_node_set.c +368 -0
- data/ext/nokolexbor/nl_xpath_context.c +200 -0
- data/ext/nokolexbor/nokolexbor.c +63 -0
- data/ext/nokolexbor/nokolexbor.h +37 -0
- data/ext/nokolexbor/private/buf.h +70 -0
- data/ext/nokolexbor/private/dict.h +11 -0
- data/ext/nokolexbor/private/enc.h +17 -0
- data/ext/nokolexbor/private/error.h +21 -0
- data/ext/nokolexbor/private/globals.h +9 -0
- data/ext/nokolexbor/private/memory.h +9 -0
- data/ext/nokolexbor/private/parser.h +27 -0
- data/ext/nokolexbor/private/string.h +9 -0
- data/ext/nokolexbor/private/threads.h +50 -0
- data/ext/nokolexbor/private/tree.h +18 -0
- data/ext/nokolexbor/private/xpath.h +7 -0
- data/ext/nokolexbor/timsort.h +601 -0
- data/ext/nokolexbor/xml_SAX2.c +80 -0
- data/ext/nokolexbor/xml_buf.c +363 -0
- data/ext/nokolexbor/xml_chvalid.c +334 -0
- data/ext/nokolexbor/xml_dict.c +1264 -0
- data/ext/nokolexbor/xml_encoding.c +124 -0
- data/ext/nokolexbor/xml_error.c +134 -0
- data/ext/nokolexbor/xml_globals.c +1085 -0
- data/ext/nokolexbor/xml_hash.c +1141 -0
- data/ext/nokolexbor/xml_memory.c +203 -0
- data/ext/nokolexbor/xml_parser.c +127 -0
- data/ext/nokolexbor/xml_parserInternals.c +338 -0
- data/ext/nokolexbor/xml_pattern.c +2375 -0
- data/ext/nokolexbor/xml_string.c +1051 -0
- data/ext/nokolexbor/xml_threads.c +881 -0
- data/ext/nokolexbor/xml_tree.c +148 -0
- data/ext/nokolexbor/xml_xpath.c +14743 -0
- data/lib/nokolexbor/attribute.rb +18 -0
- data/lib/nokolexbor/document.rb +6 -0
- data/lib/nokolexbor/node.rb +264 -0
- data/lib/nokolexbor/node_set.rb +124 -0
- data/lib/nokolexbor/version.rb +5 -0
- data/lib/nokolexbor/xpath_context.rb +14 -0
- data/lib/nokolexbor.rb +17 -0
- data/patches/0001-lexbor-support-text-pseudo-element.patch +137 -0
- data/patches/0002-lexbor-match-id-class-case-sensitive.patch +22 -0
- data/patches/0003-lexbor-attach-template-content-to-self.patch +13 -0
- data/vendor/lexbor/CMakeLists.txt +331 -0
- data/vendor/lexbor/config.cmake +890 -0
- data/vendor/lexbor/feature.cmake +134 -0
- data/vendor/lexbor/source/lexbor/core/array.c +208 -0
- data/vendor/lexbor/source/lexbor/core/array.h +100 -0
- data/vendor/lexbor/source/lexbor/core/array_obj.c +216 -0
- data/vendor/lexbor/source/lexbor/core/array_obj.h +134 -0
- data/vendor/lexbor/source/lexbor/core/avl.c +442 -0
- data/vendor/lexbor/source/lexbor/core/avl.h +82 -0
- data/vendor/lexbor/source/lexbor/core/base.h +86 -0
- data/vendor/lexbor/source/lexbor/core/bst.c +468 -0
- data/vendor/lexbor/source/lexbor/core/bst.h +108 -0
- data/vendor/lexbor/source/lexbor/core/bst_map.c +238 -0
- data/vendor/lexbor/source/lexbor/core/bst_map.h +87 -0
- data/vendor/lexbor/source/lexbor/core/config.cmake +12 -0
- data/vendor/lexbor/source/lexbor/core/conv.c +203 -0
- data/vendor/lexbor/source/lexbor/core/conv.h +53 -0
- data/vendor/lexbor/source/lexbor/core/core.h +35 -0
- data/vendor/lexbor/source/lexbor/core/def.h +57 -0
- data/vendor/lexbor/source/lexbor/core/diyfp.c +153 -0
- data/vendor/lexbor/source/lexbor/core/diyfp.h +258 -0
- data/vendor/lexbor/source/lexbor/core/dobject.c +187 -0
- data/vendor/lexbor/source/lexbor/core/dobject.h +92 -0
- data/vendor/lexbor/source/lexbor/core/dtoa.c +404 -0
- data/vendor/lexbor/source/lexbor/core/dtoa.h +28 -0
- data/vendor/lexbor/source/lexbor/core/fs.h +60 -0
- data/vendor/lexbor/source/lexbor/core/hash.c +476 -0
- data/vendor/lexbor/source/lexbor/core/hash.h +218 -0
- data/vendor/lexbor/source/lexbor/core/in.c +267 -0
- data/vendor/lexbor/source/lexbor/core/in.h +172 -0
- data/vendor/lexbor/source/lexbor/core/lexbor.h +35 -0
- data/vendor/lexbor/source/lexbor/core/mem.c +228 -0
- data/vendor/lexbor/source/lexbor/core/mem.h +141 -0
- data/vendor/lexbor/source/lexbor/core/mraw.c +428 -0
- data/vendor/lexbor/source/lexbor/core/mraw.h +114 -0
- data/vendor/lexbor/source/lexbor/core/perf.h +45 -0
- data/vendor/lexbor/source/lexbor/core/plog.c +73 -0
- data/vendor/lexbor/source/lexbor/core/plog.h +102 -0
- data/vendor/lexbor/source/lexbor/core/print.c +168 -0
- data/vendor/lexbor/source/lexbor/core/print.h +39 -0
- data/vendor/lexbor/source/lexbor/core/sbst.h +59 -0
- data/vendor/lexbor/source/lexbor/core/serialize.c +27 -0
- data/vendor/lexbor/source/lexbor/core/serialize.h +32 -0
- data/vendor/lexbor/source/lexbor/core/shs.c +118 -0
- data/vendor/lexbor/source/lexbor/core/shs.h +82 -0
- data/vendor/lexbor/source/lexbor/core/str.c +617 -0
- data/vendor/lexbor/source/lexbor/core/str.h +247 -0
- data/vendor/lexbor/source/lexbor/core/str_res.h +369 -0
- data/vendor/lexbor/source/lexbor/core/strtod.c +326 -0
- data/vendor/lexbor/source/lexbor/core/strtod.h +28 -0
- data/vendor/lexbor/source/lexbor/core/types.h +39 -0
- data/vendor/lexbor/source/lexbor/core/utils.c +43 -0
- data/vendor/lexbor/source/lexbor/core/utils.h +36 -0
- data/vendor/lexbor/source/lexbor/css/base.h +44 -0
- data/vendor/lexbor/source/lexbor/css/config.cmake +2 -0
- data/vendor/lexbor/source/lexbor/css/css.h +25 -0
- data/vendor/lexbor/source/lexbor/css/log.c +336 -0
- data/vendor/lexbor/source/lexbor/css/log.h +103 -0
- data/vendor/lexbor/source/lexbor/css/node.h +29 -0
- data/vendor/lexbor/source/lexbor/css/parser.c +473 -0
- data/vendor/lexbor/source/lexbor/css/parser.h +368 -0
- data/vendor/lexbor/source/lexbor/css/selectors/base.h +48 -0
- data/vendor/lexbor/source/lexbor/css/selectors/pseudo.c +91 -0
- data/vendor/lexbor/source/lexbor/css/selectors/pseudo.h +66 -0
- data/vendor/lexbor/source/lexbor/css/selectors/pseudo_const.h +109 -0
- data/vendor/lexbor/source/lexbor/css/selectors/pseudo_res.h +302 -0
- data/vendor/lexbor/source/lexbor/css/selectors/pseudo_state.c +279 -0
- data/vendor/lexbor/source/lexbor/css/selectors/pseudo_state.h +85 -0
- data/vendor/lexbor/source/lexbor/css/selectors/selector.c +927 -0
- data/vendor/lexbor/source/lexbor/css/selectors/selector.h +200 -0
- data/vendor/lexbor/source/lexbor/css/selectors/selectors.c +340 -0
- data/vendor/lexbor/source/lexbor/css/selectors/selectors.h +137 -0
- data/vendor/lexbor/source/lexbor/css/selectors/state.c +1718 -0
- data/vendor/lexbor/source/lexbor/css/selectors/state.h +79 -0
- data/vendor/lexbor/source/lexbor/css/stylesheet.h +37 -0
- data/vendor/lexbor/source/lexbor/css/syntax/anb.c +443 -0
- data/vendor/lexbor/source/lexbor/css/syntax/anb.h +45 -0
- data/vendor/lexbor/source/lexbor/css/syntax/base.h +33 -0
- data/vendor/lexbor/source/lexbor/css/syntax/parser.c +9 -0
- data/vendor/lexbor/source/lexbor/css/syntax/parser.h +25 -0
- data/vendor/lexbor/source/lexbor/css/syntax/res.h +48 -0
- data/vendor/lexbor/source/lexbor/css/syntax/state.c +2603 -0
- data/vendor/lexbor/source/lexbor/css/syntax/state.h +140 -0
- data/vendor/lexbor/source/lexbor/css/syntax/state_res.h +273 -0
- data/vendor/lexbor/source/lexbor/css/syntax/syntax.c +67 -0
- data/vendor/lexbor/source/lexbor/css/syntax/token.c +618 -0
- data/vendor/lexbor/source/lexbor/css/syntax/token.h +298 -0
- data/vendor/lexbor/source/lexbor/css/syntax/token_res.h +68 -0
- data/vendor/lexbor/source/lexbor/css/syntax/tokenizer/error.c +30 -0
- data/vendor/lexbor/source/lexbor/css/syntax/tokenizer/error.h +58 -0
- data/vendor/lexbor/source/lexbor/css/syntax/tokenizer.c +278 -0
- data/vendor/lexbor/source/lexbor/css/syntax/tokenizer.h +121 -0
- data/vendor/lexbor/source/lexbor/dom/base.h +32 -0
- data/vendor/lexbor/source/lexbor/dom/collection.c +97 -0
- data/vendor/lexbor/source/lexbor/dom/collection.h +112 -0
- data/vendor/lexbor/source/lexbor/dom/config.cmake +3 -0
- data/vendor/lexbor/source/lexbor/dom/dom.h +29 -0
- data/vendor/lexbor/source/lexbor/dom/exception.c +18 -0
- data/vendor/lexbor/source/lexbor/dom/exception.h +73 -0
- data/vendor/lexbor/source/lexbor/dom/interface.c +110 -0
- data/vendor/lexbor/source/lexbor/dom/interface.h +88 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/attr.c +445 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/attr.h +152 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/attr_const.h +62 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/attr_res.h +143 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/cdata_section.c +55 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/cdata_section.h +38 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/character_data.c +110 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/character_data.h +51 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/comment.c +64 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/comment.h +42 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/document.c +536 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/document.h +243 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/document_fragment.c +36 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/document_fragment.h +36 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/document_type.c +125 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/document_type.h +108 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/element.c +1411 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/element.h +319 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/event_target.c +32 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/event_target.h +34 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/node.c +661 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/node.h +192 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/processing_instruction.c +87 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/processing_instruction.h +66 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/shadow_root.c +36 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/shadow_root.h +44 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/text.c +63 -0
- data/vendor/lexbor/source/lexbor/dom/interfaces/text.h +42 -0
- data/vendor/lexbor/source/lexbor/encoding/base.h +218 -0
- data/vendor/lexbor/source/lexbor/encoding/big5.c +42839 -0
- data/vendor/lexbor/source/lexbor/encoding/config.cmake +12 -0
- data/vendor/lexbor/source/lexbor/encoding/const.h +65 -0
- data/vendor/lexbor/source/lexbor/encoding/decode.c +3193 -0
- data/vendor/lexbor/source/lexbor/encoding/decode.h +370 -0
- data/vendor/lexbor/source/lexbor/encoding/encode.c +1931 -0
- data/vendor/lexbor/source/lexbor/encoding/encode.h +377 -0
- data/vendor/lexbor/source/lexbor/encoding/encoding.c +252 -0
- data/vendor/lexbor/source/lexbor/encoding/encoding.h +475 -0
- data/vendor/lexbor/source/lexbor/encoding/euc_kr.c +53883 -0
- data/vendor/lexbor/source/lexbor/encoding/gb18030.c +47905 -0
- data/vendor/lexbor/source/lexbor/encoding/iso_2022_jp_katakana.c +159 -0
- data/vendor/lexbor/source/lexbor/encoding/jis0208.c +22477 -0
- data/vendor/lexbor/source/lexbor/encoding/jis0212.c +15787 -0
- data/vendor/lexbor/source/lexbor/encoding/multi.h +53 -0
- data/vendor/lexbor/source/lexbor/encoding/range.c +71 -0
- data/vendor/lexbor/source/lexbor/encoding/range.h +34 -0
- data/vendor/lexbor/source/lexbor/encoding/res.c +222 -0
- data/vendor/lexbor/source/lexbor/encoding/res.h +34 -0
- data/vendor/lexbor/source/lexbor/encoding/single.c +13748 -0
- data/vendor/lexbor/source/lexbor/encoding/single.h +116 -0
- data/vendor/lexbor/source/lexbor/html/base.h +44 -0
- data/vendor/lexbor/source/lexbor/html/config.cmake +3 -0
- data/vendor/lexbor/source/lexbor/html/encoding.c +574 -0
- data/vendor/lexbor/source/lexbor/html/encoding.h +106 -0
- data/vendor/lexbor/source/lexbor/html/html.h +107 -0
- data/vendor/lexbor/source/lexbor/html/interface.c +165 -0
- data/vendor/lexbor/source/lexbor/html/interface.h +186 -0
- data/vendor/lexbor/source/lexbor/html/interface_res.h +4449 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/anchor_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/anchor_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/area_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/area_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/audio_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/audio_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/base_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/base_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/body_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/body_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/br_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/br_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/button_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/button_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/canvas_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/canvas_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/d_list_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/d_list_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/data_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/data_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/data_list_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/data_list_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/details_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/details_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/dialog_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/dialog_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/directory_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/directory_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/div_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/div_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/document.c +444 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/document.h +256 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/element.c +64 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/element.h +54 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/embed_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/embed_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/field_set_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/field_set_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/font_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/font_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/form_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/form_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/frame_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/frame_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/frame_set_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/frame_set_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/head_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/head_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/heading_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/heading_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/hr_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/hr_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/html_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/html_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/iframe_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/iframe_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/image_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/image_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/input_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/input_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/label_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/label_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/legend_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/legend_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/li_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/li_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/link_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/link_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/map_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/map_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/marquee_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/marquee_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/media_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/media_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/menu_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/menu_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/meta_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/meta_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/meter_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/meter_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/mod_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/mod_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/o_list_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/o_list_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/object_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/object_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/opt_group_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/opt_group_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/option_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/option_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/output_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/output_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/paragraph_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/paragraph_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/param_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/param_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/picture_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/picture_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/pre_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/pre_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/progress_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/progress_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/quote_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/quote_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/script_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/script_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/select_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/select_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/slot_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/slot_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/source_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/source_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/span_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/span_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/style_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/style_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_caption_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_caption_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_cell_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_cell_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_col_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_col_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_row_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_row_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_section_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/table_section_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/template_element.c +46 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/template_element.h +38 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/text_area_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/text_area_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/time_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/time_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/title_element.c +133 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/title_element.h +42 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/track_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/track_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/u_list_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/u_list_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/unknown_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/unknown_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/video_element.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/video_element.h +34 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/window.c +36 -0
- data/vendor/lexbor/source/lexbor/html/interfaces/window.h +34 -0
- data/vendor/lexbor/source/lexbor/html/node.c +14 -0
- data/vendor/lexbor/source/lexbor/html/node.h +67 -0
- data/vendor/lexbor/source/lexbor/html/parser.c +469 -0
- data/vendor/lexbor/source/lexbor/html/parser.h +170 -0
- data/vendor/lexbor/source/lexbor/html/serialize.c +1510 -0
- data/vendor/lexbor/source/lexbor/html/serialize.h +93 -0
- data/vendor/lexbor/source/lexbor/html/tag.h +103 -0
- data/vendor/lexbor/source/lexbor/html/tag_res.h +2262 -0
- data/vendor/lexbor/source/lexbor/html/token.c +386 -0
- data/vendor/lexbor/source/lexbor/html/token.h +130 -0
- data/vendor/lexbor/source/lexbor/html/token_attr.c +44 -0
- data/vendor/lexbor/source/lexbor/html/token_attr.h +67 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/error.c +28 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/error.h +141 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/res.h +4956 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state.c +2171 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state.h +225 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_comment.c +489 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_comment.h +27 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_doctype.c +1654 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_doctype.h +27 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_rawtext.c +303 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_rawtext.h +32 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_rcdata.c +311 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_rcdata.h +32 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_script.c +1209 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer/state_script.h +32 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer.c +499 -0
- data/vendor/lexbor/source/lexbor/html/tokenizer.h +343 -0
- data/vendor/lexbor/source/lexbor/html/tree/active_formatting.c +241 -0
- data/vendor/lexbor/source/lexbor/html/tree/active_formatting.h +117 -0
- data/vendor/lexbor/source/lexbor/html/tree/error.c +26 -0
- data/vendor/lexbor/source/lexbor/html/tree/error.h +114 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/after_after_body.c +62 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/after_after_frameset.c +63 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/after_body.c +82 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/after_frameset.c +88 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/after_head.c +222 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/before_head.c +144 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/before_html.c +166 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/foreign_content.c +358 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_body.c +1974 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_caption.c +158 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_cell.c +187 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_column_group.c +194 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_frameset.c +149 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_head.c +374 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_head_noscript.c +121 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_row.c +211 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_select.c +341 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_select_in_table.c +115 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_table.c +451 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_table_body.c +208 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_table_text.c +127 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/in_template.c +189 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/initial.c +411 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode/text.c +61 -0
- data/vendor/lexbor/source/lexbor/html/tree/insertion_mode.h +135 -0
- data/vendor/lexbor/source/lexbor/html/tree/open_elements.c +251 -0
- data/vendor/lexbor/source/lexbor/html/tree/open_elements.h +105 -0
- data/vendor/lexbor/source/lexbor/html/tree/template_insertion.c +10 -0
- data/vendor/lexbor/source/lexbor/html/tree/template_insertion.h +100 -0
- data/vendor/lexbor/source/lexbor/html/tree.c +1726 -0
- data/vendor/lexbor/source/lexbor/html/tree.h +431 -0
- data/vendor/lexbor/source/lexbor/html/tree_res.h +111 -0
- data/vendor/lexbor/source/lexbor/ns/base.h +32 -0
- data/vendor/lexbor/source/lexbor/ns/config.cmake +2 -0
- data/vendor/lexbor/source/lexbor/ns/const.h +37 -0
- data/vendor/lexbor/source/lexbor/ns/ns.c +154 -0
- data/vendor/lexbor/source/lexbor/ns/ns.h +66 -0
- data/vendor/lexbor/source/lexbor/ns/res.h +97 -0
- data/vendor/lexbor/source/lexbor/ports/posix/config.cmake +11 -0
- data/vendor/lexbor/source/lexbor/ports/posix/lexbor/core/fs.c +236 -0
- data/vendor/lexbor/source/lexbor/ports/posix/lexbor/core/memory.c +33 -0
- data/vendor/lexbor/source/lexbor/ports/posix/lexbor/core/perf.c +158 -0
- data/vendor/lexbor/source/lexbor/ports/windows_nt/config.cmake +18 -0
- data/vendor/lexbor/source/lexbor/ports/windows_nt/lexbor/core/fs.c +239 -0
- data/vendor/lexbor/source/lexbor/ports/windows_nt/lexbor/core/memory.c +33 -0
- data/vendor/lexbor/source/lexbor/ports/windows_nt/lexbor/core/perf.c +81 -0
- data/vendor/lexbor/source/lexbor/selectors/base.h +30 -0
- data/vendor/lexbor/source/lexbor/selectors/config.cmake +2 -0
- data/vendor/lexbor/source/lexbor/selectors/selectors.c +1591 -0
- data/vendor/lexbor/source/lexbor/selectors/selectors.h +71 -0
- data/vendor/lexbor/source/lexbor/tag/base.h +32 -0
- data/vendor/lexbor/source/lexbor/tag/config.cmake +2 -0
- data/vendor/lexbor/source/lexbor/tag/const.h +225 -0
- data/vendor/lexbor/source/lexbor/tag/res.h +562 -0
- data/vendor/lexbor/source/lexbor/tag/tag.c +144 -0
- data/vendor/lexbor/source/lexbor/tag/tag.h +123 -0
- data/vendor/lexbor/source/lexbor/utils/base.h +32 -0
- data/vendor/lexbor/source/lexbor/utils/config.cmake +2 -0
- data/vendor/lexbor/source/lexbor/utils/http.c +534 -0
- data/vendor/lexbor/source/lexbor/utils/http.h +90 -0
- data/vendor/lexbor/source/lexbor/utils/utils.h +15 -0
- data/vendor/lexbor/source/lexbor/utils/warc.c +817 -0
- data/vendor/lexbor/source/lexbor/utils/warc.h +126 -0
- data/vendor/lexbor/utils/lexbor/css/selectors/pseudo.py +231 -0
- data/vendor/lexbor/utils/lexbor/css/selectors/tmp/const.h +21 -0
- data/vendor/lexbor/utils/lexbor/css/selectors/tmp/res.h +26 -0
- data/vendor/lexbor/utils/lexbor/css/syntax/definitions.py +49 -0
- data/vendor/lexbor/utils/lexbor/css/syntax/token_res.py +54 -0
- data/vendor/lexbor/utils/lexbor/css/syntax/tokenizer_code_map.py +36 -0
- data/vendor/lexbor/version +1 -0
- metadata +542 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2019 Alexander Borisov
|
3
|
+
*
|
4
|
+
* Author: Alexander Borisov <borisov@lexbor.com>
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*
|
8
|
+
* Caution!
|
9
|
+
* This file generated by the script "utils/lexbor/encoding/multi-byte.py"!
|
10
|
+
* Do not change this file!
|
11
|
+
*/
|
12
|
+
|
13
|
+
|
14
|
+
#ifndef LEXBOR_ENCODING_MULTI_H
|
15
|
+
#define LEXBOR_ENCODING_MULTI_H
|
16
|
+
|
17
|
+
#ifdef __cplusplus
|
18
|
+
extern "C" {
|
19
|
+
#endif
|
20
|
+
|
21
|
+
#include "lexbor/encoding/base.h"
|
22
|
+
|
23
|
+
#include "lexbor/core/shs.h"
|
24
|
+
|
25
|
+
|
26
|
+
#define LXB_ENCODING_MULTI_HASH_BIG5_SIZE 20172
|
27
|
+
#define LXB_ENCODING_MULTI_HASH_EUC_KR_SIZE 28041
|
28
|
+
#define LXB_ENCODING_MULTI_HASH_GB18030_SIZE 19950
|
29
|
+
#define LXB_ENCODING_MULTI_HASH_ISO_2022_JP_KATAKANA_SIZE 52
|
30
|
+
#define LXB_ENCODING_MULTI_HASH_JIS0208_SIZE 9253
|
31
|
+
#define LXB_ENCODING_MULTI_HASH_JIS0212_SIZE 6923
|
32
|
+
|
33
|
+
|
34
|
+
LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_big5[19782];
|
35
|
+
LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_euc_kr[23750];
|
36
|
+
LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_gb18030[23940];
|
37
|
+
LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_iso_2022_jp_katakana[63];
|
38
|
+
LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_jis0208[11104];
|
39
|
+
LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_jis0212[7211];
|
40
|
+
|
41
|
+
LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_big5[23033];
|
42
|
+
LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_euc_kr[30109];
|
43
|
+
LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_gb18030[23941];
|
44
|
+
LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_iso_2022_jp_katakana[72];
|
45
|
+
LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_jis0208[11349];
|
46
|
+
LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_jis0212[8552];
|
47
|
+
|
48
|
+
|
49
|
+
#ifdef __cplusplus
|
50
|
+
} /* extern "C" */
|
51
|
+
#endif
|
52
|
+
|
53
|
+
#endif /* LEXBOR_ENCODING_MULTI_H */
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2019 Alexander Borisov
|
3
|
+
*
|
4
|
+
* Author: Alexander Borisov <borisov@lexbor.com>
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*
|
8
|
+
* Caution!
|
9
|
+
* This file generated by the script "utils/lexbor/encoding/range-byte.py"!
|
10
|
+
* Do not change this file!
|
11
|
+
*/
|
12
|
+
|
13
|
+
#include "lexbor/encoding/base.h"
|
14
|
+
|
15
|
+
|
16
|
+
LXB_API const lxb_encoding_range_index_t lxb_encoding_range_index_gb18030[207] =
|
17
|
+
{
|
18
|
+
{0, 0x0080}, {36, 0x00A5}, {38, 0x00A9}, {45, 0x00B2},
|
19
|
+
{50, 0x00B8}, {81, 0x00D8}, {89, 0x00E2}, {95, 0x00EB},
|
20
|
+
{96, 0x00EE}, {100, 0x00F4}, {103, 0x00F8}, {104, 0x00FB},
|
21
|
+
{105, 0x00FD}, {109, 0x0102}, {126, 0x0114}, {133, 0x011C},
|
22
|
+
{148, 0x012C}, {172, 0x0145}, {175, 0x0149}, {179, 0x014E},
|
23
|
+
{208, 0x016C}, {306, 0x01CF}, {307, 0x01D1}, {308, 0x01D3},
|
24
|
+
{309, 0x01D5}, {310, 0x01D7}, {311, 0x01D9}, {312, 0x01DB},
|
25
|
+
{313, 0x01DD}, {341, 0x01FA}, {428, 0x0252}, {443, 0x0262},
|
26
|
+
{544, 0x02C8}, {545, 0x02CC}, {558, 0x02DA}, {741, 0x03A2},
|
27
|
+
{742, 0x03AA}, {749, 0x03C2}, {750, 0x03CA}, {805, 0x0402},
|
28
|
+
{819, 0x0450}, {820, 0x0452}, {7922, 0x2011}, {7924, 0x2017},
|
29
|
+
{7925, 0x201A}, {7927, 0x201E}, {7934, 0x2027}, {7943, 0x2031},
|
30
|
+
{7944, 0x2034}, {7945, 0x2036}, {7950, 0x203C}, {8062, 0x20AD},
|
31
|
+
{8148, 0x2104}, {8149, 0x2106}, {8152, 0x210A}, {8164, 0x2117},
|
32
|
+
{8174, 0x2122}, {8236, 0x216C}, {8240, 0x217A}, {8262, 0x2194},
|
33
|
+
{8264, 0x219A}, {8374, 0x2209}, {8380, 0x2210}, {8381, 0x2212},
|
34
|
+
{8384, 0x2216}, {8388, 0x221B}, {8390, 0x2221}, {8392, 0x2224},
|
35
|
+
{8393, 0x2226}, {8394, 0x222C}, {8396, 0x222F}, {8401, 0x2238},
|
36
|
+
{8406, 0x223E}, {8416, 0x2249}, {8419, 0x224D}, {8424, 0x2253},
|
37
|
+
{8437, 0x2262}, {8439, 0x2268}, {8445, 0x2270}, {8482, 0x2296},
|
38
|
+
{8485, 0x229A}, {8496, 0x22A6}, {8521, 0x22C0}, {8603, 0x2313},
|
39
|
+
{8936, 0x246A}, {8946, 0x249C}, {9046, 0x254C}, {9050, 0x2574},
|
40
|
+
{9063, 0x2590}, {9066, 0x2596}, {9076, 0x25A2}, {9092, 0x25B4},
|
41
|
+
{9100, 0x25BE}, {9108, 0x25C8}, {9111, 0x25CC}, {9113, 0x25D0},
|
42
|
+
{9131, 0x25E6}, {9162, 0x2607}, {9164, 0x260A}, {9218, 0x2641},
|
43
|
+
{9219, 0x2643}, {11329, 0x2E82}, {11331, 0x2E85}, {11334, 0x2E89},
|
44
|
+
{11336, 0x2E8D}, {11346, 0x2E98}, {11361, 0x2EA8}, {11363, 0x2EAB},
|
45
|
+
{11366, 0x2EAF}, {11370, 0x2EB4}, {11372, 0x2EB8}, {11375, 0x2EBC},
|
46
|
+
{11389, 0x2ECB}, {11682, 0x2FFC}, {11686, 0x3004}, {11687, 0x3018},
|
47
|
+
{11692, 0x301F}, {11694, 0x302A}, {11714, 0x303F}, {11716, 0x3094},
|
48
|
+
{11723, 0x309F}, {11725, 0x30F7}, {11730, 0x30FF}, {11736, 0x312A},
|
49
|
+
{11982, 0x322A}, {11989, 0x3232}, {12102, 0x32A4}, {12336, 0x3390},
|
50
|
+
{12348, 0x339F}, {12350, 0x33A2}, {12384, 0x33C5}, {12393, 0x33CF},
|
51
|
+
{12395, 0x33D3}, {12397, 0x33D6}, {12510, 0x3448}, {12553, 0x3474},
|
52
|
+
{12851, 0x359F}, {12962, 0x360F}, {12973, 0x361B}, {13738, 0x3919},
|
53
|
+
{13823, 0x396F}, {13919, 0x39D1}, {13933, 0x39E0}, {14080, 0x3A74},
|
54
|
+
{14298, 0x3B4F}, {14585, 0x3C6F}, {14698, 0x3CE1}, {15583, 0x4057},
|
55
|
+
{15847, 0x4160}, {16318, 0x4338}, {16434, 0x43AD}, {16438, 0x43B2},
|
56
|
+
{16481, 0x43DE}, {16729, 0x44D7}, {17102, 0x464D}, {17122, 0x4662},
|
57
|
+
{17315, 0x4724}, {17320, 0x472A}, {17402, 0x477D}, {17418, 0x478E},
|
58
|
+
{17859, 0x4948}, {17909, 0x497B}, {17911, 0x497E}, {17915, 0x4984},
|
59
|
+
{17916, 0x4987}, {17936, 0x499C}, {17939, 0x49A0}, {17961, 0x49B8},
|
60
|
+
{18664, 0x4C78}, {18703, 0x4CA4}, {18814, 0x4D1A}, {18962, 0x4DAF},
|
61
|
+
{19043, 0x9FA6}, {33469, 0xE76C}, {33470, 0xE7C8}, {33471, 0xE7E7},
|
62
|
+
{33484, 0xE815}, {33485, 0xE819}, {33490, 0xE81F}, {33497, 0xE827},
|
63
|
+
{33501, 0xE82D}, {33505, 0xE833}, {33513, 0xE83C}, {33520, 0xE844},
|
64
|
+
{33536, 0xE856}, {33550, 0xE865}, {37845, 0xF92D}, {37921, 0xF97A},
|
65
|
+
{37948, 0xF996}, {38029, 0xF9E8}, {38038, 0xF9F2}, {38064, 0xFA10},
|
66
|
+
{38065, 0xFA12}, {38066, 0xFA15}, {38069, 0xFA19}, {38075, 0xFA22},
|
67
|
+
{38076, 0xFA25}, {38078, 0xFA2A}, {39108, 0xFE32}, {39109, 0xFE45},
|
68
|
+
{39113, 0xFE53}, {39114, 0xFE58}, {39115, 0xFE67}, {39116, 0xFE6C},
|
69
|
+
{39265, 0xFF5F}, {39394, 0xFFE6}, {189000, 0x10000}
|
70
|
+
};
|
71
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2019 Alexander Borisov
|
3
|
+
*
|
4
|
+
* Author: Alexander Borisov <borisov@lexbor.com>
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*
|
8
|
+
* Caution!
|
9
|
+
* This file generated by the script "utils/lexbor/encoding/range-byte.py"!
|
10
|
+
* Do not change this file!
|
11
|
+
*/
|
12
|
+
|
13
|
+
|
14
|
+
#ifndef LEXBOR_ENCODING_RANGE_H
|
15
|
+
#define LEXBOR_ENCODING_RANGE_H
|
16
|
+
|
17
|
+
#ifdef __cplusplus
|
18
|
+
extern "C" {
|
19
|
+
#endif
|
20
|
+
|
21
|
+
#include "lexbor/encoding/base.h"
|
22
|
+
|
23
|
+
|
24
|
+
#define LXB_ENCODING_RANGE_INDEX_GB18030_SIZE 207
|
25
|
+
|
26
|
+
|
27
|
+
LXB_EXTERN const lxb_encoding_range_index_t lxb_encoding_range_index_gb18030[207];
|
28
|
+
|
29
|
+
|
30
|
+
#ifdef __cplusplus
|
31
|
+
} /* extern "C" */
|
32
|
+
#endif
|
33
|
+
|
34
|
+
#endif /* LEXBOR_ENCODING_RANGE_H */
|
@@ -0,0 +1,222 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2019 Alexander Borisov
|
3
|
+
*
|
4
|
+
* Author: Alexander Borisov <borisov@lexbor.com>
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*
|
8
|
+
* Caution!
|
9
|
+
* This file generated by the script "utils/lexbor/encoding/res.py"!
|
10
|
+
* Do not change this file!
|
11
|
+
*/
|
12
|
+
|
13
|
+
#include "lexbor/encoding/base.h"
|
14
|
+
#include "lexbor/encoding/encode.h"
|
15
|
+
#include "lexbor/encoding/decode.h"
|
16
|
+
|
17
|
+
#include "lexbor/core/shs.h"
|
18
|
+
|
19
|
+
|
20
|
+
LXB_API const lxb_encoding_data_t lxb_encoding_res_map[LXB_ENCODING_LAST_ENTRY] =
|
21
|
+
{
|
22
|
+
{LXB_ENCODING_DEFAULT, lxb_encoding_encode_default, lxb_encoding_decode_default,
|
23
|
+
lxb_encoding_encode_default_single, lxb_encoding_decode_default_single, (lxb_char_t *) "DEFAULT"},
|
24
|
+
{LXB_ENCODING_AUTO, lxb_encoding_encode_auto, lxb_encoding_decode_auto,
|
25
|
+
lxb_encoding_encode_auto_single, lxb_encoding_decode_auto_single, (lxb_char_t *) "AUTO"},
|
26
|
+
{LXB_ENCODING_UNDEFINED, lxb_encoding_encode_undefined, lxb_encoding_decode_undefined,
|
27
|
+
lxb_encoding_encode_undefined_single, lxb_encoding_decode_undefined_single, (lxb_char_t *) "UNDEFINED"},
|
28
|
+
{LXB_ENCODING_BIG5, lxb_encoding_encode_big5, lxb_encoding_decode_big5,
|
29
|
+
lxb_encoding_encode_big5_single, lxb_encoding_decode_big5_single, (lxb_char_t *) "Big5"},
|
30
|
+
{LXB_ENCODING_EUC_JP, lxb_encoding_encode_euc_jp, lxb_encoding_decode_euc_jp,
|
31
|
+
lxb_encoding_encode_euc_jp_single, lxb_encoding_decode_euc_jp_single, (lxb_char_t *) "EUC-JP"},
|
32
|
+
{LXB_ENCODING_EUC_KR, lxb_encoding_encode_euc_kr, lxb_encoding_decode_euc_kr,
|
33
|
+
lxb_encoding_encode_euc_kr_single, lxb_encoding_decode_euc_kr_single, (lxb_char_t *) "EUC-KR"},
|
34
|
+
{LXB_ENCODING_GBK, lxb_encoding_encode_gbk, lxb_encoding_decode_gbk,
|
35
|
+
lxb_encoding_encode_gbk_single, lxb_encoding_decode_gbk_single, (lxb_char_t *) "GBK"},
|
36
|
+
{LXB_ENCODING_IBM866, lxb_encoding_encode_ibm866, lxb_encoding_decode_ibm866,
|
37
|
+
lxb_encoding_encode_ibm866_single, lxb_encoding_decode_ibm866_single, (lxb_char_t *) "IBM866"},
|
38
|
+
{LXB_ENCODING_ISO_2022_JP, lxb_encoding_encode_iso_2022_jp, lxb_encoding_decode_iso_2022_jp,
|
39
|
+
lxb_encoding_encode_iso_2022_jp_single, lxb_encoding_decode_iso_2022_jp_single, (lxb_char_t *) "ISO-2022-JP"},
|
40
|
+
{LXB_ENCODING_ISO_8859_10, lxb_encoding_encode_iso_8859_10, lxb_encoding_decode_iso_8859_10,
|
41
|
+
lxb_encoding_encode_iso_8859_10_single, lxb_encoding_decode_iso_8859_10_single, (lxb_char_t *) "ISO-8859-10"},
|
42
|
+
{LXB_ENCODING_ISO_8859_13, lxb_encoding_encode_iso_8859_13, lxb_encoding_decode_iso_8859_13,
|
43
|
+
lxb_encoding_encode_iso_8859_13_single, lxb_encoding_decode_iso_8859_13_single, (lxb_char_t *) "ISO-8859-13"},
|
44
|
+
{LXB_ENCODING_ISO_8859_14, lxb_encoding_encode_iso_8859_14, lxb_encoding_decode_iso_8859_14,
|
45
|
+
lxb_encoding_encode_iso_8859_14_single, lxb_encoding_decode_iso_8859_14_single, (lxb_char_t *) "ISO-8859-14"},
|
46
|
+
{LXB_ENCODING_ISO_8859_15, lxb_encoding_encode_iso_8859_15, lxb_encoding_decode_iso_8859_15,
|
47
|
+
lxb_encoding_encode_iso_8859_15_single, lxb_encoding_decode_iso_8859_15_single, (lxb_char_t *) "ISO-8859-15"},
|
48
|
+
{LXB_ENCODING_ISO_8859_16, lxb_encoding_encode_iso_8859_16, lxb_encoding_decode_iso_8859_16,
|
49
|
+
lxb_encoding_encode_iso_8859_16_single, lxb_encoding_decode_iso_8859_16_single, (lxb_char_t *) "ISO-8859-16"},
|
50
|
+
{LXB_ENCODING_ISO_8859_2, lxb_encoding_encode_iso_8859_2, lxb_encoding_decode_iso_8859_2,
|
51
|
+
lxb_encoding_encode_iso_8859_2_single, lxb_encoding_decode_iso_8859_2_single, (lxb_char_t *) "ISO-8859-2"},
|
52
|
+
{LXB_ENCODING_ISO_8859_3, lxb_encoding_encode_iso_8859_3, lxb_encoding_decode_iso_8859_3,
|
53
|
+
lxb_encoding_encode_iso_8859_3_single, lxb_encoding_decode_iso_8859_3_single, (lxb_char_t *) "ISO-8859-3"},
|
54
|
+
{LXB_ENCODING_ISO_8859_4, lxb_encoding_encode_iso_8859_4, lxb_encoding_decode_iso_8859_4,
|
55
|
+
lxb_encoding_encode_iso_8859_4_single, lxb_encoding_decode_iso_8859_4_single, (lxb_char_t *) "ISO-8859-4"},
|
56
|
+
{LXB_ENCODING_ISO_8859_5, lxb_encoding_encode_iso_8859_5, lxb_encoding_decode_iso_8859_5,
|
57
|
+
lxb_encoding_encode_iso_8859_5_single, lxb_encoding_decode_iso_8859_5_single, (lxb_char_t *) "ISO-8859-5"},
|
58
|
+
{LXB_ENCODING_ISO_8859_6, lxb_encoding_encode_iso_8859_6, lxb_encoding_decode_iso_8859_6,
|
59
|
+
lxb_encoding_encode_iso_8859_6_single, lxb_encoding_decode_iso_8859_6_single, (lxb_char_t *) "ISO-8859-6"},
|
60
|
+
{LXB_ENCODING_ISO_8859_7, lxb_encoding_encode_iso_8859_7, lxb_encoding_decode_iso_8859_7,
|
61
|
+
lxb_encoding_encode_iso_8859_7_single, lxb_encoding_decode_iso_8859_7_single, (lxb_char_t *) "ISO-8859-7"},
|
62
|
+
{LXB_ENCODING_ISO_8859_8, lxb_encoding_encode_iso_8859_8, lxb_encoding_decode_iso_8859_8,
|
63
|
+
lxb_encoding_encode_iso_8859_8_single, lxb_encoding_decode_iso_8859_8_single, (lxb_char_t *) "ISO-8859-8"},
|
64
|
+
{LXB_ENCODING_ISO_8859_8_I, lxb_encoding_encode_iso_8859_8_i, lxb_encoding_decode_iso_8859_8_i,
|
65
|
+
lxb_encoding_encode_iso_8859_8_i_single, lxb_encoding_decode_iso_8859_8_i_single, (lxb_char_t *) "ISO-8859-8-I"},
|
66
|
+
{LXB_ENCODING_KOI8_R, lxb_encoding_encode_koi8_r, lxb_encoding_decode_koi8_r,
|
67
|
+
lxb_encoding_encode_koi8_r_single, lxb_encoding_decode_koi8_r_single, (lxb_char_t *) "KOI8-R"},
|
68
|
+
{LXB_ENCODING_KOI8_U, lxb_encoding_encode_koi8_u, lxb_encoding_decode_koi8_u,
|
69
|
+
lxb_encoding_encode_koi8_u_single, lxb_encoding_decode_koi8_u_single, (lxb_char_t *) "KOI8-U"},
|
70
|
+
{LXB_ENCODING_SHIFT_JIS, lxb_encoding_encode_shift_jis, lxb_encoding_decode_shift_jis,
|
71
|
+
lxb_encoding_encode_shift_jis_single, lxb_encoding_decode_shift_jis_single, (lxb_char_t *) "Shift_JIS"},
|
72
|
+
{LXB_ENCODING_UTF_16BE, lxb_encoding_encode_utf_16be, lxb_encoding_decode_utf_16be,
|
73
|
+
lxb_encoding_encode_utf_16be_single, lxb_encoding_decode_utf_16be_single, (lxb_char_t *) "UTF-16BE"},
|
74
|
+
{LXB_ENCODING_UTF_16LE, lxb_encoding_encode_utf_16le, lxb_encoding_decode_utf_16le,
|
75
|
+
lxb_encoding_encode_utf_16le_single, lxb_encoding_decode_utf_16le_single, (lxb_char_t *) "UTF-16LE"},
|
76
|
+
{LXB_ENCODING_UTF_8, lxb_encoding_encode_utf_8, lxb_encoding_decode_utf_8,
|
77
|
+
lxb_encoding_encode_utf_8_single, lxb_encoding_decode_utf_8_single, (lxb_char_t *) "UTF-8"},
|
78
|
+
{LXB_ENCODING_GB18030, lxb_encoding_encode_gb18030, lxb_encoding_decode_gb18030,
|
79
|
+
lxb_encoding_encode_gb18030_single, lxb_encoding_decode_gb18030_single, (lxb_char_t *) "gb18030"},
|
80
|
+
{LXB_ENCODING_MACINTOSH, lxb_encoding_encode_macintosh, lxb_encoding_decode_macintosh,
|
81
|
+
lxb_encoding_encode_macintosh_single, lxb_encoding_decode_macintosh_single, (lxb_char_t *) "macintosh"},
|
82
|
+
{LXB_ENCODING_REPLACEMENT, lxb_encoding_encode_replacement, lxb_encoding_decode_replacement,
|
83
|
+
lxb_encoding_encode_replacement_single, lxb_encoding_decode_replacement_single, (lxb_char_t *) "replacement"},
|
84
|
+
{LXB_ENCODING_WINDOWS_1250, lxb_encoding_encode_windows_1250, lxb_encoding_decode_windows_1250,
|
85
|
+
lxb_encoding_encode_windows_1250_single, lxb_encoding_decode_windows_1250_single, (lxb_char_t *) "windows-1250"},
|
86
|
+
{LXB_ENCODING_WINDOWS_1251, lxb_encoding_encode_windows_1251, lxb_encoding_decode_windows_1251,
|
87
|
+
lxb_encoding_encode_windows_1251_single, lxb_encoding_decode_windows_1251_single, (lxb_char_t *) "windows-1251"},
|
88
|
+
{LXB_ENCODING_WINDOWS_1252, lxb_encoding_encode_windows_1252, lxb_encoding_decode_windows_1252,
|
89
|
+
lxb_encoding_encode_windows_1252_single, lxb_encoding_decode_windows_1252_single, (lxb_char_t *) "windows-1252"},
|
90
|
+
{LXB_ENCODING_WINDOWS_1253, lxb_encoding_encode_windows_1253, lxb_encoding_decode_windows_1253,
|
91
|
+
lxb_encoding_encode_windows_1253_single, lxb_encoding_decode_windows_1253_single, (lxb_char_t *) "windows-1253"},
|
92
|
+
{LXB_ENCODING_WINDOWS_1254, lxb_encoding_encode_windows_1254, lxb_encoding_decode_windows_1254,
|
93
|
+
lxb_encoding_encode_windows_1254_single, lxb_encoding_decode_windows_1254_single, (lxb_char_t *) "windows-1254"},
|
94
|
+
{LXB_ENCODING_WINDOWS_1255, lxb_encoding_encode_windows_1255, lxb_encoding_decode_windows_1255,
|
95
|
+
lxb_encoding_encode_windows_1255_single, lxb_encoding_decode_windows_1255_single, (lxb_char_t *) "windows-1255"},
|
96
|
+
{LXB_ENCODING_WINDOWS_1256, lxb_encoding_encode_windows_1256, lxb_encoding_decode_windows_1256,
|
97
|
+
lxb_encoding_encode_windows_1256_single, lxb_encoding_decode_windows_1256_single, (lxb_char_t *) "windows-1256"},
|
98
|
+
{LXB_ENCODING_WINDOWS_1257, lxb_encoding_encode_windows_1257, lxb_encoding_decode_windows_1257,
|
99
|
+
lxb_encoding_encode_windows_1257_single, lxb_encoding_decode_windows_1257_single, (lxb_char_t *) "windows-1257"},
|
100
|
+
{LXB_ENCODING_WINDOWS_1258, lxb_encoding_encode_windows_1258, lxb_encoding_decode_windows_1258,
|
101
|
+
lxb_encoding_encode_windows_1258_single, lxb_encoding_decode_windows_1258_single, (lxb_char_t *) "windows-1258"},
|
102
|
+
{LXB_ENCODING_WINDOWS_874, lxb_encoding_encode_windows_874, lxb_encoding_decode_windows_874,
|
103
|
+
lxb_encoding_encode_windows_874_single, lxb_encoding_decode_windows_874_single, (lxb_char_t *) "windows-874"},
|
104
|
+
{LXB_ENCODING_X_MAC_CYRILLIC, lxb_encoding_encode_x_mac_cyrillic, lxb_encoding_decode_x_mac_cyrillic,
|
105
|
+
lxb_encoding_encode_x_mac_cyrillic_single, lxb_encoding_decode_x_mac_cyrillic_single, (lxb_char_t *) "x-mac-cyrillic"},
|
106
|
+
{LXB_ENCODING_X_USER_DEFINED, lxb_encoding_encode_x_user_defined, lxb_encoding_decode_x_user_defined,
|
107
|
+
lxb_encoding_encode_x_user_defined_single, lxb_encoding_decode_x_user_defined_single, (lxb_char_t *) "x-user-defined"}
|
108
|
+
};
|
109
|
+
|
110
|
+
LXB_API const lexbor_shs_entry_t lxb_encoding_res_shs_entities[220] =
|
111
|
+
{
|
112
|
+
{NULL, NULL, 202, 0}, {"koi8", (void *) &lxb_encoding_res_map[22], 4, 4},
|
113
|
+
{"iso8859-2", (void *) &lxb_encoding_res_map[14], 9, 0}, {"iso-8859-2", (void *) &lxb_encoding_res_map[14], 10, 15},
|
114
|
+
{"iso88592", (void *) &lxb_encoding_res_map[14], 8, 8}, {"gb2312", (void *) &lxb_encoding_res_map[6], 6, 17},
|
115
|
+
{"gb_2312", (void *) &lxb_encoding_res_map[6], 7, 28}, {"euc-jp", (void *) &lxb_encoding_res_map[4], 6, 30},
|
116
|
+
{"gb_2312-80", (void *) &lxb_encoding_res_map[6], 10, 0}, {"ecma-114", (void *) &lxb_encoding_res_map[18], 8, 37},
|
117
|
+
{"ibm819", (void *) &lxb_encoding_res_map[33], 6, 39}, {"x-sjis", (void *) &lxb_encoding_res_map[24], 6, 40},
|
118
|
+
{"iso88599", (void *) &lxb_encoding_res_map[35], 8, 42}, {"cp1254", (void *) &lxb_encoding_res_map[35], 6, 43},
|
119
|
+
{"iso-ir-149", (void *) &lxb_encoding_res_map[5], 10, 44}, {"iso_8859-2", (void *) &lxb_encoding_res_map[14], 10, 0},
|
120
|
+
{"windows-31j", (void *) &lxb_encoding_res_map[24], 11, 0}, {"cp1252", (void *) &lxb_encoding_res_map[33], 6, 0},
|
121
|
+
{"csisolatin4", (void *) &lxb_encoding_res_map[16], 11, 49}, {"iso_8859-9:1989", (void *) &lxb_encoding_res_map[35], 15, 0},
|
122
|
+
{"cp866", (void *) &lxb_encoding_res_map[7], 5, 0}, {"cp1256", (void *) &lxb_encoding_res_map[37], 6, 0},
|
123
|
+
{"sjis", (void *) &lxb_encoding_res_map[24], 4, 50}, {"l6", (void *) &lxb_encoding_res_map[9], 2, 51},
|
124
|
+
{"csmacintosh", (void *) &lxb_encoding_res_map[29], 11, 0}, {"x-cp1258", (void *) &lxb_encoding_res_map[39], 8, 0},
|
125
|
+
{"csisolatin6", (void *) &lxb_encoding_res_map[9], 11, 0}, {"latin6", (void *) &lxb_encoding_res_map[9], 6, 58},
|
126
|
+
{"csiso58gb231280", (void *) &lxb_encoding_res_map[6], 15, 0}, {"l2", (void *) &lxb_encoding_res_map[14], 2, 61},
|
127
|
+
{"euc-kr", (void *) &lxb_encoding_res_map[5], 6, 31}, {"csgb2312", (void *) &lxb_encoding_res_map[6], 8, 0},
|
128
|
+
{"windows-1251", (void *) &lxb_encoding_res_map[32], 12, 0}, {"latin2", (void *) &lxb_encoding_res_map[14], 6, 70},
|
129
|
+
{"iso885914", (void *) &lxb_encoding_res_map[11], 9, 73}, {"iso8859-14", (void *) &lxb_encoding_res_map[11], 10, 77},
|
130
|
+
{"iso-8859-14", (void *) &lxb_encoding_res_map[11], 11, 0}, {"ecma-118", (void *) &lxb_encoding_res_map[19], 8, 38},
|
131
|
+
{"elot_928", (void *) &lxb_encoding_res_map[19], 8, 0}, {"csisolatin2", (void *) &lxb_encoding_res_map[14], 11, 0},
|
132
|
+
{"windows-1250", (void *) &lxb_encoding_res_map[31], 12, 0}, {"x-euc-jp", (void *) &lxb_encoding_res_map[4], 8, 0},
|
133
|
+
{"unicode-1-1-utf-8", (void *) &lxb_encoding_res_map[27], 17, 0}, {"iso8859-9", (void *) &lxb_encoding_res_map[35], 9, 0},
|
134
|
+
{"iso-ir-109", (void *) &lxb_encoding_res_map[15], 10, 45}, {"iso-8859-9", (void *) &lxb_encoding_res_map[35], 10, 46},
|
135
|
+
{"iso_8859-9", (void *) &lxb_encoding_res_map[35], 10, 0}, {"koi", (void *) &lxb_encoding_res_map[22], 3, 0},
|
136
|
+
{"logical", (void *) &lxb_encoding_res_map[21], 7, 0}, {"iso-2022-kr", (void *) &lxb_encoding_res_map[30], 11, 0},
|
137
|
+
{"replacement", (void *) &lxb_encoding_res_map[30], 11, 0}, {"csibm866", (void *) &lxb_encoding_res_map[7], 8, 52},
|
138
|
+
{"x-cp1251", (void *) &lxb_encoding_res_map[32], 8, 0}, {"x-x-big5", (void *) &lxb_encoding_res_map[3], 8, 83},
|
139
|
+
{"iso-2022-cn-ext", (void *) &lxb_encoding_res_map[30], 15, 0}, {"ksc5601", (void *) &lxb_encoding_res_map[5], 7, 0},
|
140
|
+
{"ksc_5601", (void *) &lxb_encoding_res_map[5], 8, 90}, {"hz-gb-2312", (void *) &lxb_encoding_res_map[30], 10, 0},
|
141
|
+
{"shift-jis", (void *) &lxb_encoding_res_map[24], 9, 59}, {"shift_jis", (void *) &lxb_encoding_res_map[24], 9, 0},
|
142
|
+
{"cseuckr", (void *) &lxb_encoding_res_map[5], 7, 91}, {"greek8", (void *) &lxb_encoding_res_map[19], 6, 62},
|
143
|
+
{"cp1258", (void *) &lxb_encoding_res_map[39], 6, 0}, {"ibm866", (void *) &lxb_encoding_res_map[7], 6, 0},
|
144
|
+
{"csiso2022kr", (void *) &lxb_encoding_res_map[30], 11, 0}, {"iso88596", (void *) &lxb_encoding_res_map[18], 8, 0},
|
145
|
+
{"iso8859-6", (void *) &lxb_encoding_res_map[18], 9, 0}, {"iso-8859-6", (void *) &lxb_encoding_res_map[18], 10, 93},
|
146
|
+
{"iso-8859-16", (void *) &lxb_encoding_res_map[13], 11, 0}, {"l9", (void *) &lxb_encoding_res_map[12], 2, 0},
|
147
|
+
{"iso88594", (void *) &lxb_encoding_res_map[16], 8, 0}, {"koi8-r", (void *) &lxb_encoding_res_map[22], 6, 100},
|
148
|
+
{"866", (void *) &lxb_encoding_res_map[7], 3, 0}, {"iso8859-4", (void *) &lxb_encoding_res_map[16], 9, 0},
|
149
|
+
{"windows-1253", (void *) &lxb_encoding_res_map[34], 12, 0}, {"l5", (void *) &lxb_encoding_res_map[35], 2, 0},
|
150
|
+
{"arabic", (void *) &lxb_encoding_res_map[18], 6, 105}, {"iso-8859-4", (void *) &lxb_encoding_res_map[16], 10, 80},
|
151
|
+
{"koi8-u", (void *) &lxb_encoding_res_map[23], 6, 106}, {"latin5", (void *) &lxb_encoding_res_map[35], 6, 108},
|
152
|
+
{"iso_8859-4", (void *) &lxb_encoding_res_map[16], 10, 82}, {"l1", (void *) &lxb_encoding_res_map[33], 2, 117},
|
153
|
+
{"iso-ir-144", (void *) &lxb_encoding_res_map[17], 10, 0}, {"x-cp1255", (void *) &lxb_encoding_res_map[36], 8, 84},
|
154
|
+
{"windows-1252", (void *) &lxb_encoding_res_map[33], 12, 0}, {"latin1", (void *) &lxb_encoding_res_map[33], 6, 0},
|
155
|
+
{"iso88591", (void *) &lxb_encoding_res_map[33], 8, 0}, {"iso8859-1", (void *) &lxb_encoding_res_map[33], 9, 122},
|
156
|
+
{"iso-ir-101", (void *) &lxb_encoding_res_map[14], 10, 125}, {"iso-8859-11", (void *) &lxb_encoding_res_map[40], 11, 0},
|
157
|
+
{"csiso2022jp", (void *) &lxb_encoding_res_map[8], 11, 0}, {"cskoi8r", (void *) &lxb_encoding_res_map[22], 7, 92},
|
158
|
+
{"dos-874", (void *) &lxb_encoding_res_map[40], 7, 0}, {"iso_8859-6", (void *) &lxb_encoding_res_map[18], 10, 96},
|
159
|
+
{"windows-874", (void *) &lxb_encoding_res_map[40], 11, 0}, {"utf-16", (void *) &lxb_encoding_res_map[26], 6, 135},
|
160
|
+
{"iso-ir-126", (void *) &lxb_encoding_res_map[19], 10, 0}, {"asmo-708", (void *) &lxb_encoding_res_map[18], 8, 136},
|
161
|
+
{"iso-ir-58", (void *) &lxb_encoding_res_map[6], 9, 138}, {"iso-8859-8", (void *) &lxb_encoding_res_map[20], 10, 140},
|
162
|
+
{"koi8_r", (void *) &lxb_encoding_res_map[22], 6, 0}, {"x-mac-cyrillic", (void *) &lxb_encoding_res_map[41], 14, 0},
|
163
|
+
{"cp1251", (void *) &lxb_encoding_res_map[32], 6, 144}, {"ansi_x3.4-1968", (void *) &lxb_encoding_res_map[33], 14, 0},
|
164
|
+
{"iso_8859-3:1988", (void *) &lxb_encoding_res_map[15], 15, 146}, {"ks_c_5601-1987", (void *) &lxb_encoding_res_map[5], 14, 0},
|
165
|
+
{"sun_eu_greek", (void *) &lxb_encoding_res_map[19], 12, 0}, {"csisolatin1", (void *) &lxb_encoding_res_map[33], 11, 0},
|
166
|
+
{"koi8-ru", (void *) &lxb_encoding_res_map[23], 7, 0}, {"chinese", (void *) &lxb_encoding_res_map[6], 7, 0},
|
167
|
+
{"cp1253", (void *) &lxb_encoding_res_map[34], 6, 154}, {"visual", (void *) &lxb_encoding_res_map[20], 6, 160},
|
168
|
+
{"csisolatincyrillic", (void *) &lxb_encoding_res_map[17], 18, 0}, {"csiso88596e", (void *) &lxb_encoding_res_map[18], 11, 161},
|
169
|
+
{"iso-8859-6-e", (void *) &lxb_encoding_res_map[18], 12, 162}, {"csisolatin3", (void *) &lxb_encoding_res_map[15], 11, 0},
|
170
|
+
{"windows-1255", (void *) &lxb_encoding_res_map[36], 12, 0}, {"x-cp1252", (void *) &lxb_encoding_res_map[33], 8, 0},
|
171
|
+
{"csbig5", (void *) &lxb_encoding_res_map[3], 6, 163}, {"cn-big5", (void *) &lxb_encoding_res_map[3], 7, 166},
|
172
|
+
{"iso8859-13", (void *) &lxb_encoding_res_map[10], 10, 175}, {"iso-8859-13", (void *) &lxb_encoding_res_map[10], 11, 180},
|
173
|
+
{"iso885911", (void *) &lxb_encoding_res_map[40], 9, 0}, {"csisolatin5", (void *) &lxb_encoding_res_map[35], 11, 0},
|
174
|
+
{"us-ascii", (void *) &lxb_encoding_res_map[33], 8, 0}, {"iso-8859-1", (void *) &lxb_encoding_res_map[33], 10, 128},
|
175
|
+
{"cp1257", (void *) &lxb_encoding_res_map[38], 6, 0}, {"l4", (void *) &lxb_encoding_res_map[16], 2, 0},
|
176
|
+
{"iso_8859-1", (void *) &lxb_encoding_res_map[33], 10, 132}, {"gbk", (void *) &lxb_encoding_res_map[6], 3, 181},
|
177
|
+
{"x-mac-roman", (void *) &lxb_encoding_res_map[29], 11, 0}, {"greek", (void *) &lxb_encoding_res_map[19], 5, 187},
|
178
|
+
{"iso8859-11", (void *) &lxb_encoding_res_map[40], 10, 0}, {"cp819", (void *) &lxb_encoding_res_map[33], 5, 191},
|
179
|
+
{"x-mac-ukrainian", (void *) &lxb_encoding_res_map[41], 15, 0}, {"windows-1254", (void *) &lxb_encoding_res_map[35], 12, 0},
|
180
|
+
{"iso88598", (void *) &lxb_encoding_res_map[20], 8, 0}, {"big5-hkscs", (void *) &lxb_encoding_res_map[3], 10, 192},
|
181
|
+
{"iso8859-8", (void *) &lxb_encoding_res_map[20], 9, 0}, {"x-cp1253", (void *) &lxb_encoding_res_map[34], 8, 193},
|
182
|
+
{"iso-ir-138", (void *) &lxb_encoding_res_map[20], 10, 142}, {"csisolatingreek", (void *) &lxb_encoding_res_map[19], 15, 0},
|
183
|
+
{"iso_8859-8", (void *) &lxb_encoding_res_map[20], 10, 143}, {"iso-ir-148", (void *) &lxb_encoding_res_map[35], 10, 0},
|
184
|
+
{"tis-620", (void *) &lxb_encoding_res_map[40], 7, 145}, {"cyrillic", (void *) &lxb_encoding_res_map[17], 8, 0},
|
185
|
+
{"iso_8859-4:1988", (void *) &lxb_encoding_res_map[16], 15, 147}, {"iso_8859-5:1988", (void *) &lxb_encoding_res_map[17], 15, 149},
|
186
|
+
{"ks_c_5601-1989", (void *) &lxb_encoding_res_map[5], 14, 0}, {"iso_8859-8:1988", (void *) &lxb_encoding_res_map[20], 15, 0},
|
187
|
+
{"iso88595", (void *) &lxb_encoding_res_map[17], 8, 0}, {"iso885915", (void *) &lxb_encoding_res_map[12], 9, 194},
|
188
|
+
{"x-gbk", (void *) &lxb_encoding_res_map[6], 5, 195}, {"iso-8859-15", (void *) &lxb_encoding_res_map[12], 11, 203},
|
189
|
+
{"utf-16be", (void *) &lxb_encoding_res_map[25], 8, 155}, {"utf-16le", (void *) &lxb_encoding_res_map[26], 8, 157},
|
190
|
+
{"iso-2022-cn", (void *) &lxb_encoding_res_map[30], 11, 0}, {"csisolatinarabic", (void *) &lxb_encoding_res_map[18], 16, 0},
|
191
|
+
{"windows-1257", (void *) &lxb_encoding_res_map[38], 12, 0}, {"x-user-defined", (void *) &lxb_encoding_res_map[42], 14, 0},
|
192
|
+
{"x-cp1256", (void *) &lxb_encoding_res_map[37], 8, 0}, {"csiso88598e", (void *) &lxb_encoding_res_map[20], 11, 0},
|
193
|
+
{"iso-8859-8-e", (void *) &lxb_encoding_res_map[20], 12, 0}, {"cp1255", (void *) &lxb_encoding_res_map[36], 6, 165},
|
194
|
+
{"ms_kanji", (void *) &lxb_encoding_res_map[24], 8, 0}, {"iso88593", (void *) &lxb_encoding_res_map[15], 8, 0},
|
195
|
+
{"iso885913", (void *) &lxb_encoding_res_map[10], 9, 170}, {"x-cp1250", (void *) &lxb_encoding_res_map[31], 8, 0},
|
196
|
+
{"csshiftjis", (void *) &lxb_encoding_res_map[24], 10, 0}, {"hebrew", (void *) &lxb_encoding_res_map[20], 6, 204},
|
197
|
+
{"iso8859-3", (void *) &lxb_encoding_res_map[15], 9, 0}, {"ascii", (void *) &lxb_encoding_res_map[33], 5, 0},
|
198
|
+
{"iso885910", (void *) &lxb_encoding_res_map[9], 9, 0}, {"iso8859-10", (void *) &lxb_encoding_res_map[9], 10, 205},
|
199
|
+
{"iso-8859-10", (void *) &lxb_encoding_res_map[9], 11, 0}, {"iso-8859-3", (void *) &lxb_encoding_res_map[15], 10, 177},
|
200
|
+
{"ms932", (void *) &lxb_encoding_res_map[24], 5, 0}, {"iso_8859-3", (void *) &lxb_encoding_res_map[15], 10, 0},
|
201
|
+
{"iso-8859-6-i", (void *) &lxb_encoding_res_map[18], 12, 207}, {"l3", (void *) &lxb_encoding_res_map[15], 2, 208},
|
202
|
+
{"cseucpkdfmtjapanese", (void *) &lxb_encoding_res_map[4], 19, 0}, {"korean", (void *) &lxb_encoding_res_map[5], 6, 185},
|
203
|
+
{"iso88597", (void *) &lxb_encoding_res_map[19], 8, 0}, {"latin3", (void *) &lxb_encoding_res_map[15], 6, 211},
|
204
|
+
{"iso-ir-157", (void *) &lxb_encoding_res_map[9], 10, 212}, {"csiso88596i", (void *) &lxb_encoding_res_map[18], 11, 186},
|
205
|
+
{"csiso88598i", (void *) &lxb_encoding_res_map[21], 11, 0}, {"latin4", (void *) &lxb_encoding_res_map[16], 6, 0},
|
206
|
+
{"iso-2022-jp", (void *) &lxb_encoding_res_map[8], 11, 0}, {"iso_8859-2:1987", (void *) &lxb_encoding_res_map[14], 15, 215},
|
207
|
+
{"csisolatinhebrew", (void *) &lxb_encoding_res_map[20], 16, 0}, {"csksc56011987", (void *) &lxb_encoding_res_map[5], 13, 0},
|
208
|
+
{"windows-1256", (void *) &lxb_encoding_res_map[37], 12, 0}, {"csisolatin9", (void *) &lxb_encoding_res_map[12], 11, 0},
|
209
|
+
{"iso8859-5", (void *) &lxb_encoding_res_map[17], 9, 0}, {"iso8859-15", (void *) &lxb_encoding_res_map[12], 10, 196},
|
210
|
+
{"iso-8859-5", (void *) &lxb_encoding_res_map[17], 10, 198}, {"x-cp1254", (void *) &lxb_encoding_res_map[35], 8, 0},
|
211
|
+
{"iso_8859-5", (void *) &lxb_encoding_res_map[17], 10, 0}, {"cp1250", (void *) &lxb_encoding_res_map[31], 6, 218},
|
212
|
+
{"gb18030", (void *) &lxb_encoding_res_map[28], 7, 0}, {"utf8", (void *) &lxb_encoding_res_map[27], 4, 0},
|
213
|
+
{"utf-8", (void *) &lxb_encoding_res_map[27], 5, 219}, {"iso_8859-15", (void *) &lxb_encoding_res_map[12], 11, 0},
|
214
|
+
{"x-cp1257", (void *) &lxb_encoding_res_map[38], 8, 0}, {"iso-ir-110", (void *) &lxb_encoding_res_map[16], 10, 206},
|
215
|
+
{"iso-ir-100", (void *) &lxb_encoding_res_map[33], 10, 0}, {"iso-8859-8-i", (void *) &lxb_encoding_res_map[21], 12, 0},
|
216
|
+
{"mac", (void *) &lxb_encoding_res_map[29], 3, 209}, {"big5", (void *) &lxb_encoding_res_map[3], 4, 210},
|
217
|
+
{"windows-1258", (void *) &lxb_encoding_res_map[39], 12, 0}, {"iso8859-7", (void *) &lxb_encoding_res_map[19], 9, 0},
|
218
|
+
{"iso-ir-127", (void *) &lxb_encoding_res_map[18], 10, 213}, {"iso-8859-7", (void *) &lxb_encoding_res_map[19], 10, 214},
|
219
|
+
{"iso_8859-7", (void *) &lxb_encoding_res_map[19], 10, 0}, {"iso_8859-6:1987", (void *) &lxb_encoding_res_map[18], 15, 216},
|
220
|
+
{"iso_8859-7:1987", (void *) &lxb_encoding_res_map[19], 15, 217}, {"iso_8859-1:1987", (void *) &lxb_encoding_res_map[33], 15, 0},
|
221
|
+
{"windows-949", (void *) &lxb_encoding_res_map[5], 11, 0}, {"macintosh", (void *) &lxb_encoding_res_map[29], 9, 0}
|
222
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (C) 2019-2020 Alexander Borisov
|
3
|
+
*
|
4
|
+
* Author: Alexander Borisov <borisov@lexbor.com>
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*
|
8
|
+
* Caution!
|
9
|
+
* This file generated by the script "utils/lexbor/encoding/res.py"!
|
10
|
+
* Do not change this file!
|
11
|
+
*/
|
12
|
+
|
13
|
+
|
14
|
+
#ifndef LEXBOR_ENCODING_RES_H
|
15
|
+
#define LEXBOR_ENCODING_RES_H
|
16
|
+
|
17
|
+
#ifdef __cplusplus
|
18
|
+
extern "C" {
|
19
|
+
#endif
|
20
|
+
|
21
|
+
|
22
|
+
#include "lexbor/encoding/base.h"
|
23
|
+
#include "lexbor/core/shs.h"
|
24
|
+
|
25
|
+
|
26
|
+
LXB_EXTERN const lxb_encoding_data_t lxb_encoding_res_map[LXB_ENCODING_LAST_ENTRY];
|
27
|
+
LXB_EXTERN const lexbor_shs_entry_t lxb_encoding_res_shs_entities[220];
|
28
|
+
|
29
|
+
|
30
|
+
#ifdef __cplusplus
|
31
|
+
} /* extern "C" */
|
32
|
+
#endif
|
33
|
+
|
34
|
+
#endif /* LEXBOR_ENCODING_RES_H */
|