source: proto/charsetcompiler/inputs/ICXML_UTF16lo @ 3903

Last change on this file since 3903 was 3352, checked in by cameron, 6 years ago

UTF-16 defs for icXML

File size: 808 bytes
Line 
1# ICXML_UTF16lo
2#
3
4#
5# For FFFE/FFFF recognition in XML
6# If the low byte matches xFE_FF, then look for 0xFFFE/F in
7# the source.
8xFE_FF = [\xFE-\xFF]
9
10# Control Characters and whitespace
11x00_x1F = [\x00-\x1F]
12lex.CR = [\x0D]
13lex.LF = [\x0A]
14lex.WS = [\x0D\x0A\x09\x20]
15#
16# XML Lexical Items
17lex.RefStart = [&]
18lex.Semicolon = [;]
19lex.LAngle = [<]
20lex.RAngle = [>]
21lex.LBracket = [[]
22lex.RBracket = []]
23lex.Exclam = [!]
24lex.QMark = [?]
25lex.Hyphen =  [-]
26lex.Equals = [=]
27lex.SQuote = [']
28lex.DQuote = ["]
29lex.Slash = [/]
30lex.Hash = [#]
31lex.NameScan = [-_.0-:A-Za-z\x80-\xFF]
32#
33# XML 1.1
34DEL = [\x7F]
35#
36# Non-ASCII
37#
38# For C1 controls 0u80-0u9F in XML 1.1
39x80_x9F = [\x80-\x9F]
40lex.NEL = [\x85]
41
42#
43# For XML 1.1 LS = 0x2028
44# If the low byte matches x28, then look for 0x2028 in
45# the source.
46x28 = [\x28]
47
48
Note: See TracBrowser for help on using the repository browser.