/php-src/ext/intl/tests/ |
H A D | locale_set_default.phpt | 2 locale_set_default($locale) 81 $res_str .= "$locale: set locale '$lang'"; 84 $res_str .= "$locale: Error in set locale"; 99 root: set locale 'root' 101 Hindi: set locale 'Hindi' 102 de: set locale 'de' 103 fr: set locale 'fr' 104 ja: set locale 'ja' 117 de-DE: set locale 'de-DE' 118 en-US: set locale 'en-US' [all …]
|
H A D | dateformat_get_locale.phpt | 29 $res_str .= "\nCreating IntlDateFormatter with locale = $locale_entry"; 31 $locale = ut_datefmt_get_locale( $fmt , 1); 32 $res_str .= "\nAfter call to get_locale : locale= $locale"; 52 Creating IntlDateFormatter with locale = de-DE 53 After call to get_locale : locale= de_DE 55 Creating IntlDateFormatter with locale = sl-IT-nedis 56 After call to get_locale : locale= sl 58 Creating IntlDateFormatter with locale = en_UK 59 After call to get_locale : locale= en 61 Creating IntlDateFormatter with locale = hi [all …]
|
H A D | locale_get_display_language3.phpt | 70 $res_str .= "locale='$locale'\n"; 104 locale='i-ami' 109 locale='i-bnn' 124 locale='i-hak' 134 locale='i-lux' 149 locale='i-pwn' 154 locale='i-tao' 159 locale='i-tay' 164 locale='i-tsu' 169 locale='no-bok' [all …]
|
H A D | locale_get_display_variant2.phpt | 76 $res_str .= "locale='$locale'\n"; 100 locale='root' 110 locale='Hindi' 115 locale='de' 120 locale='fr' 125 locale='ja' 135 locale='zh-Hant' 190 locale='de-DE' 195 locale='en-US' 200 locale='es-419' [all …]
|
H A D | locale_get_display_script4.phpt | 76 $res_str .= "locale='$locale'\n"; 100 locale='root' 110 locale='Hindi' 115 locale='de' 120 locale='fr' 125 locale='ja' 135 locale='zh-Hant' 190 locale='de-DE' 195 locale='en-US' 200 locale='es-419' [all …]
|
H A D | locale_get_display_language.phpt | 79 $res_str .= "locale='$locale'\n"; 103 locale='root' 113 locale='Hindi' 118 locale='de' 123 locale='fr' 128 locale='ja' 198 locale='de-DE' 203 locale='en-US' 208 locale='es-419' 223 locale='zh-min' [all …]
|
H A D | locale_get_display_language2.phpt | 79 $res_str .= "locale='$locale'\n"; 103 locale='root' 113 locale='Hindi' 118 locale='de' 123 locale='fr' 128 locale='ja' 198 locale='de-DE' 203 locale='en-US' 208 locale='es-419' 223 locale='zh-min' [all …]
|
H A D | dateformat_format_variant3.phpt | 160 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 162 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1 164 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2 166 IntlDateFormatter locale= en_US ,datetype = 3 ,timetype =3 175 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 177 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1 179 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2 181 IntlDateFormatter locale= en_US ,datetype = 3 ,timetype =3 190 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 192 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1 [all …]
|
H A D | ut_common.inc | 46 function ut_coll_create( $locale ) 48 return $GLOBALS['oo-mode'] ? Collator::create( $locale ) : collator_create( $locale ); 237 return $GLOBALS['oo-mode'] ? Locale::setDefault( $locale ) : locale_set_default( $locale ); 243 function ut_loc_get_script( $locale ) 245 return $GLOBALS['oo-mode'] ? Locale::getScript( $locale ) : locale_get_script( $locale ); 247 function ut_loc_get_region( $locale ) 249 return $GLOBALS['oo-mode'] ? Locale::getRegion( $locale ) : locale_get_region( $locale ); 253 return $GLOBALS['oo-mode'] ? Locale::getKeywords( $locale ) : locale_get_keywords( $locale ); 281 return $GLOBALS['oo-mode'] ? Locale::parseLocale( $locale ) : locale_parse($locale ); 285 …return $GLOBALS['oo-mode'] ? Locale::getAllVariants( $locale ) : locale_get_all_variants( $locale … [all …]
|
H A D | dateformat_format_parse_version_icu72-1.phpt | 148 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 151 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1 154 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2 162 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 165 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1 168 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2 176 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 179 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1 182 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2 190 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 [all …]
|
H A D | dateformat_format_parse_version2.phpt | 148 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 151 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1 154 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2 162 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 165 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1 168 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2 176 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 179 IntlDateFormatter locale= en_US ,datetype = 1 ,timetype =1 182 IntlDateFormatter locale= en_US ,datetype = 2 ,timetype =2 190 IntlDateFormatter locale= en_US ,datetype = 0 ,timetype =0 [all …]
|
H A D | locale_get_display_name6.phpt | 90 $res_str .= "locale='$locale'\n"; 140 locale='zh-wuu' 145 locale='i-tay' 170 locale='root' 180 locale='Hindi' 185 locale='de' 190 locale='fr' 195 locale='ja' 260 locale='de-DE' 265 locale='en-US' [all …]
|
H A D | locale_get_display_name7.phpt | 90 $res_str .= "locale='$locale'\n"; 140 locale='zh-wuu' 145 locale='i-tay' 170 locale='root' 180 locale='Hindi' 185 locale='de' 190 locale='fr' 195 locale='ja' 260 locale='de-DE' 265 locale='en-US' [all …]
|
H A D | locale_get_display_name8.phpt | 89 $res_str .= "locale='$locale'\n"; 139 locale='zh-wuu' 144 locale='i-tay' 169 locale='root' 179 locale='Hindi' 184 locale='de' 189 locale='fr' 194 locale='ja' 259 locale='de-DE' 264 locale='en-US' [all …]
|
H A D | locale_get_display_name5.phpt | 89 $res_str .= "locale='$locale'\n"; 139 locale='zh-wuu' 144 locale='i-tay' 169 locale='root' 179 locale='Hindi' 184 locale='de' 189 locale='fr' 194 locale='ja' 259 locale='de-DE' 264 locale='en-US' [all …]
|
H A D | locale_get_default.phpt | 20 $res_str .= "Default locale: $lang"; 25 $res_str .= "Default locale: $lang"; 30 $res_str .= "Default locale: $lang"; 44 Default locale: en-US 45 Default locale: de-DE 46 Default locale: fr
|
H A D | collator_create4.phpt | 27 foreach( $locales as $locale ) 29 // Create Collator with the current locale. 30 $coll = ut_coll_create( $locale ); 33 $res_str .= "Error creating collator with '$locale' locale: " . 43 $res_str .= "Locale: '$locale'\n" . 44 " ULOC_REQUESTED_LOCALE = '$locale'\n" . 65 Error creating collator with 'uk-ua_CALIFORNIA@currency=;currency=GRN' locale: collator_create: una… 78 …72931333537394143454749515357596163656769717375777981838587899193959799' locale: Locale string too…
|
/php-src/ext/intl/locale/ |
H A D | locale.stub.php | 38 public static function setDefault(string $locale): true {} argument 44 public static function getPrimaryLanguage(string $locale): ?string{} argument 50 public static function getScript(string $locale): ?string {} argument 56 public static function getRegion(string $locale): ?string {} argument 63 public static function getKeywords(string $locale): array|false|null {} argument 69 …public static function getDisplayScript(string $locale, ?string $displayLocale = null): string|fal… argument 75 …public static function getDisplayRegion(string $locale, ?string $displayLocale = null): string|fal… argument 81 …public static function getDisplayName(string $locale, ?string $displayLocale = null): string|false… argument 105 public static function parseLocale(string $locale): ?array {} argument 111 public static function getAllVariants(string $locale): ?array {} argument [all …]
|
/php-src/ext/standard/tests/strings/ |
H A D | setlocale_variation3.phpt | 10 die('skip en_US.utf8 locale not available'); 15 /* If locale is "0", the locale setting is not affected, only the current setting is returned */ 21 //initially giving the locale 24 echo "Locale info, before setting the locale\n"; 30 //Testing setlocale() by giving locale = 0 31 echo "Setting system locale, category = LC_ALL and locale = 0\n"; 40 echo "Checking locale in the system, Expected : no change in the existing locale\n"; 52 Locale info, before setting the locale 97 Setting system locale, category = LC_ALL and locale = 0 98 Locale info, after setting the locale [all …]
|
H A D | setlocale_variation4.phpt | 17 /*If locale is NULL, the locale names will be set from the values of environment variables with the… 21 //initially setting the locale 24 echo "Locale info, before setting the locale\n"; 29 //Testing setlocale() by giving locale = null 30 echo "Setting system locale, category = LC_ALL and locale = null\n"; 33 echo "Locale info, after setting the locale\n"; 38 echo "Checking new locale in the system, Expected : the locale names will be set from the values of… 50 Locale info, before setting the locale 95 Setting system locale, category = LC_ALL and locale = null 96 Locale info, after setting the locale [all …]
|
H A D | setlocale_variation5.phpt | 17 /* If locale is empty string "", the locale names will be set from the values of environment variab… 21 //initially setting the locale 24 echo "Locale info, before setting the locale\n"; 31 //Testing setlocale() by giving locale = null 32 echo "Setting system locale, category = LC_ALL and locale = \"\"\n"; 35 echo "Locale info, after setting the locale\n"; 42 echo "Checking new locale in the system, Expected : the locale names will be set from the values of… 54 Locale info, before setting the locale 99 Setting system locale, category = LC_ALL and locale = "" 100 Locale info, after setting the locale [all …]
|
H A D | setlocale_basic1.phpt | 15 /* test setlocale by specifying a specific locale as input */ 22 system('locale -a'); 32 // return all the locale found in the system 37 Check the currency settings in the new locale */ 71 // set the system locale to a locale, choose the right locale by 72 // finding a common locale in commonly used locale stored in 75 echo "Setting system locale(LC_ALL) to "; 80 // set the found locale as current locale 91 // check that new locale setting is effective 92 // use localeconv() to get the details of currently set locale [all …]
|
H A D | setlocale_variation2.phpt | 8 exec("locale -a", $output, $exit_code); 10 die("skip locale -a not available"); 18 function good_locale($locale) { 22 return $locale !== 'tt_RU@iqtelif.UTF-8' && $locale !== 'no_NO.ISO-8859-1'; 30 system('locale -a'); 40 // return all the locale found in the system, except for broken one 47 //try different locale names 51 echo "-- Test setlocale() with all available locale in the system --\n"; 55 //set locale to $value, if success, count increments 73 echo "Names of locale() for which setlocale() failed ...\n"; [all …]
|
/php-src/ext/standard/tests/file/ |
H A D | dirname_basic.phpt | 27 '/usr/lib/locale/en_US', 28 '//usr/lib//locale/en_US', 34 '/usr/lib/locale/en_US/', 36 '/usr\lib/locale\en_US', 40 ' /usr/lib/locale/en_US', 66 string(15) "/usr/lib/locale" 67 string(17) "//usr/lib//locale" 73 string(15) "/usr/lib/locale" 79 string(18) " /usr/lib/locale" 80 string(15) "/usr/lib/locale" [all …]
|
H A D | dirname_basic-win32.phpt | 27 '/usr/lib/locale/en_US', 28 '//usr/lib//locale/en_US', 34 '/usr/lib/locale/en_US/', 36 '/usr\lib/locale\en_US', 66 string(15) "/usr/lib/locale" 67 string(17) "//usr/lib//locale" 73 string(15) "/usr/lib/locale" 75 string(15) "/usr\lib/locale" 79 string(18) " /usr/lib/locale" 80 string(15) "/usr/lib/locale" [all …]
|