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
|
# 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]+/
*** Failers
No match
cole
No match
/^[\w]+/locale=french
cole
0: cole
/^[\w]+/
*** Failers
No match
cole
No match
/^[\W]+/
cole
0: \xc9
/^[\W]+/locale=french
*** Failers
0: ***
cole
No match
/[\b]/
\b
0: \x08
*** Failers
No match
a
No match
/[\b]/locale=french
\b
0: \x08
*** Failers
No match
a
No match
/^\w+/
*** Failers
No match
cole
No match
/^\w+/locale=french
cole
0: cole
/(.+)\b(.+)/
cole
0: \xc9cole
1: \xc9
2: cole
/(.+)\b(.+)/locale=french
*** Failers
0: *** Failers
1: ***
2: Failers
cole
No match
/cole/i
cole
0: \xc9cole
*** Failers
No match
cole
No match
/cole/i,locale=french
cole
0: cole
cole
0: cole
/\w/I
Capture group count = 0
Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z
Subject length lower bound = 1
/\w/I,locale=french
Capture group count = 0
Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z
Subject length lower bound = 1
# All remaining tests are in the french locale, so set the default.
#pattern locale=french
/^[\xc8-\xc9]/i
cole
0:
cole
0:
/^[\xc8-\xc9]/
cole
0:
*** Failers
No match
cole
No match
/\W+/
>>>\xaa<<<
0: >>>
>>>\xba<<<
0: >>>
/[\W]+/
>>>\xaa<<<
0: >>>
>>>\xba<<<
0: >>>
/[^[:alpha:]]+/
>>>\xaa<<<
0: >>>
>>>\xba<<<
0: >>>
/\w+/
>>>\xaa<<<
0:
>>>\xba<<<
0:
/[\w]+/
>>>\xaa<<<
0:
>>>\xba<<<
0:
/[[:alpha:]]+/
>>>\xaa<<<
0:
>>>\xba<<<
0:
/[[:alpha:]][[:lower:]][[:upper:]]/IB
------------------------------------------------------------------
Bra
[A-Za-z\x83\x8a\x8c\x8e\x9a\x9c\x9e\x9f\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\xff]
[a-z\x83\x9a\x9c\x9e\xaa\xb5\xba\xdf-\xf6\xf8-\xff]
[A-Z\x8a\x8c\x8e\x9f\xc0-\xd6\xd8-\xde]
Ket
End
------------------------------------------------------------------
Capture group count = 0
Starting code units: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
a b c d e f g h i j k l m n o p q r s t u v w x y z
Subject length lower bound = 3
# End of testinput3
|