Annotation of embedaddon/pcre/testdata/testinput18, revision 1.1.1.2
1.1 misho 1: /-- This set of tests is for UTF-16 support, and is relevant only to the 16-bit
2: library. --/
3:
4: /xxx/8?DZSS
5:
6: /abc/8
7: ]
8:
9: /X(\C{3})/8
10: X\x{11234}Y
11:
12: /X(\C{4})/8
13: X\x{11234}YZ
14:
15: /X\C*/8
16: XYZabcdce
17:
18: /X\C*?/8
19: XYZabcde
20:
21: /X\C{3,5}/8
22: Xabcdefg
23: X\x{11234}Y
24: X\x{11234}YZ
25: X\x{11234}\x{512}
26: X\x{11234}\x{512}YZ
27: X\x{11234}\x{512}\x{11234}Z
28:
29: /X\C{3,5}?/8
30: Xabcdefg
31: X\x{11234}Y
32: X\x{11234}YZ
33: X\x{11234}\x{512}YZ
34: *** Failers
35: X\x{11234}
36:
37: /a\Cb/8
38: aXb
39: a\nb
40:
41: /a\C\Cb/8
42: a\x{12257}b
43: ** Failers
44: a\x{100}b
45:
46: /ab\Cde/8
47: abXde
48:
49: /-- Check maximum character size --/
50:
51: /\x{ffff}/8DZ
52:
53: /\x{10000}/8DZ
54:
55: /\x{100}/8DZ
56:
57: /\x{1000}/8DZ
58:
59: /\x{10000}/8DZ
60:
61: /\x{100000}/8DZ
62:
63: /\x{10ffff}/8DZ
64:
65: /[\x{ff}]/8DZ
66:
67: /[\x{100}]/8DZ
68:
69: /\x80/8DZ
70:
71: /\xff/8DZ
72:
73: /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
74: \x{D55c}\x{ad6d}\x{C5B4}
75:
76: /\x{65e5}\x{672c}\x{8a9e}/DZ8
77: \x{65e5}\x{672c}\x{8a9e}
78:
79: /\x{80}/DZ8
80:
81: /\x{084}/DZ8
82:
83: /\x{104}/DZ8
84:
85: /\x{861}/DZ8
86:
87: /\x{212ab}/DZ8
88:
89: /-- This one is here not because it's different to Perl, but because the way
90: the captured single-byte is displayed. (In Perl it becomes a character, and you
91: can't tell the difference.) --/
92:
93: /X(\C)(.*)/8
94: X\x{1234}
95: X\nabc
96:
97: /-- This one is here because Perl gives out a grumbly error message (quite
98: correctly, but that messes up comparisons). --/
99:
100: /a\Cb/8
101: *** Failers
102: a\x{100}b
103:
104: /[^ab\xC0-\xF0]/8SDZ
105: \x{f1}
106: \x{bf}
107: \x{100}
108: \x{1000}
109: *** Failers
110: \x{c0}
111: \x{f0}
112:
113: /Ā{3,4}/8SDZ
114: \x{100}\x{100}\x{100}\x{100\x{100}
115:
116: /(\x{100}+|x)/8SDZ
117:
118: /(\x{100}*a|x)/8SDZ
119:
120: /(\x{100}{0,2}a|x)/8SDZ
121:
122: /(\x{100}{1,2}a|x)/8SDZ
123:
124: /\x{100}/8DZ
125:
126: /a\x{100}\x{101}*/8DZ
127:
128: /a\x{100}\x{101}+/8DZ
129:
130: /[^\x{c4}]/DZ
131:
132: /[\x{100}]/8DZ
133: \x{100}
134: Z\x{100}
135: \x{100}Z
136: *** Failers
137:
138: /[\xff]/DZ8
139: >\x{ff}<
140:
141: /[^\xff]/8DZ
142:
143: /\x{100}abc(xyz(?1))/8DZ
144:
145: /\777/8I
146: \x{1ff}
147: \777
148:
149: /\x{100}+\x{200}/8DZ
150:
151: /\x{100}+X/8DZ
152:
153: /^[\QĀ\E-\QŐ\E/BZ8
154:
155: /X/8
156: \x{0}\x{d7ff}\x{e000}\x{10ffff}
157: \x{d800}
158: \x{d800}\?
159: \x{da00}
160: \x{da00}\?
161: \x{dc00}
162: \x{dc00}\?
163: \x{de00}
164: \x{de00}\?
165: \x{dfff}
166: \x{dfff}\?
167: \x{110000}
168: \x{d800}\x{1234}
169: \x{fffe}
170:
171: /(*UTF16)\x{11234}/
172: abcd\x{11234}pqr
173:
174: /(*CRLF)(*UTF16)(*BSR_UNICODE)a\Rb/I
175:
176: /\h/SI8
177: ABC\x{09}
178: ABC\x{20}
179: ABC\x{a0}
180: ABC\x{1680}
181: ABC\x{180e}
182: ABC\x{2000}
183: ABC\x{202f}
184: ABC\x{205f}
185: ABC\x{3000}
186:
187: /\v/SI8
188: ABC\x{0a}
189: ABC\x{0b}
190: ABC\x{0c}
191: ABC\x{0d}
192: ABC\x{85}
193: ABC\x{2028}
194:
195: /\h*A/SI8
196: CDBABC
1.1.1.2 ! misho 197: \x{2000}ABC
! 198:
! 199: /\R*A/SI8
! 200: CDBABC
! 201: \x{2028}A
1.1 misho 202:
203: /\v+A/SI8
204:
205: /\s?xxx\s/8SI
206:
207: /\sxxx\s/I8ST1
208: AB\x{85}xxx\x{a0}XYZ
209: AB\x{a0}xxx\x{85}XYZ
210:
211: /\S \S/I8ST1
212: \x{a2} \x{84}
213: A Z
214:
215: /a+/8
216: a\x{123}aa\>1
217: a\x{123}aa\>2
218: a\x{123}aa\>3
219: a\x{123}aa\>4
220: a\x{123}aa\>5
221: a\x{123}aa\>6
222:
223: /\x{1234}+/iS8I
224:
225: /\x{1234}+?/iS8I
226:
227: /\x{1234}++/iS8I
228:
229: /\x{1234}{2}/iS8I
230:
231: /[^\x{c4}]/8DZ
232:
233: /X+\x{200}/8DZ
234:
235: /\R/SI8
236:
237: /-- Check bad offset --/
238:
239: /a/8
240: \x{10000}\>1
241: \x{10000}ab\>2
242: \x{10000}ab\>3
243: \x{10000}ab\>4
244: \x{10000}ab\>5
245:
246: //8
247:
1.1.1.2 ! misho 248: /\w+\x{C4}/8BZ
! 249: a\x{C4}\x{C4}
! 250:
! 251: /\w+\x{C4}/8BZT1
! 252: a\x{C4}\x{C4}
! 253:
! 254: /\W+\x{C4}/8BZ
! 255: !\x{C4}
! 256:
! 257: /\W+\x{C4}/8BZT1
! 258: !\x{C4}
! 259:
! 260: /\W+\x{A1}/8BZ
! 261: !\x{A1}
! 262:
! 263: /\W+\x{A1}/8BZT1
! 264: !\x{A1}
! 265:
! 266: /X\s+\x{A0}/8BZ
! 267: X\x20\x{A0}\x{A0}
! 268:
! 269: /X\s+\x{A0}/8BZT1
! 270: X\x20\x{A0}\x{A0}
! 271:
! 272: /\S+\x{A0}/8BZ
! 273: X\x{A0}\x{A0}
! 274:
! 275: /\S+\x{A0}/8BZT1
! 276: X\x{A0}\x{A0}
! 277:
! 278: /\x{a0}+\s!/8BZ
! 279: \x{a0}\x20!
! 280:
! 281: /\x{a0}+\s!/8BZT1
! 282: \x{a0}\x20!
! 283:
1.1 misho 284: /-- End of testinput18 --/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>