/[pcre]/code/trunk/testdata/testinput15
ViewVC logotype

Contents of /code/trunk/testdata/testinput15

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1098 - (show annotations)
Tue Oct 16 15:56:18 2012 UTC (6 years, 11 months ago) by chpe
File size: 5149 byte(s)
pcre32: utf: Reject all non-characters and not just 0xfffe
1 /-- This set of tests is for UTF-8 support, and is relevant only to the 8-bit
2 library. --/
3
4 /X(\C{3})/8
5 X\x{1234}
6
7 /X(\C{4})/8
8 X\x{1234}YZ
9
10 /X\C*/8
11 XYZabcdce
12
13 /X\C*?/8
14 XYZabcde
15
16 /X\C{3,5}/8
17 Xabcdefg
18 X\x{1234}
19 X\x{1234}YZ
20 X\x{1234}\x{512}
21 X\x{1234}\x{512}YZ
22
23 /X\C{3,5}?/8
24 Xabcdefg
25 X\x{1234}
26 X\x{1234}YZ
27 X\x{1234}\x{512}
28
29 /a\Cb/8
30 aXb
31 a\nb
32
33 /a\C\Cb/8
34 a\x{100}b
35
36 /ab\Cde/8
37 abXde
38
39 /a\C\Cb/8
40 a\x{100}b
41 ** Failers
42 a\x{12257}b
43
44 /[]/8
45
46 //8
47
48 /xxx/8
49
50 /xxx/8?DZSS
51
52 /abc/8
53 \xc3]
54 \xc3
55 \xc3\xc3\xc3
56 \xc3\xc3\xc3\?
57 \xe1\x88
58 \P\xe1\x88
59 \P\P\xe1\x88
60 XX\xea
61 \O0XX\xea
62 \O1XX\xea
63 \O2XX\xea
64 XX\xf1
65 XX\xf8
66 XX\xfc
67 ZZ\xea\xaf\x20YY
68 ZZ\xfd\xbf\xbf\x2f\xbf\xbfYY
69 ZZ\xfd\xbf\xbf\xbf\x2f\xbfYY
70 ZZ\xfd\xbf\xbf\xbf\xbf\x2fYY
71 ZZ\xffYY
72 ZZ\xfeYY
73
74 /anything/8
75 \xc0\x80
76 \xc1\x8f
77 \xe0\x9f\x80
78 \xf0\x8f\x80\x80
79 \xf8\x87\x80\x80\x80
80 \xfc\x83\x80\x80\x80\x80
81 \xfe\x80\x80\x80\x80\x80
82 \xff\x80\x80\x80\x80\x80
83 \xc3\x8f
84 \xe0\xaf\x80
85 \xe1\x80\x80
86 \xf0\x9f\x80\x80
87 \xf1\x8f\x80\x80
88 \xf8\x88\x80\x80\x80
89 \xf9\x87\x80\x80\x80
90 \xfc\x84\x80\x80\x80\x80
91 \xfd\x83\x80\x80\x80\x80
92 \?\xf8\x88\x80\x80\x80
93 \?\xf9\x87\x80\x80\x80
94 \?\xfc\x84\x80\x80\x80\x80
95 \?\xfd\x83\x80\x80\x80\x80
96
97 /noncharacter/8
98 \x{fffe}
99 \x{ffff}
100 \x{1fffe}
101 \x{1ffff}
102 \x{2fffe}
103 \x{2ffff}
104 \x{3fffe}
105 \x{3ffff}
106 \x{4fffe}
107 \x{4ffff}
108 \x{5fffe}
109 \x{5ffff}
110 \x{6fffe}
111 \x{6ffff}
112 \x{7fffe}
113 \x{7ffff}
114 \x{8fffe}
115 \x{8ffff}
116 \x{9fffe}
117 \x{9ffff}
118 \x{afffe}
119 \x{affff}
120 \x{bfffe}
121 \x{bffff}
122 \x{cfffe}
123 \x{cffff}
124 \x{dfffe}
125 \x{dffff}
126 \x{efffe}
127 \x{effff}
128 \x{ffffe}
129 \x{fffff}
130 \x{10fffe}
131 \x{10ffff}
132 \x{fdd0}
133 \x{fdd1}
134 \x{fdd2}
135 \x{fdd3}
136 \x{fdd4}
137 \x{fdd5}
138 \x{fdd6}
139 \x{fdd7}
140 \x{fdd8}
141 \x{fdd9}
142 \x{fdda}
143 \x{fddb}
144 \x{fddc}
145 \x{fddd}
146 \x{fdde}
147 \x{fddf}
148 \x{fde0}
149 \x{fde1}
150 \x{fde2}
151 \x{fde3}
152 \x{fde4}
153 \x{fde5}
154 \x{fde6}
155 \x{fde7}
156 \x{fde8}
157 \x{fde9}
158 \x{fdea}
159 \x{fdeb}
160 \x{fdec}
161 \x{fded}
162 \x{fdee}
163 \x{fdef}
164
165 /\x{100}/8DZ
166
167 /\x{1000}/8DZ
168
169 /\x{10000}/8DZ
170
171 /\x{100000}/8DZ
172
173 /\x{10ffff}/8DZ
174
175 /[\x{ff}]/8DZ
176
177 /[\x{100}]/8DZ
178
179 /\x80/8DZ
180
181 /\xff/8DZ
182
183 /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
184 \x{D55c}\x{ad6d}\x{C5B4}
185
186 /\x{65e5}\x{672c}\x{8a9e}/DZ8
187 \x{65e5}\x{672c}\x{8a9e}
188
189 /\x{80}/DZ8
190
191 /\x{084}/DZ8
192
193 /\x{104}/DZ8
194
195 /\x{861}/DZ8
196
197 /\x{212ab}/DZ8
198
199 /-- This one is here not because it's different to Perl, but because the way
200 the captured single-byte is displayed. (In Perl it becomes a character, and you
201 can't tell the difference.) --/
202
203 /X(\C)(.*)/8
204 X\x{1234}
205 X\nabc
206
207 /-- This one is here because Perl gives out a grumbly error message (quite
208 correctly, but that messes up comparisons). --/
209
210 /a\Cb/8
211 *** Failers
212 a\x{100}b
213
214 /[^ab\xC0-\xF0]/8SDZ
215 \x{f1}
216 \x{bf}
217 \x{100}
218 \x{1000}
219 *** Failers
220 \x{c0}
221 \x{f0}
222
223 /Ā{3,4}/8SDZ
224 \x{100}\x{100}\x{100}\x{100\x{100}
225
226 /(\x{100}+|x)/8SDZ
227
228 /(\x{100}*a|x)/8SDZ
229
230 /(\x{100}{0,2}a|x)/8SDZ
231
232 /(\x{100}{1,2}a|x)/8SDZ
233
234 /\x{100}/8DZ
235
236 /a\x{100}\x{101}*/8DZ
237
238 /a\x{100}\x{101}+/8DZ
239
240 /[^\x{c4}]/DZ
241
242 /[\x{100}]/8DZ
243 \x{100}
244 Z\x{100}
245 \x{100}Z
246 *** Failers
247
248 /[\xff]/DZ8
249 >\x{ff}<
250
251 /[^\xff]/8DZ
252
253 /\x{100}abc(xyz(?1))/8DZ
254
255 /a\x{1234}b/P8
256 a\x{1234}b
257
258 /\777/8I
259 \x{1ff}
260 \777
261
262 /\x{100}+\x{200}/8DZ
263
264 /\x{100}+X/8DZ
265
266 /^[\QĀ\E-\QŐ\E/BZ8
267
268 /-- This tests the stricter UTF-8 check according to RFC 3629. --/
269
270 /X/8
271 \x{0}\x{d7ff}\x{e000}\x{10ffff}
272 \x{d800}
273 \x{d800}\?
274 \x{da00}
275 \x{da00}\?
276 \x{dfff}
277 \x{dfff}\?
278 \x{110000}
279 \x{110000}\?
280 \x{2000000}
281 \x{2000000}\?
282 \x{7fffffff}
283 \x{7fffffff}\?
284
285 /(*UTF8)\x{1234}/
286 abcd\x{1234}pqr
287
288 /(*CRLF)(*UTF8)(*BSR_UNICODE)a\Rb/I
289
290 /\h/SI8
291 ABC\x{09}
292 ABC\x{20}
293 ABC\x{a0}
294 ABC\x{1680}
295 ABC\x{180e}
296 ABC\x{2000}
297 ABC\x{202f}
298 ABC\x{205f}
299 ABC\x{3000}
300
301 /\v/SI8
302 ABC\x{0a}
303 ABC\x{0b}
304 ABC\x{0c}
305 ABC\x{0d}
306 ABC\x{85}
307 ABC\x{2028}
308
309 /\h*A/SI8
310 CDBABC
311
312 /\v+A/SI8
313
314 /\s?xxx\s/8SI
315
316 /\sxxx\s/I8ST1
317 AB\x{85}xxx\x{a0}XYZ
318 AB\x{a0}xxx\x{85}XYZ
319
320 /\S \S/I8ST1
321 \x{a2} \x{84}
322 A Z
323
324 /a+/8
325 a\x{123}aa\>1
326 a\x{123}aa\>2
327 a\x{123}aa\>3
328 a\x{123}aa\>4
329 a\x{123}aa\>5
330 a\x{123}aa\>6
331
332 /\x{1234}+/iS8I
333
334 /\x{1234}+?/iS8I
335
336 /\x{1234}++/iS8I
337
338 /\x{1234}{2}/iS8I
339
340 /[^\x{c4}]/8DZ
341
342 /X+\x{200}/8DZ
343
344 /\R/SI8
345
346 /\777/8DZ
347
348 /\w+\x{C4}/8BZ
349 a\x{C4}\x{C4}
350
351 /\w+\x{C4}/8BZT1
352 a\x{C4}\x{C4}
353
354 /\W+\x{C4}/8BZ
355 !\x{C4}
356
357 /\W+\x{C4}/8BZT1
358 !\x{C4}
359
360 /\W+\x{A1}/8BZ
361 !\x{A1}
362
363 /\W+\x{A1}/8BZT1
364 !\x{A1}
365
366 /X\s+\x{A0}/8BZ
367 X\x20\x{A0}\x{A0}
368
369 /X\s+\x{A0}/8BZT1
370 X\x20\x{A0}\x{A0}
371
372 /\S+\x{A0}/8BZ
373 X\x{A0}\x{A0}
374
375 /\S+\x{A0}/8BZT1
376 X\x{A0}\x{A0}
377
378 /\x{a0}+\s!/8BZ
379 \x{a0}\x20!
380
381 /\x{a0}+\s!/8BZT1
382 \x{a0}\x20!
383
384 /-- End of testinput15 --/

  ViewVC Help
Powered by ViewVC 1.1.5