Home
last modified time | relevance | path

Searched refs:locale (Results 1 – 25 of 190) sorted by last modified time

12345678

/php-src/
H A DNEWS75 . Fixed Numberformatter::__construct when the locale is invalid, now
H A DUPGRADING377 . 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 Dconfig.m432 locale/locale.c \
33 locale/locale_class.c \
34 locale/locale_methods.c \
109 PHP_ADD_BUILD_DIR($ext_builddir/locale)
H A Dphp_intl.stub.php293 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 Dphp_intl_arginfo.h11 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 Dnightly.yml700 sudo locale-gen de_DE
/php-src/Zend/
H A Dzend_operators.c2853 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 Dsetlocale_variation3.phpt10 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 Dsetlocale_variation4.phpt17 /*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 Dsetlocale_variation5.phpt17 /* 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 Dgettext_textdomain-retval.phpt9 die("skip en_US.UTF-8 locale not supported.");
17 bindtextdomain ("messages", "./locale");
/php-src/ext/intl/dateformat/
H A Ddateformat.stub.php39 ?string $locale, argument
53 ?string $locale, argument
153 …public static function formatObject($datetime, $format = null, ?string $locale = null): string|fal… argument
H A Ddateformat_arginfo.h5 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 Dcalendar_methods.cpp165 *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 Dgregoriancalendar_methods.cpp87 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 Dcalendar.stub.php97 … 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 Dcalendar_arginfo.h9 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 Dcollator.stub.php78 public function __construct(string $locale) {} argument
84 public static function create(string $locale): ?Collator {} argument
H A Dcollator_arginfo.h5 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 Dlocale.stub.php38 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 Dlocale_arginfo.h8 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 Dresourcebundle_class.c79 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 Dresourcebundle.stub.php8 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 Dresourcebundle_arginfo.h5 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 Dtimezone_arginfo.h40 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null")

Completed in 108 milliseconds

12345678