Home
last modified time | relevance | path

Searched refs:setlocale (Results 1 – 25 of 178) sorted by relevance

12345678

/PHP-7.4/ext/standard/tests/strings/
H A Dsetlocale_error.phpt2 Test setlocale() function : error condition
13 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
14 : string setlocale(int $category , array $locale);
19 echo "*** Testing setlocale() : error conditions ***\n";
22 echo "\n-- Testing setlocale() function with Zero arguments --";
23 var_dump( setlocale());
27 var_dump( setlocale(LC_ALL) );
32 var_dump( setlocale(LC_ALL,$invalid_locales) );
40 var_dump(setlocale(LC_ALL,str_pad('',255,'A')));
45 *** Testing setlocale() : error conditions ***
[all …]
H A Dhtmlentities03.phpt2 htmlentities() test 3 (setlocale / de_DE.ISO-8859-1)
5 $result = (bool)setlocale(LC_CTYPE, "de_DE.ISO-8859-1", "de_DE.ISO8859-1");
6 if (!$result || preg_match('/ISO/i', setlocale(LC_CTYPE, 0)) == 0) {
7 die("skip setlocale() failed\n");
16 setlocale( LC_CTYPE, "de_DE.ISO-8859-1", "de_DE.ISO8859-1");
H A Dsetlocale-win32.phpt9 var_dump(setlocale(LC_ALL, 'de_DE'));
10 var_dump(setlocale(LC_ALL, 'de_DE.UTF-8'));
12 var_dump(setlocale(LC_ALL, 'uk_UK'));
13 var_dump(setlocale(LC_ALL, 'uk_US'));
14 var_dump(setlocale(LC_ALL, 'us_UK'));
15 var_dump(setlocale(LC_ALL, 'us_US'));
H A Dbug68636.phpt2 Bug #68636 (setlocale no longer returns current value per category).
8 if (setlocale(LC_ALL, "en_US.UTF8") !== "en_US.UTF8") {
14 var_dump(setlocale(LC_TIME, 'en_US.UTF8'));
15 var_dump(setlocale(LC_NUMERIC, 'C'));
16 var_dump(setlocale(LC_TIME, 0));
H A Dhtmlentities15.phpt2 htmlentities() test 15 (setlocale / KOI8-R)
9 $result = (bool)setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R");
10 if (!$result || preg_match('/koi8/i', setlocale(LC_CTYPE, 0)) == 0) {
11 die("skip setlocale() failed\n");
19 setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R");
H A Dsetlocale_variation2.phpt15 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
16 : string setlocale(int $category , array $locale);
23 echo "*** Testing setlocale() : usage variations ***\n";
63 echo "-- Test setlocale() with all available locale in the system --\n";
65 // try n set each locale using setlocale() and keep track failures, if any
68 if(setlocale(LC_ALL,$value )){
78 echo "No of setlocale() success = ".$success_count."\n";
85 echo "Names of locale() for which setlocale() failed ...\n";
95 *** Testing setlocale() : usage variations ***
96 -- Test setlocale() with all available locale in the system --
[all …]
H A Dhtmlentities04.phpt2 htmlentities() test 4 (setlocale / ja_JP.EUC-JP)
5 $result = (bool)setlocale(LC_CTYPE, "ja_JP.EUC-JP", "ja_JP.eucJP");
6 if (!$result || preg_match('/EUC[^a-zA-Z]*JP/i', setlocale(LC_CTYPE, 0)) == 0) {
7 die("skip setlocale() failed\n");
16 setlocale( LC_CTYPE, "ja_JP.EUC-JP", "ja_JP.eucJP" );
H A Dhtmlentities02.phpt2 htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15)
5 $result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
7 die("skip setlocale() failed\n");
16 setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
H A Dsetlocale_basic3.phpt2 Test setlocale() function : basic functionality - passing multiple locales as argument
8 if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) {
14 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
15 : string setlocale(int $category , array $locale);
21 /* Test the setlocale() when multiple locales are provided as argument */
48 pass as argument to setlocale() */
49 echo "*** Testing setlocale() by passing multiple locales as argument ***\n";
75 // call setlocale()
76 $new_locale = setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8");
78 // dump the name of the new locale set by setlocale()
[all …]
H A Dsetlocale_variation4.phpt2 Test setlocale() function : usage variations - setting system locale as null
8 if (setlocale(LC_ALL,'en_US.utf8') === false || setlocale(LC_ALL,'en_AU.utf8') === false) {
16 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
17 * : string setlocale(int $category , array $locale);
25 echo "*** Testing setlocale() : usage variations - Setting system locale = null ***\n";
28 setlocale(LC_ALL,"en_AU.utf8");
31 //returns current locale,before executing setlocale() .
35 //Testing setlocale() by giving locale = null
37 setlocale(LC_ALL, null);
40 //Returns Current locale,after executing setlocale().
[all …]
H A Dsetlocale_variation5.phpt2 Test setlocale() function : usage variations - Setting system locale as empty string
8 if (setlocale(LC_ALL,'en_AU.utf8') === false || setlocale(LC_ALL,'en_US.utf8') === false) {
16 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
17 * : string setlocale(int $category , array $locale);
25 echo "*** Testing setlocale() : usage variations - setting system locale = \"\" ***\n";
28 setlocale(LC_ALL,'en_AU.utf8');
32 //returns current locale,before executing setlocale() .
37 //Testing setlocale() by giving locale = null
39 setlocale(LC_ALL, "");
43 //Returns Current locale,after executing setlocale().
[all …]
H A Dsetlocale_variation3.phpt2 Test setlocale() function : usage variations - setting system locale = 0
8 if (setlocale(LC_ALL,'en_US.utf8') === false) {
14 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
15 * : string setlocale(int $category , array $locale);
23 echo "*** Testing setlocale() : usage variations - setting system locale = 0 ***\n";
28 setlocale(LC_ALL,"en_US.utf8");
31 //returns current locale,before executing setlocale().
36 //Testing setlocale() by giving locale = 0
38 setlocale(LC_ALL, 0);
41 //returns current locale,after executing setlocale().
[all …]
H A Dsetlocale_variation1.phpt2 Test setlocale() function : usage variations - passing multiple valid/invlaid locales as argument
8 if (setlocale(LC_ALL, "en_US.utf8", "Ko_KR.utf8", "zh_CN.utf8") === false) {
14 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
15 : string setlocale(int $category , array $locale);
21 /* Test the setlocale() when multiple valid/invalid locales are provided as argument */
48 pass as argument to setlocale(), pass 2 invalid arguments along with two valid arguments*/
49 echo "*** Testing setlocale() by passing multiple valid/invalid locales as argument ***\n";
68 // Now check for three locales that is present in the system and use that as argument to setlocale()
74 // call setlocale()
77 // dump the name of the new locale set by setlocale()
[all …]
H A Dsetlocale_basic2.phpt2 Test setlocale() function : basic functionality - set locale using an array
14 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
15 : string setlocale(int $category , array $locale);
21 /* Test the setlocale() when an array is provided as input containing list of locales */
48 input to setlocale() */
50 echo "*** Testing setlocale() with an array containing list of locales ***\n";
85 // given as input to setlocale(), later verify the new locale setting by
95 // setlocale() function.
99 $new_locale = setlocale(LC_ALL, $list_of_locales);
124 *** Testing setlocale() with an array containing list of locales ***
[all …]
H A Dsetlocale_basic1.phpt2 Test setlocale() function : basic functionality - setting system locale to a specific
8 if (setlocale(LC_ALL, "en_US.utf8", "en_AU.utf8", "ko_KR.utf8", "zh_CN.utf8", "de_DE.utf8", "es_EC.…
14 /* Prototype : string setlocale (int $category , string $locale [,string $..] )
15 : string setlocale(int $category , array $locale);
21 /* test setlocale by specifying a specific locale as input */
49 echo "*** Testing setlocale() : basic functionality - set to a specific locale ***\n";
92 var_dump(setlocale(LC_ALL, $value ));
106 //checking currency settings in the new locale to see if the setlocale() was effective
119 *** Testing setlocale() : basic functionality - set to a specific locale ***
H A Dbug79986.phpt5 if (!setlocale(LC_ALL, 'de_DE.ISO-8859-1', 'de-DE')) die('skip German locale not available');
9 setlocale(LC_ALL, 'de_DE.ISO-8859-1', 'de-DE');
/PHP-7.4/ext/pcre/tests/
H A Dlocales.phpt6 if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) die('skip pt locale not av…
15 setlocale(LC_ALL, 'C', 'POSIX');
18 setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese');
21 setlocale(LC_ALL, 'C', 'POSIX');
H A Dbug73483.phpt6 setlocale(LC_ALL, "C");
8 setlocale(LC_ALL, "en_US");
10 setlocale(LC_ALL, "C");
H A Dbug76850.phpt5 $l = setlocale(LC_CTYPE, 0);
15 $oldlocale = setlocale(LC_CTYPE, 0);
16 setlocale(LC_CTYPE, $oldlocale);
H A Dctype_back_to_c.phpt5 if (!setlocale(LC_CTYPE, "de_DE", "de-DE")) die("skip requires de_DE locale");
9 var_dump(setlocale(LC_CTYPE, "de_DE", "de-DE") !== false);
11 var_dump(setlocale(LC_CTYPE, "C") !== false);
/PHP-7.4/ext/intl/tests/
H A Dbug67052.phpt9 $l = setlocale(LC_ALL, 'de_DE');
13 setlocale(LC_ALL, $l);
20 setlocale(LC_ALL, 'de_DE.UTF-8');
24 $res_str .= setlocale(LC_NUMERIC, 0);
/PHP-7.4/sapi/cli/tests/
H A Dbug44564.phpt5 if (false == setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8")) {
6 die("skip setlocale() failed\n");
11 setlocale(LC_CTYPE, "UTF8", "en_US.UTF-8");
/PHP-7.4/ext/gettext/tests/
H A Dgettext_dcgettext.phpt8 if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
15 setlocale(LC_MESSAGES, 'en_US.UTF-8');
17 setlocale(LC_ALL, 'en_US.UTF-8');
H A Dgettext_dgettext.phpt8 if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
15 setlocale(LC_MESSAGES, 'en_US.UTF-8');
17 setlocale(LC_ALL, 'en_US.UTF-8');
/PHP-7.4/tests/lang/
H A Dbug30638.phpt5 if (setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1") === FAL…
6 print "skip setlocale() failed";
14 setlocale(LC_NUMERIC, "de_DE.UTF-8", "de_DE", "de", "german", "ge", "de_DE.ISO-8859-1");

Completed in 32 milliseconds

12345678