/php-src/ |
H A D | NEWS | 75 . Fixed Numberformatter::__construct when the locale is invalid, now
|
H A D | UPGRADING | 377 . IntlDateFormatter::__construct() throws a ValueError if the locale is invalid. 378 . NumberFormatter::__construct() throws a ValueError if the locale is invalid.
|
/php-src/ext/intl/ |
H A D | config.m4 | 32 locale/locale.c \ 33 locale/locale_class.c \ 34 locale/locale_methods.c \ 109 PHP_ADD_BUILD_DIR($ext_builddir/locale)
|
H A D | php_intl.stub.php | 293 function collator_create(string $locale): ?Collator {} argument 333 ?string $locale, argument 466 function locale_set_default(string $locale): true {} argument 468 function locale_get_primary_language(string $locale): ?string {} argument 470 function locale_get_script(string $locale): ?string {} argument 472 function locale_get_region(string $locale): ?string {} argument 478 function locale_get_keywords(string $locale): array|false|null {} argument 492 function locale_parse(string $locale): ?array {} argument 494 function locale_get_all_variants(string $locale): ?array {} argument 498 function locale_canonicalize(string $locale): ?string {} argument [all …]
|
H A D | php_intl_arginfo.h | 11 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 205 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 280 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1) 371 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 512 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 516 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 524 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 528 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 545 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 552 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) [all …]
|
/php-src/.github/workflows/ |
H A D | nightly.yml | 700 sudo locale-gen de_DE
|
/php-src/Zend/ |
H A D | zend_operators.c | 2853 const char *locale = setlocale(LC_CTYPE, NULL); in zend_update_current_locale() 2855 if (locale) { in zend_update_current_locale() 2856 const char *dot = strchr(locale, '.'); in zend_update_current_locale()
|
/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 …]
|
/php-src/ext/gettext/tests/ |
H A D | gettext_textdomain-retval.phpt | 9 die("skip en_US.UTF-8 locale not supported."); 17 bindtextdomain ("messages", "./locale");
|
/php-src/ext/intl/dateformat/ |
H A D | dateformat.stub.php | 39 ?string $locale, argument 53 ?string $locale, argument 153 …public static function formatObject($datetime, $format = null, ?string $locale = null): string|fal… argument
|
H A D | dateformat_arginfo.h | 5 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1) 14 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1) 70 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null")
|
/php-src/ext/intl/calendar/ |
H A D | calendar_methods.cpp | 165 *locale; in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() local 172 &key, &key_len, &locale, &locale_len, &commonly_used) == FAILURE) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 177 Locale::createFromName(locale), (UBool)commonly_used, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 211 Locale locale = availLocales[i]; in PHP_FUNCTION() local 212 add_next_index_string(return_value, locale.getName()); in PHP_FUNCTION() 650 Locale locale = co->ucal->getLocale((ULocDataLocaleType)locale_type, in PHP_FUNCTION() local 655 RETURN_STRING(locale.getName()); in PHP_FUNCTION()
|
H A D | gregoriancalendar_methods.cpp | 87 char *locale = NULL; in _php_intlgregcal_constructor_body() local 120 "|z!s!", &tz_object, &locale, &locale_len) == FAILURE) { in _php_intlgregcal_constructor_body() 158 if (!locale) { in _php_intlgregcal_constructor_body() 159 locale = const_cast<char*>(intl_locale_get_default()); in _php_intlgregcal_constructor_body() 162 gcal = new GregorianCalendar(tz, Locale::createFromName(locale), in _php_intlgregcal_constructor_body()
|
H A D | calendar.stub.php | 97 … public static function createInstance($timezone = null, ?string $locale = null): ?IntlCalendar {} argument 139 …public static function fromDateTime(DateTime|string $datetime, ?string $locale = null): ?IntlCalen… argument 200 …public static function getKeywordValuesForLocale(string $keyword, string $locale, bool $onlyCommon… argument
|
H A D | calendar_arginfo.h | 9 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null") 36 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null") 66 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
|
/php-src/ext/intl/collator/ |
H A D | collator.stub.php | 78 public function __construct(string $locale) {} argument 84 public static function create(string $locale): ?Collator {} argument
|
H A D | collator_arginfo.h | 5 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 9 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
|
/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 …]
|
H A D | locale_arginfo.h | 8 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 12 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 20 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 24 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 41 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 48 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) 54 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
|
/php-src/ext/intl/resourcebundle/ |
H A D | resourcebundle_class.c | 79 const char *locale; in resourcebundle_ctor() local 89 &locale, &locale_len, &bundlename, &bundlename_len, &fallback ) == FAILURE ) in resourcebundle_ctor() 106 if (locale == NULL) { in resourcebundle_ctor() 107 locale = intl_locale_get_default(); in resourcebundle_ctor() 116 rb->me = ures_open(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor() 118 rb->me = ures_openDirect(bundlename, locale, &INTL_DATA_ERROR_CODE(rb)); in resourcebundle_ctor() 129 bundlename ? bundlename : "(default data)", locale, in resourcebundle_ctor() 224 const char * locale = ures_getLocaleByType( rb->me, ULOC_ACTUAL_LOCALE, &icuerror ); in resource_bundle_array_fetch() local 226 spprintf(&pbuf, 0, "Cannot load element %d without fallback from to %s", index, locale); in resource_bundle_array_fetch() 228 spprintf(&pbuf, 0, "Cannot load element '%s' without fallback from to %s", key, locale); in resource_bundle_array_fetch()
|
H A D | resourcebundle.stub.php | 8 public function __construct(?string $locale, ?string $bundle, bool $fallback = true) {} argument 14 …public static function create(?string $locale, ?string $bundle, bool $fallback = true): ?ResourceB… argument
|
H A D | resourcebundle_arginfo.h | 5 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1) 11 ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1)
|
/php-src/ext/intl/timezone/ |
H A D | timezone_arginfo.h | 40 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null")
|