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

Diff of /code/trunk/testdata/testoutput6

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

revision 426 by ph10, Wed Aug 26 15:38:32 2009 UTC revision 491 by ph10, Mon Mar 1 17:45:08 2010 UTC
# Line 1  Line 1 
1    /-- This set of tests is for Unicode property support. It is compatible with
2        Perl 5.10, but not 5.8 because it tests some extra properties that are
3        not in the earlier release. --/
4    
5  /^\pC\pL\pM\pN\pP\pS\pZ</8  /^\pC\pL\pM\pN\pP\pS\pZ</8
6      \x7f\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<      \x7f\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<
7   0: \x{7f}\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<   0: \x{7f}\x{c0}\x{30f}\x{660}\x{66c}\x{f01}\x{1680}<
# Line 98  No match Line 102  No match
102      \x{09f}      \x{09f}
103  No match  No match
104    
 /^\p{Cs}/8  
     \?\x{dfff}  
  0: \x{dfff}  
     ** Failers  
 No match  
     \x{09f}  
 No match  
   
105  /^\p{Ll}/8  /^\p{Ll}/8
106      a      a
107   0: a   0: a
# Line 338  No match Line 334  No match
334      \x{f3b}      \x{f3b}
335  No match  No match
336    
 /^\p{Sc}+/8  
     $\x{a2}\x{a3}\x{a4}\x{a5}\x{a6}  
  0: $\x{a2}\x{a3}\x{a4}\x{a5}  
     \x{9f2}  
  0: \x{9f2}  
     ** Failers  
 No match  
     X  
 No match  
     \x{2c2}  
 No match  
   
337  /^\p{Sk}/8  /^\p{Sk}/8
338      \x{2c2}      \x{2c2}
339   0: \x{2c2}   0: \x{2c2}
# Line 402  No match Line 386  No match
386      \x{2028}      \x{2028}
387  No match  No match
388    
 /^\p{Zs}/8  
     \ \  
  0:  
     \x{a0}  
  0: \x{a0}  
     \x{1680}  
  0: \x{1680}  
     \x{180e}  
  0: \x{180e}  
     \x{2000}  
  0: \x{2000}  
     \x{2001}  
  0: \x{2001}  
     ** Failers  
 No match  
     \x{2028}  
 No match  
     \x{200d}  
 No match  
   
389  /\p{Nd}+(..)/8  /\p{Nd}+(..)/8
390        \x{660}\x{661}\x{662}ABC        \x{660}\x{661}\x{662}ABC
391   0: \x{660}\x{661}\x{662}AB   0: \x{660}\x{661}\x{662}AB
# Line 494  No match Line 458  No match
458        \x{660}\x{661}\x{662}ABC        \x{660}\x{661}\x{662}ABC
459  No match  No match
460    
 /\p{Lu}/8i  
     A  
  0: A  
     a\x{10a0}B  
  0: \x{10a0}  
     ** Failers  
  0: F  
     a  
 No match  
     \x{1d00}  
 No match  
   
 /\p{^Lu}/8i  
     1234  
  0: 1  
     ** Failers  
  0: *  
     ABC  
 No match  
   
 /\P{Lu}/8i  
     1234  
  0: 1  
     ** Failers  
  0: *  
     ABC  
 No match  
   
461  /(?<=A\p{Nd})XYZ/8  /(?<=A\p{Nd})XYZ/8
462      A2XYZ      A2XYZ
463   0: XYZ   0: XYZ
# Line 548  No match Line 484  No match
484      WXYZ      WXYZ
485  No match  No match
486    
 /[\p{L}]/DZ  
 ------------------------------------------------------------------  
         Bra  
         [\p{L}]  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 No options  
 No first char  
 No need char  
   
 /[\p{^L}]/DZ  
 ------------------------------------------------------------------  
         Bra  
         [\P{L}]  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 No options  
 No first char  
 No need char  
   
 /[\P{L}]/DZ  
 ------------------------------------------------------------------  
         Bra  
         [\P{L}]  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 No options  
 No first char  
 No need char  
   
 /[\P{^L}]/DZ  
 ------------------------------------------------------------------  
         Bra  
         [\p{L}]  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 No options  
 No first char  
 No need char  
   
 /[abc\p{L}\x{0660}]/8DZ  
 ------------------------------------------------------------------  
         Bra  
         [a-c\p{L}\x{660}]  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: utf8  
 No first char  
 No need char  
   
 /[\p{Nd}]/8DZ  
 ------------------------------------------------------------------  
         Bra  
         [\p{Nd}]  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: utf8  
 No first char  
 No need char  
     1234  
  0: 1  
   
 /[\p{Nd}+-]+/8DZ  
 ------------------------------------------------------------------  
         Bra  
         [+\-\p{Nd}]+  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: utf8  
 No first char  
 No need char  
     1234  
  0: 1234  
     12-34  
  0: 12-34  
     12+\x{661}-34  
  0: 12+\x{661}-34  
     ** Failers  
 No match  
     abcd  
 No match  
   
487  /[\P{Nd}]+/8  /[\P{Nd}]+/8
488      abcd      abcd
489   0: abcd   0: abcd
# Line 724  No match Line 564  No match
564      ABC      ABC
565  No match  No match
566    
 /\p{Ll}/8i  
     a  
  0: a  
     Az  
  0: z  
     ** Failers  
  0: a  
     ABC  
 No match  
   
 /^\x{c0}$/8i  
     \x{c0}  
  0: \x{c0}  
     \x{e0}  
  0: \x{e0}  
   
 /^\x{e0}$/8i  
     \x{c0}  
  0: \x{c0}  
     \x{e0}  
  0: \x{e0}  
   
567  /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8  /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8
568      A\x{391}\x{10427}\x{ff3a}\x{1fb0}      A\x{391}\x{10427}\x{ff3a}\x{1fb0}
569   0: A\x{391}\x{10427}\x{ff3a}\x{1fb0}   0: A\x{391}\x{10427}\x{ff3a}\x{1fb0}
# Line 776  No match Line 594  No match
594      A\x{391}\x{10427}\x{ff3a}\x{1fb8}      A\x{391}\x{10427}\x{ff3a}\x{1fb8}
595   0: A\x{391}\x{10427}\x{ff3a}\x{1fb8}   0: A\x{391}\x{10427}\x{ff3a}\x{1fb8}
596    
 /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8iDZ  
 ------------------------------------------------------------------  
         Bra  
      NC A\x{391}\x{10427}\x{ff3a}\x{1fb0}  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: caseless utf8  
 First char = 'A' (caseless)  
 No need char  
   
 /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8DZ  
 ------------------------------------------------------------------  
         Bra  
         A\x{391}\x{10427}\x{ff3a}\x{1fb0}  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: utf8  
 First char = 'A'  
 Need char = 176  
   
 /AB\x{1fb0}/8DZ  
 ------------------------------------------------------------------  
         Bra  
         AB\x{1fb0}  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: utf8  
 First char = 'A'  
 Need char = 176  
   
 /AB\x{1fb0}/8DZi  
 ------------------------------------------------------------------  
         Bra  
      NC AB\x{1fb0}  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: caseless utf8  
 First char = 'A' (caseless)  
 Need char = 'B' (caseless)  
   
597  /\x{391}+/8i  /\x{391}+/8i
598      \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}      \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}
599   0: \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}   0: \x{391}\x{3b1}\x{3b1}\x{3b1}\x{391}
# Line 848  Need char = 'B' (caseless) Line 618  Need char = 'B' (caseless)
618      \x{ff5a}      \x{ff5a}
619   0: \x{ff5a}   0: \x{ff5a}
620    
 /[\x{c0}\x{391}]/8i  
     \x{c0}  
  0: \x{c0}  
     \x{e0}  
  0: \x{e0}  
   
 /[\x{105}-\x{109}]/8iDZ  
 ------------------------------------------------------------------  
         Bra  
         [\x{104}-\x{109}]  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: caseless utf8  
 No first char  
 No need char  
     \x{104}  
  0: \x{104}  
     \x{105}  
  0: \x{105}  
     \x{109}  
  0: \x{109}  
     ** Failers  
 No match  
     \x{100}  
 No match  
     \x{10a}  
 No match  
   
 /[z-\x{100}]/8iDZ  
 ------------------------------------------------------------------  
         Bra  
         [Z\x{39c}\x{178}z-\x{101}]  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: caseless utf8  
 No first char  
 No need char  
     Z  
  0: Z  
     z  
  0: z  
     \x{39c}  
  0: \x{39c}  
     \x{178}  
  0: \x{178}  
     |  
  0: |  
     \x{80}  
  0: \x{80}  
     \x{ff}  
  0: \x{ff}  
     \x{100}  
  0: \x{100}  
     \x{101}  
  0: \x{101}  
     ** Failers  
 No match  
     \x{102}  
 No match  
     Y  
 No match  
     y  
 No match  
   
 /[z-\x{100}]/8DZi  
 ------------------------------------------------------------------  
         Bra  
         [Z\x{39c}\x{178}z-\x{101}]  
         Ket  
         End  
 ------------------------------------------------------------------  
 Capturing subpattern count = 0  
 Options: caseless utf8  
 No first char  
 No need char  
   
621  /^\X/8  /^\X/8
622      A      A
623   0: A   0: A
# Line 1407  No match Line 1097  No match
1097   1: L=abc   1: L=abc
1098   2: abc   2: abc
1099    
 /The next two should be Perl-compatible, but it fails to match \x{e0}. PCRE  
 will match it only with UCP support, because without that it has no notion  
 of case for anything other than the ASCII letters. /  
   
 /((?i)[\x{c0}])/8  
     \x{c0}  
  0: \x{c0}  
  1: \x{c0}  
     \x{e0}  
  0: \x{e0}  
  1: \x{e0}  
   
 /(?i:[\x{c0}])/8  
     \x{c0}  
  0: \x{c0}  
     \x{e0}  
  0: \x{e0}  
   
1100  /^\p{Balinese}\p{Cuneiform}\p{Nko}\p{Phags_Pa}\p{Phoenician}/8  /^\p{Balinese}\p{Cuneiform}\p{Nko}\p{Phags_Pa}\p{Phoenician}/8
1101      \x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900}      \x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900}
1102   0: \x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900}   0: \x{1b00}\x{12000}\x{7c0}\x{a840}\x{10900}
1103    
 /The next two are special cases where the lengths of the different cases of the  
 same character differ. The first went wrong with heap frame storage; the 2nd  
 was broken in all cases./  
   
 /^\x{023a}+?(\x{0130}+)/8i  
   \x{023a}\x{2c65}\x{0130}  
  0: \x{23a}\x{2c65}\x{130}  
  1: \x{130}  
   
 /^\x{023a}+([^X])/8i  
   \x{023a}\x{2c65}X  
  0: \x{23a}\x{2c65}  
  1: \x{2c65}  
   
1104  /Check property support in non-UTF-8 mode/  /Check property support in non-UTF-8 mode/
1105    
1106  /\p{L}{4}/  /\p{L}{4}/
# Line 1467  No match Line 1125  No match
1125      A\x80      A\x80
1126   0: A\x80   0: A\x80
1127    
 /(?:[\PPa*]*){8,}/  
   
 /[\P{Any}]/BZ  
 ------------------------------------------------------------------  
         Bra  
         [\P{Any}]  
         Ket  
         End  
 ------------------------------------------------------------------  
   
 /[\P{Any}\E]/BZ  
 ------------------------------------------------------------------  
         Bra  
         [\P{Any}]  
         Ket  
         End  
 ------------------------------------------------------------------  
   
 /(\P{Yi}+\277)/  
   
 /(\P{Yi}+\277)?/  
   
 /(?<=\P{Yi}{3}A)X/  
   
 /\p{Yi}+(\P{Yi}+)(?1)/  
   
 /(\P{Yi}{2}\277)?/  
   
 /[\P{Yi}A]/  
   
 /[\P{Yi}\P{Yi}\P{Yi}A]/  
   
 /[^\P{Yi}A]/  
   
 /[^\P{Yi}\P{Yi}\P{Yi}A]/  
   
 /(\P{Yi}*\277)*/  
   
 /(\P{Yi}*?\277)*/  
   
 /(\p{Yi}*+\277)*/  
   
 /(\P{Yi}?\277)*/  
   
 /(\P{Yi}??\277)*/  
   
 /(\p{Yi}?+\277)*/  
   
 /(\P{Yi}{0,3}\277)*/  
   
 /(\P{Yi}{0,3}?\277)*/  
   
 /(\p{Yi}{0,3}+\277)*/  
   
1128  /^[\p{Arabic}]/8  /^[\p{Arabic}]/8
1129      \x{60e}      \x{60e}
1130   0: \x{60e}   0: \x{60e}
# Line 1633  No match Line 1237  No match
1237      \x{104aa}      \x{104aa}
1238  No match  No match
1239    
 /\p{Zl}{2,3}+/8BZ  
 ------------------------------------------------------------------  
         Bra  
         prop Zl {2}  
         prop Zl ?+  
         Ket  
         End  
 ------------------------------------------------------------------  
     \xe2\x80\xa8\xe2\x80\xa8  
  0: \x{2028}\x{2028}  
     \x{2028}\x{2028}\x{2028}  
  0: \x{2028}\x{2028}\x{2028}  
   
 /\p{Zl}/8BZ  
 ------------------------------------------------------------------  
         Bra  
         prop Zl  
         Ket  
         End  
 ------------------------------------------------------------------  
   
 /\p{Lu}{3}+/8BZ  
 ------------------------------------------------------------------  
         Bra  
         prop Lu {3}  
         Ket  
         End  
 ------------------------------------------------------------------  
   
 /\pL{2}+/8BZ  
 ------------------------------------------------------------------  
         Bra  
         prop L {2}  
         Ket  
         End  
 ------------------------------------------------------------------  
   
 /\p{Cc}{2}+/8BZ  
 ------------------------------------------------------------------  
         Bra  
         prop Cc {2}  
         Ket  
         End  
 ------------------------------------------------------------------  
   
 /\x{c0}+\x{116}+/8i  
     \x{c0}\x{e0}\x{116}\x{117}  
  0: \x{c0}\x{e0}\x{116}\x{117}  
   
 /[\x{c0}\x{116}]+/8i  
     \x{c0}\x{e0}\x{116}\x{117}  
  0: \x{c0}\x{e0}\x{116}\x{117}  
   
1240  /\p{Carian}\p{Cham}\p{Kayah_Li}\p{Lepcha}\p{Lycian}\p{Lydian}\p{Ol_Chiki}\p{Rejang}\p{Saurashtra}\p{Sundanese}\p{Vai}/8  /\p{Carian}\p{Cham}\p{Kayah_Li}\p{Lepcha}\p{Lycian}\p{Lydian}\p{Ol_Chiki}\p{Rejang}\p{Saurashtra}\p{Sundanese}\p{Vai}/8
1241      \x{102A4}\x{AA52}\x{A91D}\x{1C46}\x{10283}\x{1092E}\x{1C6B}\x{A93B}\x{A8BF}\x{1BA0}\x{A50A}====      \x{102A4}\x{AA52}\x{A91D}\x{1C46}\x{10283}\x{1092E}\x{1C6B}\x{A93B}\x{A8BF}\x{1BA0}\x{A50A}====
1242   0: \x{102a4}\x{aa52}\x{a91d}\x{1c46}\x{10283}\x{1092e}\x{1c6b}\x{a93b}\x{a8bf}\x{1ba0}\x{a50a}   0: \x{102a4}\x{aa52}\x{a91d}\x{1c46}\x{10283}\x{1092e}\x{1c6b}\x{a93b}\x{a8bf}\x{1ba0}\x{a50a}
# Line 1718  No match Line 1269  No match
1269   0: aA   0: aA
1270   1: a   1: a
1271    
 /(\x{de})\1/8i  
     \x{de}\x{de}  
  0: \x{de}\x{de}  
  1: \x{de}  
     \x{de}\x{fe}  
  0: \x{de}\x{fe}  
  1: \x{de}  
     \x{fe}\x{fe}  
  0: \x{fe}\x{fe}  
  1: \x{fe}  
     \x{fe}\x{de}  
  0: \x{fe}\x{de}  
  1: \x{fe}  
   
1272  /(\x{10a})\1/8i  /(\x{10a})\1/8i
1273      \x{10a}\x{10a}      \x{10a}\x{10a}
1274   0: \x{10a}\x{10a}   0: \x{10a}\x{10a}
# Line 1756  No match Line 1293  No match
1293      \x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59      \x41\x20\x50\xC2\x54\xC9\x20\x54\x4F\x44\x41\x59
1294   0: A P\xc2T\xc9 TODAY   0: A P\xc2T\xc9 TODAY
1295    
1296  / End of testinput6 /  /\p{Avestan}\p{Bamum}\p{Egyptian_Hieroglyphs}\p{Imperial_Aramaic}\p{Inscriptional_Pahlavi}\p{Inscriptional_Parthian}\p{Javanese}\p{Kaithi}\p{Lisu}\p{Meetei_Mayek}\p{Old_South_Arabian}\p{Old_Turkic}\p{Samaritan}\p{Tai_Tham}\p{Tai_Viet}/8
1297        \x{10b00}\x{a6ef}\x{13007}\x{10857}\x{10b78}\x{10b58}\x{a980}\x{110c1}\x{a4ff}\x{abc0}\x{10a7d}\x{10c48}\x{0800}\x{1aad}\x{aac0}
1298     0: \x{10b00}\x{a6ef}\x{13007}\x{10857}\x{10b78}\x{10b58}\x{a980}\x{110c1}\x{a4ff}\x{abc0}\x{10a7d}\x{10c48}\x{800}\x{1aad}\x{aac0}
1299    
1300    /-- End of testinput6 --/

Legend:
Removed from v.426  
changed lines
  Added in v.491

  ViewVC Help
Powered by ViewVC 1.1.5