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

Contents of /code/trunk/testdata/testinput17

Parent Directory Parent Directory | Revision Log Revision Log


Revision 810 - (show annotations)
Mon Dec 19 13:34:10 2011 UTC (8 years, 1 month ago) by ph10
Original Path: code/branches/pcre16/testdata/testinput17
File size: 3822 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-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/
30 aXb
31 a\nb
32
33 /a\Cb/8
34 aXb
35 a\nb
36
37 /a\C\Cb/8
38 a\x{100}b
39
40 /ab\Cde/8
41 abXde
42
43 /a\C\Cb/8
44 a\x{100}b
45 ** Failers
46 a\x{12257}b
47
48 /[]/8
49
50 //8
51
52 /xxx/8
53
54 /xxx/8?DZSS
55
56 /abc/8
57 ]
58
59
60 \?
61 \xe1\x88
62 \P\xe1\x88
63 \P\P\xe1\x88
64 XX\xea
65 \O0XX\xea
66 \O1XX\xea
67 \O2XX\xea
68 XX\xf1
69 XX\xf8
70 XX\xfc
71 ZZ\xea\xaf\x20YY
72 ZZ\xfd\xbf\xbf\x2f\xbf\xbfYY
73 ZZ\xfd\xbf\xbf\xbf\x2f\xbfYY
74 ZZ\xfd\xbf\xbf\xbf\xbf\x2fYY
75 ZZ\xffYY
76 ZZ\xfeYY
77
78 /anything/8
79 \xc0\x80
80 \xc1\x8f
81 \xe0\x9f\x80
82 \xf0\x8f\x80\x80
83 \xf8\x87\x80\x80\x80
84 \xfc\x83\x80\x80\x80\x80
85 \xfe\x80\x80\x80\x80\x80
86 \xff\x80\x80\x80\x80\x80
87 \xc3\x8f
88 \xe0\xaf\x80
89 \xe1\x80\x80
90 \xf0\x9f\x80\x80
91 \xf1\x8f\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 \?\xf8\x88\x80\x80\x80
97 \?\xf9\x87\x80\x80\x80
98 \?\xfc\x84\x80\x80\x80\x80
99 \?\xfd\x83\x80\x80\x80\x80
100
101 /\x{100}/8DZ
102
103 /\x{1000}/8DZ
104
105 /\x{10000}/8DZ
106
107 /\x{100000}/8DZ
108
109 /\x{10ffff}/8DZ
110
111 /[\x{ff}]/8DZ
112
113 /[\x{100}]/8DZ
114
115 /\x80/8DZ
116
117 /\xff/8DZ
118
119 /\x{D55c}\x{ad6d}\x{C5B4}/DZ8
120 \x{D55c}\x{ad6d}\x{C5B4}
121
122 /\x{65e5}\x{672c}\x{8a9e}/DZ8
123 \x{65e5}\x{672c}\x{8a9e}
124
125 /\x{80}/DZ8
126
127 /\x{084}/DZ8
128
129 /\x{104}/DZ8
130
131 /\x{861}/DZ8
132
133 /\x{212ab}/DZ8
134
135 /-- This one is here not because it's different to Perl, but because the way
136 the captured single-byte is displayed. (In Perl it becomes a character, and you
137 can't tell the difference.) --/
138
139 /X(\C)(.*)/8
140 X\x{1234}
141 X\nabc
142
143 /-- This one is here because Perl gives out a grumbly error message (quite
144 correctly, but that messes up comparisons). --/
145
146 /a\Cb/8
147 *** Failers
148 a\x{100}b
149
150 /[^ab\xC0-\xF0]/8SDZ
151 \x{f1}
152 \x{bf}
153 \x{100}
154 \x{1000}
155 *** Failers
156 \x{c0}
157 \x{f0}
158
159 /Ā{3,4}/8SDZ
160 \x{100}\x{100}\x{100}\x{100\x{100}
161
162 /(\x{100}+|x)/8SDZ
163
164 /(\x{100}*a|x)/8SDZ
165
166 /(\x{100}{0,2}a|x)/8SDZ
167
168 /(\x{100}{1,2}a|x)/8SDZ
169
170 /\x{100}/8DZ
171
172 /a\x{100}\x{101}*/8DZ
173
174 /a\x{100}\x{101}+/8DZ
175
176 /[^\x{c4}]/DZ
177
178 /[\x{100}]/8DZ
179 \x{100}
180 Z\x{100}
181 \x{100}Z
182 *** Failers
183
184 /[\xff]/DZ8
185 >\x{ff}<
186
187 /[^\xff]/8DZ
188
189 /\x{100}abc(xyz(?1))/8DZ
190
191 /a\x{1234}b/P8
192 a\x{1234}b
193
194 /\777/8I
195 \x{1ff}
196 \777
197
198 /\x{100}+\x{200}/8DZ
199
200 /\x{100}+X/8DZ
201
202 /^[\QĀ\E-\QŐ\E/BZ8
203
204 /-- This tests the stricter UTF-8 check according to RFC 3629. --/
205
206 /X/8
207 \x{0}\x{d7ff}\x{e000}\x{10ffff}
208 \x{d800}
209 \x{d800}\?
210 \x{da00}
211 \x{da00}\?
212 \x{dfff}
213 \x{dfff}\?
214 \x{110000}
215 \x{110000}\?
216 \x{2000000}
217 \x{2000000}\?
218 \x{7fffffff}
219 \x{7fffffff}\?
220
221 /(*UTF8)\x{1234}/
222 abcd\x{1234}pqr
223
224 /(*CRLF)(*UTF8)(*BSR_UNICODE)a\Rb/I
225
226 /\h/SI8
227 ABC\x{09}
228 ABC\x{20}
229 ABC\x{a0}
230 ABC\x{1680}
231 ABC\x{180e}
232 ABC\x{2000}
233 ABC\x{202f}
234 ABC\x{205f}
235 ABC\x{3000}
236
237 /\v/SI8
238 ABC\x{0a}
239 ABC\x{0b}
240 ABC\x{0c}
241 ABC\x{0d}
242 ABC\x{85}
243 ABC\x{2028}
244
245 /\h*A/SI8
246 CDBABC
247
248 /\v+A/SI8
249
250 /\s?xxx\s/8SI
251
252 /\sxxx\s/I8ST1
253 AB\x{85}xxx\x{a0}XYZ
254 AB\x{a0}xxx\x{85}XYZ
255
256 /\S \S/I8ST1
257 \x{a2} \x{84}
258 A Z
259
260 /a+/8
261 a\x{123}aa\>1
262 a\x{123}aa\>2
263 a\x{123}aa\>3
264 a\x{123}aa\>4
265 a\x{123}aa\>5
266 a\x{123}aa\>6
267
268 /\x{1234}+/iS8I
269
270 /\x{1234}+?/iS8I
271
272 /\x{1234}++/iS8I
273
274 /\x{1234}{2}/iS8I
275
276 /[^\x{c4}]/8DZ
277
278 /X+\x{200}/8DZ
279
280 /\R/SI8
281
282 /-- End of testinput17 --/

  ViewVC Help
Powered by ViewVC 1.1.5