Intl
class Intl
Gives access to internationalization data.
Constants
BUFFER_SIZE |
The number of resource bundles to buffer. Loading the same resource bundle for n locales takes up n spots in the buffer. |
CURRENCY_DIR |
The directory name of the currency data. |
LANGUAGE_DIR |
The directory name of the language data. |
SCRIPT_DIR |
The directory name of the script data. |
LOCALE_DIR |
The directory name of the locale data. |
REGION_DIR |
The directory name of the region data. |
Methods
Returns whether the intl extension is installed.
Returns the bundle containing currency information.
Returns the bundle containing language information.
Returns the bundle containing locale information.
Returns the bundle containing region information.
Returns the version of the installed ICU library.
Returns the version of the installed ICU data.
Returns the ICU version that the stub classes mimic.
Returns the absolute path to the data directory.
Details
at line line 107
static bool
isExtensionLoaded()
Returns whether the intl extension is installed.
at line line 117
static CurrencyBundleInterface
getCurrencyBundle()
Returns the bundle containing currency information.
at line line 135
static LanguageBundleInterface
getLanguageBundle()
Returns the bundle containing language information.
at line line 157
static LocaleBundleInterface
getLocaleBundle()
Returns the bundle containing locale information.
at line line 174
static RegionBundleInterface
getRegionBundle()
Returns the bundle containing region information.
at line line 192
static null|string
getIcuVersion()
Returns the version of the installed ICU library.
at line line 222
static string
getIcuDataVersion()
Returns the version of the installed ICU data.
at line line 236
static string
getIcuStubVersion()
Returns the ICU version that the stub classes mimic.
at line line 246
static string
getDataDirectory()
Returns the absolute path to the data directory.