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

Contents of /code/branches/pcre16/testdata/testinput16

Parent Directory Parent Directory | Revision Log Revision Log


Revision 810 - (show annotations)
Mon Dec 19 13:34:10 2011 UTC (7 years, 9 months ago) by ph10
File size: 3184 byte(s)
Error occurred while calculating annotation data.
A lot more work on pcretest; now runs many (but not all) tests.
1 /-- This set of tests is for UTF-16 support, and is relevant only to the 16-bit
2 library. There are some non-UTF 16-bit tests as well (it doesn't seem
3 worth setting up another test file just for this case). --/
4
5 /xxx/8?DZSS
6
7 /abc/8
8 ]
9
10 /X(\C{3})/8
11 X\x{11234}Y
12
13 /X(\C{4})/8
14 X\x{11234}YZ
15
16 /X\C*/8
17 XYZabcdce
18
19 /X\C*?/8
20 XYZabcde
21
22 /X\C{3,5}/8
23 Xabcdefg
24 X\x{11234}Y
25 X\x{11234}YZ
26 X\x{11234}\x{512}
27 X\x{11234}\x{512}YZ
28 X\x{11234}\x{512}\x{11234}Z
29
30 /X\C{3,5}?/8
31 Xabcdefg
32 X\x{11234}Y
33 X\x{11234}YZ
34 X\x{11234}\x{512}YZ
35 *** Failers
36 X\x{11234}
37
38 /a\Cb/
39 aXb
40 a\nb
41
42 /a\Cb/8
43 aXb
44 a\nb
45
46 /a\C\Cb/8
47 a\x{12257}b
48 ** Failers
49 a\x{100}b
50
51 /ab\Cde/8
52 abXde
53
54 /-- Check maximum non-UTF character size --/
55
56 /\x{ffff}/
57
58 /\x{10000}/
59
60 /\x{100}/8DZ
61
62 /\x{1000}/8DZ
63
64 /\x{10000}/8DZ
65
66 /\x{100000}/8DZ
67
68 /\x{10ffff}/8DZ
69
70 /[\x{ff}]/8DZ
71
72 /[\x{100}]/8DZ
73
74 /\x80/8DZ
75
76 /\xff/8DZ
77
78 /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
79 \x{D55c}\x{ad6d}\x{C5B4}
80
81 /\x{65e5}\x{672c}\x{8a9e}/DZ8
82 \x{65e5}\x{672c}\x{8a9e}
83
84 /\x{80}/DZ8
85
86 /\x{084}/DZ8
87
88 /\x{104}/DZ8
89
90 /\x{861}/DZ8
91
92 /\x{212ab}/DZ8
93
94 /-- This one is here not because it's different to Perl, but because the way
95 the captured single-byte is displayed. (In Perl it becomes a character, and you
96 can't tell the difference.) --/
97
98 /X(\C)(.*)/8
99 X\x{1234}
100 X\nabc
101
102 /-- This one is here because Perl gives out a grumbly error message (quite
103 correctly, but that messes up comparisons). --/
104
105 /a\Cb/8
106 *** Failers
107 a\x{100}b
108
109 /[^ab\xC0-\xF0]/8SDZ
110 \x{f1}
111 \x{bf}
112 \x{100}
113 \x{1000}
114 *** Failers
115 \x{c0}
116 \x{f0}
117
118 /Ā{3,4}/8SDZ
119 \x{100}\x{100}\x{100}\x{100\x{100}
120
121 /(\x{100}+|x)/8SDZ
122
123 /(\x{100}*a|x)/8SDZ
124
125 /(\x{100}{0,2}a|x)/8SDZ
126
127 /(\x{100}{1,2}a|x)/8SDZ
128
129 /\x{100}/8DZ
130
131 /a\x{100}\x{101}*/8DZ
132
133 /a\x{100}\x{101}+/8DZ
134
135 /[^\x{c4}]/DZ
136
137 /[\x{100}]/8DZ
138 \x{100}
139 Z\x{100}
140 \x{100}Z
141 *** Failers
142
143 /[\xff]/DZ8
144 >\x{ff}<
145
146 /[^\xff]/8DZ
147
148 /\x{100}abc(xyz(?1))/8DZ
149
150 /\777/8I
151 \x{1ff}
152 \777
153
154 /\x{100}+\x{200}/8DZ
155
156 /\x{100}+X/8DZ
157
158 /^[\QĀ\E-\QŐ\E/BZ8
159
160 /-- This tests the stricter UTF-8 check according to RFC 3629. --/
161
162 /X/8
163 \x{0}\x{d7ff}\x{e000}\x{10ffff}
164 \x{d800}
165 \x{d800}\?
166 \x{da00}
167 \x{da00}\?
168 \x{dfff}
169 \x{dfff}\?
170 \x{110000}
171 \x{110000}\?
172 \x{2000000}
173 \x{2000000}\?
174 \x{7fffffff}
175 \x{7fffffff}\?
176
177 /(*UTF16)\x{11234}/
178 abcd\x{11234}pqr
179
180 /(*CRLF)(*UTF16)(*BSR_UNICODE)a\Rb/I
181
182 /\h/SI8
183 ABC\x{09}
184 ABC\x{20}
185 ABC\x{a0}
186 ABC\x{1680}
187 ABC\x{180e}
188 ABC\x{2000}
189 ABC\x{202f}
190 ABC\x{205f}
191 ABC\x{3000}
192
193 /\v/SI8
194 ABC\x{0a}
195 ABC\x{0b}
196 ABC\x{0c}
197 ABC\x{0d}
198 ABC\x{85}
199 ABC\x{2028}
200
201 /\h*A/SI8
202 CDBABC
203
204 /\v+A/SI8
205
206 /\s?xxx\s/8SI
207
208 /\sxxx\s/I8ST1
209 AB\x{85}xxx\x{a0}XYZ
210 AB\x{a0}xxx\x{85}XYZ
211
212 /\S \S/I8ST1
213 \x{a2} \x{84}
214 A Z
215
216 /a+/8
217 a\x{123}aa\>1
218 a\x{123}aa\>2
219 a\x{123}aa\>3
220 a\x{123}aa\>4
221 a\x{123}aa\>5
222 a\x{123}aa\>6
223
224 /\x{1234}+/iS8I
225
226 /\x{1234}+?/iS8I
227
228 /\x{1234}++/iS8I
229
230 /\x{1234}{2}/iS8I
231
232 /[^\x{c4}]/8DZ
233
234 /X+\x{200}/8DZ
235
236 /\R/SI8
237
238 /-- End of testinput16 --/

  ViewVC Help
Powered by ViewVC 1.1.5