1<?php 2 3/** @generate-function-entries */ 4 5class Locale 6{ 7 /** 8 * @return string 9 * @alias locale_get_default 10 */ 11 public static function getDefault() {} 12 13 /** 14 * @return bool 15 * @alias locale_set_default 16 */ 17 public static function setDefault(string $locale) {} 18 19 /** 20 * @return string|null 21 * @alias locale_get_primary_language 22 */ 23 public static function getPrimaryLanguage(string $locale) {} 24 25 /** 26 * @return string|null 27 * @alias locale_get_script 28 */ 29 public static function getScript(string $locale) {} 30 31 /** 32 * @return string|null 33 * @alias locale_get_region 34 */ 35 public static function getRegion(string $locale) {} 36 37 /** 38 * @return array|false|null 39 * @alias locale_get_keywords 40 */ 41 public static function getKeywords(string $locale) {} 42 43 /** 44 * @return string|false 45 * @alias locale_get_display_script 46 */ 47 public static function getDisplayScript(string $locale, ?string $displayLocale = null) {} 48 49 /** 50 * @return string|false 51 * @alias locale_get_display_region 52 */ 53 public static function getDisplayRegion(string $locale, ?string $displayLocale = null) {} 54 55 /** 56 * @return string|false 57 * @alias locale_get_display_name 58 */ 59 public static function getDisplayName(string $locale, ?string $displayLocale = null) {} 60 61 /** 62 * @return string|false 63 * @alias locale_get_display_language 64 */ 65 public static function getDisplayLanguage(string $locale, ?string $displayLocale = null) {} 66 67 /** 68 * @return string|false 69 * @alias locale_get_display_variant 70 */ 71 public static function getDisplayVariant(string $locale, ?string $displayLocale = null) {} 72 73 /** 74 * @return string|false 75 * @alias locale_compose 76 */ 77 public static function composeLocale(array $subtags) {} 78 79 /** 80 * @return array|null 81 * @alias locale_parse 82 */ 83 public static function parseLocale(string $locale) {} 84 85 /** 86 * @return array|null 87 * @alias locale_get_all_variants 88 */ 89 public static function getAllVariants(string $locale) {} 90 91 /** 92 * @return bool|null 93 * @alias locale_filter_matches 94 */ 95 public static function filterMatches(string $languageTag, string $locale, bool $canonicalize = false) {} 96 97 /** 98 * @return string|null 99 * @alias locale_lookup 100 */ 101 public static function lookup(array $languageTag, string $locale, bool $canonicalize = false, ?string $defaultLocale = null) {} 102 103 /** 104 * @return string|null 105 * @alias locale_canonicalize 106 */ 107 public static function canonicalize(string $locale) {} 108 109 /** 110 * @return string|false 111 * @alias locale_accept_from_http 112 */ 113 public static function acceptFromHttp(string $header) {} 114} 115