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

static bool
isExtensionLoaded()

Returns whether the intl extension is installed.

getCurrencyBundle()

Returns the bundle containing currency information.

getLanguageBundle()

Returns the bundle containing language information.

getLocaleBundle()

Returns the bundle containing locale information.

getRegionBundle()

Returns the bundle containing region information.

static string|null
getIcuVersion()

Returns the version of the installed ICU library.

static string
getIcuDataVersion()

Returns the version of the installed ICU data.

static string
getIcuStubVersion()

Returns the ICU version that the stub classes mimic.

static string
getDataDirectory()

Returns the absolute path to the data directory.

Details

at line 107
static bool isExtensionLoaded()

Returns whether the intl extension is installed.

Return Value

bool Returns true if the intl extension is installed, false otherwise

at line 117
static CurrencyBundleInterface getCurrencyBundle()

Returns the bundle containing currency information.

Return Value

CurrencyBundleInterface The currency resource bundle

at line 135
static LanguageBundleInterface getLanguageBundle()

Returns the bundle containing language information.

Return Value

LanguageBundleInterface The language resource bundle

at line 157
static LocaleBundleInterface getLocaleBundle()

Returns the bundle containing locale information.

Return Value

LocaleBundleInterface The locale resource bundle

at line 174
static RegionBundleInterface getRegionBundle()

Returns the bundle containing region information.

Return Value

RegionBundleInterface The region resource bundle

at line 192
static string|null getIcuVersion()

Returns the version of the installed ICU library.

Return Value

string|null The ICU version or NULL if it could not be determined

at line 222
static string getIcuDataVersion()

Returns the version of the installed ICU data.

Return Value

string The version of the installed ICU data

at line 236
static string getIcuStubVersion()

Returns the ICU version that the stub classes mimic.

Return Value

string The ICU version of the stub classes

at line 246
static string getDataDirectory()

Returns the absolute path to the data directory.

Return Value

string The absolute path to the data directory