Skip to content

Latest commit

 

History

History
382 lines (267 loc) · 5.75 KB

Locale.md

File metadata and controls

382 lines (267 loc) · 5.75 KB

Locale

  • class Locale (php\util\Locale)
  • package std
  • source php/util/Locale.php

Description

Class Locale, Immutable


Static Methods


Methods


Static Methods

ENGLISH()

Locale::ENGLISH(): Locale

US()

Locale::US(): Locale

UK()

Locale::UK(): Locale

CANADA()

Locale::CANADA(): Locale

CANADA_FRENCH()

Locale::CANADA_FRENCH(): Locale

FRENCH()

Locale::FRENCH(): Locale

FRANCE()

Locale::FRANCE(): Locale

ITALIAN()

Locale::ITALIAN(): Locale

ITALY()

Locale::ITALY(): Locale

GERMAN()

Locale::GERMAN(): Locale

GERMANY()

Locale::GERMANY(): Locale

JAPAN()

Locale::JAPAN(): Locale

JAPANESE()

Locale::JAPANESE(): Locale

KOREA()

Locale::KOREA(): Locale

KOREAN()

Locale::KOREAN(): Locale

CHINA()

Locale::CHINA(): Locale

CHINESE()

Locale::CHINESE(): Locale

TAIWAN()

Locale::TAIWAN(): Locale

RUSSIAN()

Locale::RUSSIAN(): Locale

RUSSIA()

Locale::RUSSIA(): Locale

ROOT()

Locale::ROOT(): Locale

getDefault()

Locale::getDefault(bool $globally): Locale

Get default locale (if globally = false - only for the current environment)


setDefault()

Locale::setDefault(php\util\Locale $locale, bool $globally): void

Set default locale


getAvailableLocales()

Locale::getAvailableLocales(): Locale[]

Returns an array of all installed locales. The returned array represents the union of locales supported by the Java runtime environment


Methods

__construct()

__construct(string $lang, string $country, string $variant): void

getLanguage()

getLanguage(): string

getDisplayLanguage()

getDisplayLanguage(php\util\Locale $locale): string

getCountry()

getCountry(): string

getDisplayCountry()

getDisplayCountry(php\util\Locale $locale): string

getVariant()

getVariant(): string

getDisplayVariant()

getDisplayVariant(php\util\Locale $locale): string

getISO3Country()

getISO3Country(): string

getISO3Language()

getISO3Language(): string

__toString()

__toString(): string

Returns a string representation of this Locale object, consisting of language, country, variant, script, and extensions as below::

language + "" + country + "" + (variant + "_#" | "#") + script + "-" + extensions


__clone()

__clone(): void

Class is immutable, the disallowed clone method