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

Contents of /code/trunk/testdata/testinput18

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5