pcre2/testdata/testinput3

105 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2014-07-24 20:01:11 +02:00
# This set of tests checks local-specific features, using the "fr_FR" locale.
# It is not Perl-compatible. When run via RunTest, the locale is edited to
# be whichever of "fr_FR", "french", or "fr" is found to exist. There is
# different version of this file called wintestinput3 for use on Windows,
# where the locale is called "french" and the tests are run using
# RunTest.bat.
#forbid_utf
/^[\w]+/
\= Expect no match
2014-07-24 20:01:11 +02:00
<20>cole
/^[\w]+/locale=fr_FR
<20>cole
/^[\w]+/
\= Expect no match
2014-07-24 20:01:11 +02:00
<20>cole
/^[\W]+/
<20>cole
/^[\W]+/locale=fr_FR
\= Expect no match
2014-07-24 20:01:11 +02:00
<20>cole
/[\b]/
\b
\= Expect no match
2014-07-24 20:01:11 +02:00
a
/[\b]/locale=fr_FR
\b
\= Expect no match
2014-07-24 20:01:11 +02:00
a
/^\w+/
\= Expect no match
2014-07-24 20:01:11 +02:00
<20>cole
/^\w+/locale=fr_FR
<20>cole
/(.+)\b(.+)/
<20>cole
/(.+)\b(.+)/locale=fr_FR
\= Expect no match
2014-07-24 20:01:11 +02:00
<20>cole
/<2F>cole/i
<20>cole
\= Expect no match
2014-07-24 20:01:11 +02:00
<20>cole
/<2F>cole/i,locale=fr_FR
<20>cole
<20>cole
/\w/I
/\w/I,locale=fr_FR
2014-07-25 11:36:50 +02:00
# All remaining tests are in the fr_FR locale, so set the default.
#pattern locale=fr_FR
/^[\xc8-\xc9]/i
2014-07-24 20:01:11 +02:00
<20>cole
<20>cole
2014-07-25 11:36:50 +02:00
/^[\xc8-\xc9]/
2014-07-24 20:01:11 +02:00
<20>cole
\= Expect no match
2014-07-24 20:01:11 +02:00
<20>cole
2014-07-25 11:36:50 +02:00
/\W+/
2014-07-24 20:01:11 +02:00
>>>\xaa<<<
>>>\xba<<<
2014-07-25 11:36:50 +02:00
/[\W]+/
2014-07-24 20:01:11 +02:00
>>>\xaa<<<
>>>\xba<<<
2014-07-25 11:36:50 +02:00
/[^[:alpha:]]+/
2014-07-24 20:01:11 +02:00
>>>\xaa<<<
>>>\xba<<<
2014-07-25 11:36:50 +02:00
/\w+/
2014-07-24 20:01:11 +02:00
>>>\xaa<<<
>>>\xba<<<
2014-07-25 11:36:50 +02:00
/[\w]+/
2014-07-24 20:01:11 +02:00
>>>\xaa<<<
>>>\xba<<<
2014-07-25 11:36:50 +02:00
/[[:alpha:]]+/
2014-07-24 20:01:11 +02:00
>>>\xaa<<<
>>>\xba<<<
2014-07-25 11:36:50 +02:00
/[[:alpha:]][[:lower:]][[:upper:]]/IB
2014-07-24 20:01:11 +02:00
# End of testinput3