File: testinput3

package info (click to toggle)
pcre2 10.45-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie, trixie-updates
  • size: 13,920 kB
  • sloc: ansic: 104,102; sh: 6,595; makefile: 782
file content (113 lines) | stat: -rw-r--r-- 1,503 bytes parent folder | download | duplicates (3)
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
# This set of tests checks local-specific features, using the "fr_FR" locale. 
# It is almost 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
    cole

/^[\w]+/locale=fr_FR
    cole

/^[\W]+/
    cole

/^[\W]+/locale=fr_FR
\= Expect no match
    cole

/[\b]/
    \b
\= Expect no match
    a

/[\b]/locale=fr_FR
    \b
\= Expect no match
    a

/^\w+/
\= Expect no match
    cole

/^\w+/locale=fr_FR
    cole

/(.+)\b(.+)/
    cole

/(.+)\b(.+)/locale=fr_FR
\= Expect no match
    cole

/cole/i
    cole
\= Expect no match
    cole

/cole/i,locale=fr_FR
    cole
    cole

/\w/I

/\w/I,locale=fr_FR

# All remaining tests are in the fr_FR locale, so set the default.

#pattern locale=fr_FR

/^[\xc8-\xc9]/i
    cole
    cole

/^[\xc8-\xc9]/
    cole
\= Expect no match
    cole

/\xb5/i
    
\= Expect no match
    \x9c

//i
    \xff
\= Expect no match
    y

/(.)\1/i
    \xfe\xde

/\W+/
    >>>\xaa<<<
    >>>\xba<<< 

/[\W]+/
    >>>\xaa<<<
    >>>\xba<<< 

/[^[:alpha:]]+/
    >>>\xaa<<<
    >>>\xba<<< 

/\w+/
    >>>\xaa<<<
    >>>\xba<<< 

/[\w]+/
    >>>\xaa<<<
    >>>\xba<<< 

/[[:alpha:]]+/
    >>>\xaa<<<
    >>>\xba<<< 
    
/[[:alpha:]][[:lower:]][[:upper:]]/IB

# End of testinput3