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

Diff of /code/trunk/testdata/testoutput8

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 178 by ph10, Wed Jun 13 08:44:34 2007 UTC revision 567 by ph10, Sat Nov 6 17:10:00 2010 UTC
# Line 1  Line 1 
1  /-- Do not use the \x{} construct except with patterns that have the --/  /-- This set of tests checks UTF-8 support with the DFA matching functionality
2  /-- /8 option set, because PCRE doesn't recognize them as UTF-8 unless --/      of pcre_dfa_exec(). The -dfa flag must be used with pcretest when running
3  No match      it. --/
 /-- that option is set. However, the latest Perls recognize them always. --/  
 No match  
4    
5  /\x{100}ab/8  /\x{100}ab/8
6    \x{100}ab    \x{100}ab
# Line 1052  No match Line 1050  No match
1050   0: abc8   0: abc8
1051   0: abc9   0: abc9
1052    
1053  /^a\Rb/8  /^a\Rb/8<bsr_unicode>
1054      a\nb      a\nb
1055   0: a\x{0a}b   0: a\x{0a}b
1056      a\rb      a\rb
# Line 1074  No match Line 1072  No match
1072      a\n\rb      a\n\rb
1073  No match  No match
1074    
1075  /^a\R*b/8  /^a\R*b/8<bsr_unicode>
1076      ab      ab
1077   0: ab   0: ab
1078      a\nb      a\nb
# Line 1094  No match Line 1092  No match
1092      a\n\r\x{85}\x0cb      a\n\r\x{85}\x0cb
1093   0: a\x{0a}\x{0d}\x{85}\x{0c}b   0: a\x{0a}\x{0d}\x{85}\x{0c}b
1094    
1095  /^a\R+b/8  /^a\R+b/8<bsr_unicode>
1096      a\nb      a\nb
1097   0: a\x{0a}b   0: a\x{0a}b
1098      a\rb      a\rb
# Line 1116  No match Line 1114  No match
1114      ab      ab
1115  No match  No match
1116    
1117  /^a\R{1,3}b/8  /^a\R{1,3}b/8<bsr_unicode>
1118      a\nb      a\nb
1119   0: a\x{0a}b   0: a\x{0a}b
1120      a\n\rb      a\n\rb
# Line 1204  No match Line 1202  No match
1202      \x09\x{200a}\x{a0}\x{2028}\x0b      \x09\x{200a}\x{a0}\x{2028}\x0b
1203  No match  No match
1204    
1205  / End of testinput 8 /  /a\Rb/I8<bsr_anycrlf>
1206    Capturing subpattern count = 0
1207    Options: bsr_anycrlf utf8
1208    First char = 'a'
1209    Need char = 'b'
1210        a\rb
1211     0: a\x{0d}b
1212        a\nb
1213     0: a\x{0a}b
1214        a\r\nb
1215     0: a\x{0d}\x{0a}b
1216        ** Failers
1217    No match
1218        a\x{85}b
1219    No match
1220        a\x0bb
1221    No match
1222    
1223    /a\Rb/I8<bsr_unicode>
1224    Capturing subpattern count = 0
1225    Options: bsr_unicode utf8
1226    First char = 'a'
1227    Need char = 'b'
1228        a\rb
1229     0: a\x{0d}b
1230        a\nb
1231     0: a\x{0a}b
1232        a\r\nb
1233     0: a\x{0d}\x{0a}b
1234        a\x{85}b
1235     0: a\x{85}b
1236        a\x0bb
1237     0: a\x{0b}b
1238        ** Failers
1239    No match
1240        a\x{85}b\<bsr_anycrlf>
1241    No match
1242        a\x0bb\<bsr_anycrlf>
1243    No match
1244    
1245    /a\R?b/I8<bsr_anycrlf>
1246    Capturing subpattern count = 0
1247    Options: bsr_anycrlf utf8
1248    First char = 'a'
1249    Need char = 'b'
1250        a\rb
1251     0: a\x{0d}b
1252        a\nb
1253     0: a\x{0a}b
1254        a\r\nb
1255     0: a\x{0d}\x{0a}b
1256        ** Failers
1257    No match
1258        a\x{85}b
1259    No match
1260        a\x0bb
1261    No match
1262    
1263    /a\R?b/I8<bsr_unicode>
1264    Capturing subpattern count = 0
1265    Options: bsr_unicode utf8
1266    First char = 'a'
1267    Need char = 'b'
1268        a\rb
1269     0: a\x{0d}b
1270        a\nb
1271     0: a\x{0a}b
1272        a\r\nb
1273     0: a\x{0d}\x{0a}b
1274        a\x{85}b
1275     0: a\x{85}b
1276        a\x0bb
1277     0: a\x{0b}b
1278        ** Failers
1279    No match
1280        a\x{85}b\<bsr_anycrlf>
1281    No match
1282        a\x0bb\<bsr_anycrlf>
1283    No match
1284    
1285    /X/8f<any>
1286        A\x{1ec5}ABCXYZ
1287     0: X
1288    
1289    /abcd*/8
1290        xxxxabcd\P
1291     0: abcd
1292     1: abc
1293        xxxxabcd\P\P
1294    Partial match: abcd
1295    
1296    /abcd*/i8
1297        xxxxabcd\P
1298     0: abcd
1299     1: abc
1300        xxxxabcd\P\P
1301    Partial match: abcd
1302        XXXXABCD\P
1303     0: ABCD
1304     1: ABC
1305        XXXXABCD\P\P
1306    Partial match: ABCD
1307    
1308    /abc\d*/8
1309        xxxxabc1\P
1310     0: abc1
1311     1: abc
1312        xxxxabc1\P\P
1313    Partial match: abc1
1314    
1315    /abc[de]*/8
1316        xxxxabcde\P
1317     0: abcde
1318     1: abcd
1319     2: abc
1320        xxxxabcde\P\P
1321    Partial match: abcde
1322    
1323    /\bthe cat\b/8
1324        the cat\P
1325     0: the cat
1326        the cat\P\P
1327    Partial match: the cat
1328    
1329    /a+/8
1330        a\x{123}aa\>1
1331     0: aa
1332     1: a
1333        a\x{123}aa\>2
1334    Error -11
1335        a\x{123}aa\>3
1336     0: aa
1337     1: a
1338        a\x{123}aa\>4
1339     0: a
1340        a\x{123}aa\>5
1341    No match
1342        a\x{123}aa\>6
1343    Error -24
1344    
1345    /-- End of testinput8 --/

Legend:
Removed from v.178  
changed lines
  Added in v.567

  ViewVC Help
Powered by ViewVC 1.1.5