| 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, or which give different
|
| 3 |
output in 16-bit mode. --/
|
| 4 |
|
| 5 |
/a\Cb/
|
| 6 |
aXb
|
| 7 |
0: aXb
|
| 8 |
a\nb
|
| 9 |
0: a\x0ab
|
| 10 |
|
| 11 |
/-- Check maximum non-UTF character size --/
|
| 12 |
|
| 13 |
/\x{ffff}/
|
| 14 |
A\x{ffff}B
|
| 15 |
** Character \x{ffff} is greater than 255.
|
| 16 |
** Because its input is first processed as 8-bit, pcretest does not
|
| 17 |
** support such characters in 16-bit mode when UTF-16 is not set.
|
| 18 |
** Truncation will probably give the wrong result.
|
| 19 |
No match
|
| 20 |
|
| 21 |
/\x{10000}/
|
| 22 |
Failed: character value in \x{...} sequence is too large at offset 8
|
| 23 |
|
| 24 |
/[^\x{c4}]/DZ
|
| 25 |
------------------------------------------------------------------
|
| 26 |
Bra
|
| 27 |
[^\xc4]
|
| 28 |
Ket
|
| 29 |
End
|
| 30 |
------------------------------------------------------------------
|
| 31 |
Capturing subpattern count = 0
|
| 32 |
No options
|
| 33 |
No first char
|
| 34 |
No need char
|
| 35 |
|
| 36 |
|
| 37 |
/\x{100}/I
|
| 38 |
Capturing subpattern count = 0
|
| 39 |
No options
|
| 40 |
First char = \x{100}
|
| 41 |
No need char
|
| 42 |
|
| 43 |
/ (?: [\040\t] | \(
|
| 44 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 45 |
\) )* # optional leading comment
|
| 46 |
(?: (?:
|
| 47 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 48 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 49 |
|
|
| 50 |
" (?: # opening quote...
|
| 51 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
| 52 |
| # or
|
| 53 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
| 54 |
)* " # closing quote
|
| 55 |
) # initial word
|
| 56 |
(?: (?: [\040\t] | \(
|
| 57 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 58 |
\) )* \. (?: [\040\t] | \(
|
| 59 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 60 |
\) )* (?:
|
| 61 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 62 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 63 |
|
|
| 64 |
" (?: # opening quote...
|
| 65 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
| 66 |
| # or
|
| 67 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
| 68 |
)* " # closing quote
|
| 69 |
) )* # further okay, if led by a period
|
| 70 |
(?: [\040\t] | \(
|
| 71 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 72 |
\) )* @ (?: [\040\t] | \(
|
| 73 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 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 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
| 79 |
\] # ]
|
| 80 |
) # initial subdomain
|
| 81 |
(?: #
|
| 82 |
(?: [\040\t] | \(
|
| 83 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 84 |
\) )* \. # if led by a period...
|
| 85 |
(?: [\040\t] | \(
|
| 86 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 87 |
\) )* (?:
|
| 88 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 89 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 90 |
| \[ # [
|
| 91 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
| 92 |
\] # ]
|
| 93 |
) # ...further okay
|
| 94 |
)*
|
| 95 |
# address
|
| 96 |
| # or
|
| 97 |
(?:
|
| 98 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 99 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 100 |
|
|
| 101 |
" (?: # opening quote...
|
| 102 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
| 103 |
| # or
|
| 104 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
| 105 |
)* " # closing quote
|
| 106 |
) # one word, optionally followed by....
|
| 107 |
(?:
|
| 108 |
[^()<>@,;:".\\\[\]\x80-\xff\000-\010\012-\037] | # atom and space parts, or...
|
| 109 |
\(
|
| 110 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 111 |
\) | # comments, or...
|
| 112 |
|
| 113 |
" (?: # opening quote...
|
| 114 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
| 115 |
| # or
|
| 116 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
| 117 |
)* " # closing quote
|
| 118 |
# quoted strings
|
| 119 |
)*
|
| 120 |
< (?: [\040\t] | \(
|
| 121 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 122 |
\) )* # leading <
|
| 123 |
(?: @ (?: [\040\t] | \(
|
| 124 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 125 |
\) )* (?:
|
| 126 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 127 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 128 |
| \[ # [
|
| 129 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
| 130 |
\] # ]
|
| 131 |
) # initial subdomain
|
| 132 |
(?: #
|
| 133 |
(?: [\040\t] | \(
|
| 134 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 135 |
\) )* \. # if led by a period...
|
| 136 |
(?: [\040\t] | \(
|
| 137 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 138 |
\) )* (?:
|
| 139 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 140 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 141 |
| \[ # [
|
| 142 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
| 143 |
\] # ]
|
| 144 |
) # ...further okay
|
| 145 |
)*
|
| 146 |
|
| 147 |
(?: (?: [\040\t] | \(
|
| 148 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 149 |
\) )* , (?: [\040\t] | \(
|
| 150 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 151 |
\) )* @ (?: [\040\t] | \(
|
| 152 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 153 |
\) )* (?:
|
| 154 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 155 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 156 |
| \[ # [
|
| 157 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
| 158 |
\] # ]
|
| 159 |
) # initial subdomain
|
| 160 |
(?: #
|
| 161 |
(?: [\040\t] | \(
|
| 162 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 163 |
\) )* \. # if led by a period...
|
| 164 |
(?: [\040\t] | \(
|
| 165 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 166 |
\) )* (?:
|
| 167 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 168 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 169 |
| \[ # [
|
| 170 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
| 171 |
\] # ]
|
| 172 |
) # ...further okay
|
| 173 |
)*
|
| 174 |
)* # further okay, if led by comma
|
| 175 |
: # closing colon
|
| 176 |
(?: [\040\t] | \(
|
| 177 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 178 |
\) )* )? # optional route
|
| 179 |
(?:
|
| 180 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 181 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 182 |
|
|
| 183 |
" (?: # opening quote...
|
| 184 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
| 185 |
| # or
|
| 186 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
| 187 |
)* " # closing quote
|
| 188 |
) # initial word
|
| 189 |
(?: (?: [\040\t] | \(
|
| 190 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 191 |
\) )* \. (?: [\040\t] | \(
|
| 192 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 193 |
\) )* (?:
|
| 194 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 195 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 196 |
|
|
| 197 |
" (?: # opening quote...
|
| 198 |
[^\\\x80-\xff\n\015"] # Anything except backslash and quote
|
| 199 |
| # or
|
| 200 |
\\ [^\x80-\xff] # Escaped something (something != CR)
|
| 201 |
)* " # closing quote
|
| 202 |
) )* # further okay, if led by a period
|
| 203 |
(?: [\040\t] | \(
|
| 204 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 205 |
\) )* @ (?: [\040\t] | \(
|
| 206 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 207 |
\) )* (?:
|
| 208 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 209 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 210 |
| \[ # [
|
| 211 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
| 212 |
\] # ]
|
| 213 |
) # initial subdomain
|
| 214 |
(?: #
|
| 215 |
(?: [\040\t] | \(
|
| 216 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 217 |
\) )* \. # if led by a period...
|
| 218 |
(?: [\040\t] | \(
|
| 219 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 220 |
\) )* (?:
|
| 221 |
[^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]+ # some number of atom characters...
|
| 222 |
(?![^(\040)<>@,;:".\\\[\]\000-\037\x80-\xff]) # ..not followed by something that could be part of an atom
|
| 223 |
| \[ # [
|
| 224 |
(?: [^\\\x80-\xff\n\015\[\]] | \\ [^\x80-\xff] )* # stuff
|
| 225 |
\] # ]
|
| 226 |
) # ...further okay
|
| 227 |
)*
|
| 228 |
# address spec
|
| 229 |
(?: [\040\t] | \(
|
| 230 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 231 |
\) )* > # trailing >
|
| 232 |
# name and address
|
| 233 |
) (?: [\040\t] | \(
|
| 234 |
(?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] )* \) )*
|
| 235 |
\) )* # optional trailing comment
|
| 236 |
/xSI
|
| 237 |
Capturing subpattern count = 0
|
| 238 |
Contains explicit CR or LF match
|
| 239 |
Options: extended
|
| 240 |
No first char
|
| 241 |
No need char
|
| 242 |
Subject length lower bound = 3
|
| 243 |
Starting byte set: \x09 \x20 ! " # $ % & ' ( * + - / 0 1 2 3 4 5 6 7 8
|
| 244 |
9 = ? A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ^ _ ` a b c d e
|
| 245 |
f g h i j k l m n o p q r s t u v w x y z { | } ~ \x7f \xff
|
| 246 |
|
| 247 |
/-- End of testinput17 --/
|