php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
locale.stub.php
Go to the documentation of this file.
1<?php
2
4
5class Locale
6{
8 public const int ACTUAL_LOCALE = UNKNOWN;
10 public const int VALID_LOCALE = UNKNOWN;
11
12 public const null DEFAULT_LOCALE = null;
14 public const string LANG_TAG = UNKNOWN;
16 public const string EXTLANG_TAG = UNKNOWN;
18 public const string SCRIPT_TAG = UNKNOWN;
20 public const string REGION_TAG = UNKNOWN;
22 public const string VARIANT_TAG = UNKNOWN;
24 public const string GRANDFATHERED_LANG_TAG = UNKNOWN;
26 public const string PRIVATE_TAG = UNKNOWN;
27
32 public static function getDefault(): string {}
33
38 public static function setDefault(string $locale): true {}
39
44 public static function getPrimaryLanguage(string $locale): ?string{}
45
50 public static function getScript(string $locale): ?string {}
51
56 public static function getRegion(string $locale): ?string {}
57
63 public static function getKeywords(string $locale): array|false|null {}
64
69 public static function getDisplayScript(string $locale, ?string $displayLocale = null): string|false {}
70
75 public static function getDisplayRegion(string $locale, ?string $displayLocale = null): string|false {}
76
81 public static function getDisplayName(string $locale, ?string $displayLocale = null): string|false {}
82
87 public static function getDisplayLanguage(string $locale, ?string $displayLocale = null): string|false {}
88
93 public static function getDisplayVariant(string $locale, ?string $displayLocale = null): string|false {}
94
99 public static function composeLocale(array $subtags): string|false {}
100
105 public static function parseLocale(string $locale): ?array {}
106
111 public static function getAllVariants(string $locale): ?array {}
112
117 public static function filterMatches(string $languageTag, string $locale, bool $canonicalize = false): ?bool {}
118
123 public static function lookup(array $languageTag, string $locale, bool $canonicalize = false, ?string $defaultLocale = null): ?string {}
124
129 public static function canonicalize(string $locale): ?string {}
130
135 public static function acceptFromHttp(string $header): string|false {}
136}
static getRegion(string $locale)
static canonicalize(string $locale)
static getDisplayVariant(string $locale, ?string $displayLocale=null)
const int ACTUAL_LOCALE
static getScript(string $locale)
static lookup(array $languageTag, string $locale, bool $canonicalize=false, ?string $defaultLocale=null)
static acceptFromHttp(string $header)
const int VALID_LOCALE
static setDefault(string $locale)
const string LANG_TAG
const null DEFAULT_LOCALE
const string REGION_TAG
const string GRANDFATHERED_LANG_TAG
static getKeywords(string $locale)
static getDefault()
static getAllVariants(string $locale)
static getDisplayScript(string $locale, ?string $displayLocale=null)
static composeLocale(array $subtags)
const string SCRIPT_TAG
static parseLocale(string $locale)
static getDisplayLanguage(string $locale, ?string $displayLocale=null)
static getPrimaryLanguage(string $locale)
const string PRIVATE_TAG
static getDisplayName(string $locale, ?string $displayLocale=null)
const string VARIANT_TAG
const string EXTLANG_TAG
static getDisplayRegion(string $locale, ?string $displayLocale=null)
static filterMatches(string $languageTag, string $locale, bool $canonicalize=false)
function(EX_VAR(opline->result.var))