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.

Methods

static Boolean
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 null|string
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.

Details

at line line 75
static Boolean isExtensionLoaded()

Returns whether the intl extension is installed.

Return Value

Boolean Returns true if the intl extension is installed, false otherwise.

at line line 85
static CurrencyBundleInterface getCurrencyBundle()

Returns the bundle containing currency information.

Return Value

CurrencyBundleInterface The currency resource bundle.

at line line 99
static LanguageBundleInterface getLanguageBundle()

Returns the bundle containing language information.

Return Value

LanguageBundleInterface The language resource bundle.

at line line 113
static LocaleBundleInterface getLocaleBundle()

Returns the bundle containing locale information.

Return Value

LocaleBundleInterface The locale resource bundle.

at line line 127
static RegionBundleInterface getRegionBundle()

Returns the bundle containing region information.

Return Value

RegionBundleInterface The region resource bundle.

at line line 141
static null|string getIcuVersion()

Returns the version of the installed ICU library.

Return Value

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

at line line 171
static string getIcuDataVersion()

Returns the version of the installed ICU data.

Return Value

string The version of the installed ICU data.

at line line 185
static string getIcuStubVersion()

Returns the ICU version that the stub classes mimic.

Return Value

string The ICU version of the stub classes.