summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/testdata/testoutput6
blob: a805609a358c33203c5a41b4036f1d32b655a084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
PCRE version 3.4 22-Aug-2000

/\x{100}/8DM
Memory allocation (code space): 11
------------------------------------------------------------------
  0   7 Bra 0
  3   2 \xc0\x88
  7   7 Ket
 10     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 192
Need char = 136

/\x{1000}/8DM
Memory allocation (code space): 12
------------------------------------------------------------------
  0   8 Bra 0
  3   3 \xe0\x80\x84
  8   8 Ket
 11     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 224
Need char = 132

/\x{10000}/8DM
Memory allocation (code space): 13
------------------------------------------------------------------
  0   9 Bra 0
  3   4 \xf0\x80\x80\x82
  9   9 Ket
 12     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 240
Need char = 130

/\x{100000}/8DM
Memory allocation (code space): 13
------------------------------------------------------------------
  0   9 Bra 0
  3   4 \xf0\x80\x80\xa0
  9   9 Ket
 12     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 240
Need char = 160

/\x{1000000}/8DM
Memory allocation (code space): 14
------------------------------------------------------------------
  0  10 Bra 0
  3   5 \xf8\x80\x80\x80\x90
 10  10 Ket
 13     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 248
Need char = 144

/\x{4000000}/8DM
Memory allocation (code space): 15
------------------------------------------------------------------
  0  11 Bra 0
  3   6 \xfc\x80\x80\x80\x80\x82
 11  11 Ket
 14     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 252
Need char = 130

/\x{7fffFFFF}/8DM
Memory allocation (code space): 15
------------------------------------------------------------------
  0  11 Bra 0
  3   6 \xfd\xbf\xbf\xbf\xbf\xbf
 11  11 Ket
 14     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 253
Need char = 191

/[\x{ff}]/8DM
Memory allocation (code space): 40
------------------------------------------------------------------
  0   6 Bra 0
  3   1 \xff
  6   6 Ket
  9     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 255
No need char

/[\x{100}]/8DM
Memory allocation (code space): 40
Failed: characters with values > 255 are not yet supported in classes at offset 7

/\x{ffffffff}/8
Failed: character value in \x{...} sequence is too large at offset 11

/\x{100000000}/8
Failed: character value in \x{...} sequence is too large at offset 12

/^\x{100}a\x{1234}/8
    \x{100}a\x{1234}bcd
 0: \x{100}a\x{1234}

/\x80/8D
------------------------------------------------------------------
  0   7 Bra 0
  3   2 \xc0\x84
  7   7 Ket
 10     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 192
Need char = 132

/\xff/8D
------------------------------------------------------------------
  0   7 Bra 0
  3   2 \xdf\x87
  7   7 Ket
 10     End
------------------------------------------------------------------
Capturing subpattern count = 0
Options: utf8
First char = 223
Need char = 135

/-- These tests are here rather than in testinput5 because Perl 5.6 has --/
/-- some problems with UTF-8 support, in the area of \x{..} where the   --/
No match
/-- value is < 255. It grumbles about invalid UTF-8 strings.            --/
No match

/^[a\x{c0}]b/8
    \x{c0}b
 0: \x{c0}b
    
/^([a\x{c0}]*?)aa/8
    a\x{c0}aaaa/ 
 0: a\x{c0}aa
 1: a\x{c0}

/^([a\x{c0}]*?)aa/8
    a\x{c0}aaaa/ 
 0: a\x{c0}aa
 1: a\x{c0}
    a\x{c0}a\x{c0}aaa/ 
 0: a\x{c0}a\x{c0}aa
 1: a\x{c0}a\x{c0}

/^([a\x{c0}]*)aa/8
    a\x{c0}aaaa/ 
 0: a\x{c0}aaaa
 1: a\x{c0}aa
    a\x{c0}a\x{c0}aaa/ 
 0: a\x{c0}a\x{c0}aaa
 1: a\x{c0}a\x{c0}a

/^([a\x{c0}]*)a\x{c0}/8
    a\x{c0}aaaa/ 
 0: a\x{c0}
 1: 
    a\x{c0}a\x{c0}aaa/ 
 0: a\x{c0}a\x{c0}
 1: a\x{c0}

/ End of testinput6 /