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

Contents of /code/trunk/testdata/testinput18

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1219 - (show annotations)
Sun Nov 11 18:04:37 2012 UTC (6 years, 11 months ago) by ph10
File size: 3695 byte(s)
Support (*UTF) in all libraries.
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{0}\x{d7ff}\x{e000}\x{10ffff}
160 \x{d800}
161 \x{d800}\?
162 \x{da00}
163 \x{da00}\?
164 \x{dc00}
165 \x{dc00}\?
166 \x{de00}
167 \x{de00}\?
168 \x{dfff}
169 \x{dfff}\?
170 \x{110000}
171 \x{d800}\x{1234}
172 \x{fffe}
173
174 /(*UTF16)\x{11234}/
175 abcd\x{11234}pqr
176
177 /(*UTF)\x{11234}/I
178 abcd\x{11234}pqr
179
180 /(*UTF-32)\x{11234}/
181 abcd\x{11234}pqr
182
183 /(*CRLF)(*UTF16)(*BSR_UNICODE)a\Rb/I
184
185 /(*CRLF)(*UTF32)(*BSR_UNICODE)a\Rb/I
186
187 /\h/SI8
188 ABC\x{09}
189 ABC\x{20}
190 ABC\x{a0}
191 ABC\x{1680}
192 ABC\x{180e}
193 ABC\x{2000}
194 ABC\x{202f}
195 ABC\x{205f}
196 ABC\x{3000}
197
198 /\v/SI8
199 ABC\x{0a}
200 ABC\x{0b}
201 ABC\x{0c}
202 ABC\x{0d}
203 ABC\x{85}
204 ABC\x{2028}
205
206 /\h*A/SI8
207 CDBABC
208 \x{2000}ABC
209
210 /\R*A/SI8
211 CDBABC
212 \x{2028}A
213
214 /\v+A/SI8
215
216 /\s?xxx\s/8SI
217
218 /\sxxx\s/I8ST1
219 AB\x{85}xxx\x{a0}XYZ
220 AB\x{a0}xxx\x{85}XYZ
221
222 /\S \S/I8ST1
223 \x{a2} \x{84}
224 A Z
225
226 /a+/8
227 a\x{123}aa\>1
228 a\x{123}aa\>2
229 a\x{123}aa\>3
230 a\x{123}aa\>4
231 a\x{123}aa\>5
232 a\x{123}aa\>6
233
234 /\x{1234}+/iS8I
235
236 /\x{1234}+?/iS8I
237
238 /\x{1234}++/iS8I
239
240 /\x{1234}{2}/iS8I
241
242 /[^\x{c4}]/8DZ
243
244 /X+\x{200}/8DZ
245
246 /\R/SI8
247
248 /-- Check bad offset --/
249
250 /a/8
251 \x{10000}\>1
252 \x{10000}ab\>1
253 \x{10000}ab\>2
254 \x{10000}ab\>3
255 \x{10000}ab\>4
256 \x{10000}ab\>5
257
258 //8
259
260 /\w+\x{C4}/8BZ
261 a\x{C4}\x{C4}
262
263 /\w+\x{C4}/8BZT1
264 a\x{C4}\x{C4}
265
266 /\W+\x{C4}/8BZ
267 !\x{C4}
268
269 /\W+\x{C4}/8BZT1
270 !\x{C4}
271
272 /\W+\x{A1}/8BZ
273 !\x{A1}
274
275 /\W+\x{A1}/8BZT1
276 !\x{A1}
277
278 /X\s+\x{A0}/8BZ
279 X\x20\x{A0}\x{A0}
280
281 /X\s+\x{A0}/8BZT1
282 X\x20\x{A0}\x{A0}
283
284 /\S+\x{A0}/8BZ
285 X\x{A0}\x{A0}
286
287 /\S+\x{A0}/8BZT1
288 X\x{A0}\x{A0}
289
290 /\x{a0}+\s!/8BZ
291 \x{a0}\x20!
292
293 /\x{a0}+\s!/8BZT1
294 \x{a0}\x20!
295
296 /-- End of testinput18 --/

  ViewVC Help
Powered by ViewVC 1.1.5