/** * Returns the version of the installed ICU data. * * @return string The version of the installed ICU data. */ public static function getIcuDataVersion() { if (false === self::$icuDataVersion) { self::$icuDataVersion = trim(file_get_contents(self::getDataDirectory() . '/version.txt')); } return self::$icuDataVersion; }
/** * Resets the internal state. */ private static function reset() { self::$currencyBundle = null; self::$languageBundle = null; self::$localeBundle = null; self::$regionBundle = null; self::$icuVersion = false; self::$icuDataVersion = false; self::$entryReader = null; }
/** * Returns the version of the installed ICU data. * * @return string The version of the installed ICU data. */ public static function getIcuDataVersion() { if (false === self::$icuDataVersion) { self::$icuDataVersion = IcuData::getVersion(); } return self::$icuDataVersion; }