/[pcre]/code/branches/pcre16/testdata/testinput5
ViewVC logotype

Contents of /code/branches/pcre16/testdata/testinput5

Parent Directory Parent Directory | Revision Log Revision Log


Revision 825 - (show annotations)
Mon Dec 26 21:23:17 2011 UTC (7 years, 7 months ago) by zherczeg
File size: 9363 byte(s)
Supporting all newlines, horizontal and vertical spaces in 16 bit mode
1 /-- This set of tests checks the API, internals, and non-Perl stuff for UTF
2 support, excluding Unicode properties. However, tests that give different
3 results in 8-bit and 16-bit modes are excluded (see tests 16 and 17). --/
4
5 /\x{110000}/8DZ
6
7 /\x{ffffffff}/8
8
9 /\x{100000000}/8
10
11 /\x{d800}/8
12
13 /\x{dfff}/8
14
15 /\x{d7ff}/8
16
17 /\x{e000}/8
18
19 /^\x{100}a\x{1234}/8
20 \x{100}a\x{1234}bcd
21
22 /\x{0041}\x{2262}\x{0391}\x{002e}/DZ8
23 \x{0041}\x{2262}\x{0391}\x{002e}
24
25 /.{3,5}X/DZ8
26 \x{212ab}\x{212ab}\x{212ab}\x{861}X
27
28 /.{3,5}?/DZ8
29 \x{212ab}\x{212ab}\x{212ab}\x{861}
30
31 /(?<=\C)X/8
32 Should produce an error diagnostic
33
34 /^[ab]/8DZ
35 bar
36 *** Failers
37 c
38 \x{ff}
39 \x{100}
40
41 /^[^ab]/8DZ
42 c
43 \x{ff}
44 \x{100}
45 *** Failers
46 aaa
47
48 /\x{100}*(\d+|"(?1)")/8
49 1234
50 "1234"
51 \x{100}1234
52 "\x{100}1234"
53 \x{100}\x{100}12ab
54 \x{100}\x{100}"12"
55 *** Failers
56 \x{100}\x{100}abcd
57
58 /\x{100}*/8DZ
59
60 /a\x{100}*/8DZ
61
62 /ab\x{100}*/8DZ
63
64 /\x{100}*A/8DZ
65 A
66
67 /\x{100}*\d(?R)/8DZ
68
69 /[Z\x{100}]/8DZ
70 Z\x{100}
71 \x{100}
72 \x{100}Z
73 *** Failers
74
75 /[\x{200}-\x{100}]/8
76
77 /[Ā-Ą]/8
78 \x{100}
79 \x{104}
80 *** Failers
81 \x{105}
82 \x{ff}
83
84 /[z-\x{100}]/8DZ
85
86 /[z\Qa-d]Ā\E]/8DZ
87 \x{100}
88 Ā
89
90 /[\xFF]/DZ
91 >\xff<
92
93 /[^\xFF]/DZ
94
95 /[Ä-Ü]/8
96 Ö # Matches without Study
97 \x{d6}
98
99 /[Ä-Ü]/8S
100 Ö <-- Same with Study
101 \x{d6}
102
103 /[\x{c4}-\x{dc}]/8
104 Ö # Matches without Study
105 \x{d6}
106
107 /[\x{c4}-\x{dc}]/8S
108 Ö <-- Same with Study
109 \x{d6}
110
111 /[^\x{100}]abc(xyz(?1))/8DZ
112
113 /[ab\x{100}]abc(xyz(?1))/8DZ
114
115 /(\x{100}(b(?2)c))?/DZ8
116
117 /(\x{100}(b(?2)c)){0,2}/DZ8
118
119 /(\x{100}(b(?1)c))?/DZ8
120
121 /(\x{100}(b(?1)c)){0,2}/DZ8
122
123 /\W/8
124 A.B
125 A\x{100}B
126
127 /\w/8
128 \x{100}X
129
130 /^\ሴ/8DZ
131
132 /\777/I
133
134 /\x{100}*\d/8DZ
135
136 /\x{100}*\s/8DZ
137
138 /\x{100}*\w/8DZ
139
140 /\x{100}*\D/8DZ
141
142 /\x{100}*\S/8DZ
143
144 /\x{100}*\W/8DZ
145
146 /()()()()()()()()()()
147 ()()()()()()()()()()
148 ()()()()()()()()()()
149 ()()()()()()()()()()
150 A (x) (?41) B/8x
151 AxxB
152
153 /^[\x{100}\E-\Q\E\x{150}]/BZ8
154
155 /^[\QĀ\E-\QŐ\E]/BZ8
156
157 /^abc./mgx8<any>
158 abc1 \x0aabc2 \x0babc3xx \x0cabc4 \x0dabc5xx \x0d\x0aabc6 \x{0085}abc7 \x{2028}abc8 \x{2029}abc9 JUNK
159
160 /abc.$/mgx8<any>
161 abc1\x0a abc2\x0b abc3\x0c abc4\x0d abc5\x0d\x0a abc6\x{0085} abc7\x{2028} abc8\x{2029} abc9
162
163 /^a\Rb/8<bsr_unicode>
164 a\nb
165 a\rb
166 a\r\nb
167 a\x0bb
168 a\x0cb
169 a\x{85}b
170 a\x{2028}b
171 a\x{2029}b
172 ** Failers
173 a\n\rb
174
175 /^a\R*b/8<bsr_unicode>
176 ab
177 a\nb
178 a\rb
179 a\r\nb
180 a\x0bb
181 a\x0c\x{2028}\x{2029}b
182 a\x{85}b
183 a\n\rb
184 a\n\r\x{85}\x0cb
185
186 /^a\R+b/8<bsr_unicode>
187 a\nb
188 a\rb
189 a\r\nb
190 a\x0bb
191 a\x0c\x{2028}\x{2029}b
192 a\x{85}b
193 a\n\rb
194 a\n\r\x{85}\x0cb
195 ** Failers
196 ab
197
198 /^a\R{1,3}b/8<bsr_unicode>
199 a\nb
200 a\n\rb
201 a\n\r\x{85}b
202 a\r\n\r\nb
203 a\r\n\r\n\r\nb
204 a\n\r\n\rb
205 a\n\n\r\nb
206 ** Failers
207 a\n\n\n\rb
208 a\r
209
210 /\H\h\V\v/8
211 X X\x0a
212 X\x09X\x0b
213 ** Failers
214 \x{a0} X\x0a
215
216 /\H*\h+\V?\v{3,4}/8
217 \x09\x20\x{a0}X\x0a\x0b\x0c\x0d\x0a
218 \x09\x20\x{a0}\x0a\x0b\x0c\x0d\x0a
219 \x09\x20\x{a0}\x0a\x0b\x0c
220 ** Failers
221 \x09\x20\x{a0}\x0a\x0b
222
223 /\H\h\V\v/8
224 \x{3001}\x{3000}\x{2030}\x{2028}
225 X\x{180e}X\x{85}
226 ** Failers
227 \x{2009} X\x0a
228
229 /\H*\h+\V?\v{3,4}/8
230 \x{1680}\x{180e}\x{2007}X\x{2028}\x{2029}\x0c\x0d\x0a
231 \x09\x{205f}\x{a0}\x0a\x{2029}\x0c\x{2028}\x0a
232 \x09\x20\x{202f}\x0a\x0b\x0c
233 ** Failers
234 \x09\x{200a}\x{a0}\x{2028}\x0b
235
236 /[\h]/8BZ
237 >\x{1680}
238
239 /[\h]{3,}/8BZ
240 >\x{1680}\x{180e}\x{2000}\x{2003}\x{200a}\x{202f}\x{205f}\x{3000}<
241
242 /[\v]/8BZ
243
244 /[\H]/8BZ
245
246 /[\V]/8BZ
247
248 /.*$/8<any>
249 \x{1ec5}
250
251 /a\Rb/I8<bsr_anycrlf>
252 a\rb
253 a\nb
254 a\r\nb
255 ** Failers
256 a\x{85}b
257 a\x0bb
258
259 /a\Rb/I8<bsr_unicode>
260 a\rb
261 a\nb
262 a\r\nb
263 a\x{85}b
264 a\x0bb
265 ** Failers
266 a\x{85}b\<bsr_anycrlf>
267 a\x0bb\<bsr_anycrlf>
268
269 /a\R?b/I8<bsr_anycrlf>
270 a\rb
271 a\nb
272 a\r\nb
273 ** Failers
274 a\x{85}b
275 a\x0bb
276
277 /a\R?b/I8<bsr_unicode>
278 a\rb
279 a\nb
280 a\r\nb
281 a\x{85}b
282 a\x0bb
283 ** Failers
284 a\x{85}b\<bsr_anycrlf>
285 a\x0bb\<bsr_anycrlf>
286
287 /.*a.*=.b.*/8<ANY>
288 QQQ\x{2029}ABCaXYZ=!bPQR
289 ** Failers
290 a\x{2029}b
291 \x61\xe2\x80\xa9\x62
292
293 /[[:a\x{100}b:]]/8
294
295 /a[^]b/<JS>8
296 a\x{1234}b
297 a\nb
298 ** Failers
299 ab
300
301 /a[^]+b/<JS>8
302 aXb
303 a\nX\nX\x{1234}b
304 ** Failers
305 ab
306
307 /(\x{de})\1/
308 \x{de}\x{de}
309
310 /X/8f<any>
311 A\x{1ec5}ABCXYZ
312
313 /Xa{2,4}b/8
314 X\P
315 Xa\P
316 Xaa\P
317 Xaaa\P
318 Xaaaa\P
319
320 /Xa{2,4}?b/8
321 X\P
322 Xa\P
323 Xaa\P
324 Xaaa\P
325 Xaaaa\P
326
327 /Xa{2,4}+b/8
328 X\P
329 Xa\P
330 Xaa\P
331 Xaaa\P
332 Xaaaa\P
333
334 /X\x{123}{2,4}b/8
335 X\P
336 X\x{123}\P
337 X\x{123}\x{123}\P
338 X\x{123}\x{123}\x{123}\P
339 X\x{123}\x{123}\x{123}\x{123}\P
340
341 /X\x{123}{2,4}?b/8
342 X\P
343 X\x{123}\P
344 X\x{123}\x{123}\P
345 X\x{123}\x{123}\x{123}\P
346 X\x{123}\x{123}\x{123}\x{123}\P
347
348 /X\x{123}{2,4}+b/8
349 X\P
350 X\x{123}\P
351 X\x{123}\x{123}\P
352 X\x{123}\x{123}\x{123}\P
353 X\x{123}\x{123}\x{123}\x{123}\P
354
355 /X\x{123}{2,4}b/8
356 Xx\P
357 X\x{123}x\P
358 X\x{123}\x{123}x\P
359 X\x{123}\x{123}\x{123}x\P
360 X\x{123}\x{123}\x{123}\x{123}x\P
361
362 /X\x{123}{2,4}?b/8
363 Xx\P
364 X\x{123}x\P
365 X\x{123}\x{123}x\P
366 X\x{123}\x{123}\x{123}x\P
367 X\x{123}\x{123}\x{123}\x{123}x\P
368
369 /X\x{123}{2,4}+b/8
370 Xx\P
371 X\x{123}x\P
372 X\x{123}\x{123}x\P
373 X\x{123}\x{123}\x{123}x\P
374 X\x{123}\x{123}\x{123}\x{123}x\P
375
376 /X\d{2,4}b/8
377 X\P
378 X3\P
379 X33\P
380 X333\P
381 X3333\P
382
383 /X\d{2,4}?b/8
384 X\P
385 X3\P
386 X33\P
387 X333\P
388 X3333\P
389
390 /X\d{2,4}+b/8
391 X\P
392 X3\P
393 X33\P
394 X333\P
395 X3333\P
396
397 /X\D{2,4}b/8
398 X\P
399 Xa\P
400 Xaa\P
401 Xaaa\P
402 Xaaaa\P
403
404 /X\D{2,4}?b/8
405 X\P
406 Xa\P
407 Xaa\P
408 Xaaa\P
409 Xaaaa\P
410
411 /X\D{2,4}+b/8
412 X\P
413 Xa\P
414 Xaa\P
415 Xaaa\P
416 Xaaaa\P
417
418 /X\D{2,4}b/8
419 X\P
420 X\x{123}\P
421 X\x{123}\x{123}\P
422 X\x{123}\x{123}\x{123}\P
423 X\x{123}\x{123}\x{123}\x{123}\P
424
425 /X\D{2,4}?b/8
426 X\P
427 X\x{123}\P
428 X\x{123}\x{123}\P
429 X\x{123}\x{123}\x{123}\P
430 X\x{123}\x{123}\x{123}\x{123}\P
431
432 /X\D{2,4}+b/8
433 X\P
434 X\x{123}\P
435 X\x{123}\x{123}\P
436 X\x{123}\x{123}\x{123}\P
437 X\x{123}\x{123}\x{123}\x{123}\P
438
439 /X[abc]{2,4}b/8
440 X\P
441 Xa\P
442 Xaa\P
443 Xaaa\P
444 Xaaaa\P
445
446 /X[abc]{2,4}?b/8
447 X\P
448 Xa\P
449 Xaa\P
450 Xaaa\P
451 Xaaaa\P
452
453 /X[abc]{2,4}+b/8
454 X\P
455 Xa\P
456 Xaa\P
457 Xaaa\P
458 Xaaaa\P
459
460 /X[abc\x{123}]{2,4}b/8
461 X\P
462 X\x{123}\P
463 X\x{123}\x{123}\P
464 X\x{123}\x{123}\x{123}\P
465 X\x{123}\x{123}\x{123}\x{123}\P
466
467 /X[abc\x{123}]{2,4}?b/8
468 X\P
469 X\x{123}\P
470 X\x{123}\x{123}\P
471 X\x{123}\x{123}\x{123}\P
472 X\x{123}\x{123}\x{123}\x{123}\P
473
474 /X[abc\x{123}]{2,4}+b/8
475 X\P
476 X\x{123}\P
477 X\x{123}\x{123}\P
478 X\x{123}\x{123}\x{123}\P
479 X\x{123}\x{123}\x{123}\x{123}\P
480
481 /X[^a]{2,4}b/8
482 X\P
483 Xz\P
484 Xzz\P
485 Xzzz\P
486 Xzzzz\P
487
488 /X[^a]{2,4}?b/8
489 X\P
490 Xz\P
491 Xzz\P
492 Xzzz\P
493 Xzzzz\P
494
495 /X[^a]{2,4}+b/8
496 X\P
497 Xz\P
498 Xzz\P
499 Xzzz\P
500 Xzzzz\P
501
502 /X[^a]{2,4}b/8
503 X\P
504 X\x{123}\P
505 X\x{123}\x{123}\P
506 X\x{123}\x{123}\x{123}\P
507 X\x{123}\x{123}\x{123}\x{123}\P
508
509 /X[^a]{2,4}?b/8
510 X\P
511 X\x{123}\P
512 X\x{123}\x{123}\P
513 X\x{123}\x{123}\x{123}\P
514 X\x{123}\x{123}\x{123}\x{123}\P
515
516 /X[^a]{2,4}+b/8
517 X\P
518 X\x{123}\P
519 X\x{123}\x{123}\P
520 X\x{123}\x{123}\x{123}\P
521 X\x{123}\x{123}\x{123}\x{123}\P
522
523 /(Y)X\1{2,4}b/8
524 YX\P
525 YXY\P
526 YXYY\P
527 YXYYY\P
528 YXYYYY\P
529
530 /(Y)X\1{2,4}?b/8
531 YX\P
532 YXY\P
533 YXYY\P
534 YXYYY\P
535 YXYYYY\P
536
537 /(Y)X\1{2,4}+b/8
538 YX\P
539 YXY\P
540 YXYY\P
541 YXYYY\P
542 YXYYYY\P
543
544 /(\x{123})X\1{2,4}b/8
545 \x{123}X\P
546 \x{123}X\x{123}\P
547 \x{123}X\x{123}\x{123}\P
548 \x{123}X\x{123}\x{123}\x{123}\P
549 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
550
551 /(\x{123})X\1{2,4}?b/8
552 \x{123}X\P
553 \x{123}X\x{123}\P
554 \x{123}X\x{123}\x{123}\P
555 \x{123}X\x{123}\x{123}\x{123}\P
556 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
557
558 /(\x{123})X\1{2,4}+b/8
559 \x{123}X\P
560 \x{123}X\x{123}\P
561 \x{123}X\x{123}\x{123}\P
562 \x{123}X\x{123}\x{123}\x{123}\P
563 \x{123}X\x{123}\x{123}\x{123}\x{123}\P
564
565 /\bthe cat\b/8
566 the cat\P
567 the cat\P\P
568
569 /abcd*/8
570 xxxxabcd\P
571 xxxxabcd\P\P
572
573 /abcd*/i8
574 xxxxabcd\P
575 xxxxabcd\P\P
576 XXXXABCD\P
577 XXXXABCD\P\P
578
579 /abc\d*/8
580 xxxxabc1\P
581 xxxxabc1\P\P
582
583 /(a)bc\1*/8
584 xxxxabca\P
585 xxxxabca\P\P
586
587 /abc[de]*/8
588 xxxxabcde\P
589 xxxxabcde\P\P
590
591 /X\W{3}X/8
592 \PX
593
594 /\sxxx\s/8T1
595 AB\x{85}xxx\x{a0}XYZ
596 AB\x{a0}xxx\x{85}XYZ
597
598 /\S \S/8T1
599 \x{a2} \x{84}
600
601 'A#хц'8x<any>BZ
602
603 'A#хц
604 PQ'8x<any>BZ
605
606 /a+#хaa
607 z#XX?/8x<any>BZ
608
609 /a+#хaa
610 z#х?/8x<any>BZ
611
612 /\g{A}xxx#bXX(?'A'123) (?'A'456)/8x<any>BZ
613
614 /\g{A}xxx#bх(?'A'123) (?'A'456)/8x<any>BZ
615
616 /^\cģ/8
617
618 /(\R*)(.)/s8
619 \r\n
620 \r\r\n\n\r
621 \r\r\n\n\r\n
622
623 /(\R)*(.)/s8
624 \r\n
625 \r\r\n\n\r
626 \r\r\n\n\r\n
627
628 /[^\x{1234}]+/iS8I
629
630 /[^\x{1234}]+?/iS8I
631
632 /[^\x{1234}]++/iS8I
633
634 /[^\x{1234}]{2}/iS8I
635
636 //<bsr_anycrlf><bsr_unicode>
637
638 /f.*/
639 \P\Pfor
640
641 /f.*/s
642 \P\Pfor
643
644 /f.*/8
645 \P\Pfor
646
647 /f.*/8s
648 \P\Pfor
649
650 /\x{d7ff}\x{e000}/8
651
652 /\x{d800}/8
653
654 /\x{dfff}/8
655
656 /-- End of testinput5 --/

Properties

Name Value
svn:keywords "Author Date Id Revision Url"

  ViewVC Help
Powered by ViewVC 1.1.5