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

Contents of /code/branches/pcre16/testdata/testinput17

Parent Directory Parent Directory | Revision Log Revision Log


Revision 818 - (show annotations)
Thu Dec 22 20:11:31 2011 UTC (8 years, 5 months ago) by ph10
File size: 10531 byte(s)
More 16-bit fixes, and removal of pcre_info().
1 /-- This set of tests is for the 16-bit library's basic (non-UTF-16) features
2 that are not compatible with the 8-bit library. --/
3
4 /a\Cb/
5 aXb
6 a\nb
7
8 /-- Check maximum non-UTF character size --/
9
10 /\x{ffff}/
11 A\x{ffff}B
12
13 /\x{10000}/
14
15 /[^\x{c4}]/DZ
16
17
18 /\x{100}/I
19
20 / (?: [\040\t] | \(
21 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
22 \) )* # optional leading comment
23 (?: (?:
24 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
25 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
26 |
27 " (?: # opening quote...
28 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
29 | # or
30 \\ [^\x80-\xff] # Escaped something (something != CR)
31 )* " # closing quote
32 ) # initial word
33 (?: (?: [\040\t] | \(
34 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
35 \) )* \. (?: [\040\t] | \(
36 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
37 \) )* (?:
38 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
39 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
40 |
41 " (?: # opening quote...
42 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
43 | # or
44 \\ [^\x80-\xff] # Escaped something (something != CR)
45 )* " # closing quote
46 ) )* # further okay, if led by a period
47 (?: [\040\t] | \(
48 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
49 \) )* @ (?: [\040\t] | \(
50 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
51 \) )* (?:
52 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
53 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
54 | \[ # [
55 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
56 \] # ]
57 ) # initial subdomain
58 (?: #
59 (?: [\040\t] | \(
60 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
61 \) )* \. # if led by a period...
62 (?: [\040\t] | \(
63 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
64 \) )* (?:
65 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
66 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
67 | \[ # [
68 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
69 \] # ]
70 ) # ...further okay
71 )*
72 # address
73 | # or
74 (?:
75 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
76 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
77 |
78 " (?: # opening quote...
79 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
80 | # or
81 \\ [^\x80-\xff] # Escaped something (something != CR)
82 )* " # closing quote
83 ) # one word, optionally followed by....
84 (?:
85 [^()<>@,;:".\\\[\]\x80-\xff\000-\010\012-\037] | # atom and space parts, or...
86 \(
87 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
88 \) | # comments, or...
89
90 " (?: # opening quote...
91 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
92 | # or
93 \\ [^\x80-\xff] # Escaped something (something != CR)
94 )* " # closing quote
95 # quoted strings
96 )*
97 < (?: [\040\t] | \(
98 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
99 \) )* # leading <
100 (?: @ (?: [\040\t] | \(
101 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
102 \) )* (?:
103 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
104 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
105 | \[ # [
106 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
107 \] # ]
108 ) # initial subdomain
109 (?: #
110 (?: [\040\t] | \(
111 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
112 \) )* \. # if led by a period...
113 (?: [\040\t] | \(
114 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
115 \) )* (?:
116 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
117 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
118 | \[ # [
119 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
120 \] # ]
121 ) # ...further okay
122 )*
123
124 (?: (?: [\040\t] | \(
125 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
126 \) )* , (?: [\040\t] | \(
127 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
128 \) )* @ (?: [\040\t] | \(
129 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
130 \) )* (?:
131 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
132 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
133 | \[ # [
134 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
135 \] # ]
136 ) # initial subdomain
137 (?: #
138 (?: [\040\t] | \(
139 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
140 \) )* \. # if led by a period...
141 (?: [\040\t] | \(
142 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
143 \) )* (?:
144 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
145 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
146 | \[ # [
147 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
148 \] # ]
149 ) # ...further okay
150 )*
151 )* # further okay, if led by comma
152 : # closing colon
153 (?: [\040\t] | \(
154 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
155 \) )* )? # optional route
156 (?:
157 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
158 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
159 |
160 " (?: # opening quote...
161 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
162 | # or
163 \\ [^\x80-\xff] # Escaped something (something != CR)
164 )* " # closing quote
165 ) # initial word
166 (?: (?: [\040\t] | \(
167 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
168 \) )* \. (?: [\040\t] | \(
169 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
170 \) )* (?:
171 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
172 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
173 |
174 " (?: # opening quote...
175 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
176 | # or
177 \\ [^\x80-\xff] # Escaped something (something != CR)
178 )* " # closing quote
179 ) )* # further okay, if led by a period
180 (?: [\040\t] | \(
181 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
182 \) )* @ (?: [\040\t] | \(
183 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
184 \) )* (?:
185 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
186 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
187 | \[ # [
188 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
189 \] # ]
190 ) # initial subdomain
191 (?: #
192 (?: [\040\t] | \(
193 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
194 \) )* \. # if led by a period...
195 (?: [\040\t] | \(
196 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
197 \) )* (?:
198 [^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
199 (?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
200 | \[ # [
201 (?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
202 \] # ]
203 ) # ...further okay
204 )*
205 # address spec
206 (?: [\040\t] | \(
207 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
208 \) )* > # trailing >
209 # name and address
210 ) (?: [\040\t] | \(
211 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
212 \) )* # optional trailing comment
213 /xSI
214
215 /-- End of testinput17 --/

  ViewVC Help
Powered by ViewVC 1.1.5