* Sort strings with different accents from the back of the string. This * attribute is automatically set to * On * for the French locales and a few others. Users normally would not need * to explicitly set this attribute. There is a string comparison * performance cost when it is set On, * but sort key length is unaffected. Possible values are: * Collator::ON * Collator::OFF(default) * Collator::DEFAULT_VALUE *
** FRENCH_COLLATION rules *
* F=OFF cote < coté < côte < côté * F=ON cote < côte < coté < côté *
* * @link https://php.net/manual/en/intl.collator-constants.php */ const FRENCH_COLLATION = 0; /** ** The Alternate attribute is used to control the handling of the so called * variable characters in the UCA: whitespace, punctuation and symbols. If * Alternate is set to NonIgnorable * (N), then differences among these characters are of the same importance * as differences among letters. If Alternate is set to * Shifted * (S), then these characters are of only minor importance. The * Shifted value is often used in combination with * Strength * set to Quaternary. In such a case, whitespace, punctuation, and symbols * are considered when comparing strings, but only if all other aspects of * the strings (base letters, accents, and case) are identical. If * Alternate is not set to Shifted, then there is no difference between a * Strength of 3 and a Strength of 4. For more information and examples, * see Variable_Weighting in the * UCA. * The reason the Alternate values are not simply * On and Off * is that additional Alternate values may be added in the future. The UCA * option Blanked is expressed with Strength set to 3, and Alternate set to * Shifted. The default for most locales is NonIgnorable. If Shifted is * selected, it may be slower if there are many strings that are the same * except for punctuation; sort key length will not be affected unless the * strength level is also increased. *
** Possible values are: * Collator::NON_IGNORABLE(default) * Collator::SHIFTED * Collator::DEFAULT_VALUE *
** ALTERNATE_HANDLING rules *
* S=3, A=N di Silva < Di Silva < diSilva < U.S.A. < USA * S=3, A=S di Silva = diSilva < Di Silva < U.S.A. = USA * S=4, A=S di Silva < diSilva < Di Silva < U.S.A. < USA *
* * @link https://php.net/manual/en/intl.collator-constants.php */ const ALTERNATE_HANDLING = 1; /** ** The Case_First attribute is used to control whether uppercase letters * come before lowercase letters or vice versa, in the absence of other * differences in the strings. The possible values are * Uppercase_First * (U) and Lowercase_First * (L), plus the standard Default * and Off. * There is almost no difference between the Off and Lowercase_First * options in terms of results, so typically users will not use * Lowercase_First: only Off or Uppercase_First. (People interested in the * detailed differences between X and L should consult the Collation * Customization). Specifying either L or U won't affect string comparison * performance, but will affect the sort key length. *
** Possible values are: * Collator::OFF(default) * Collator::LOWER_FIRST * Collator::UPPER_FIRST * Collator:DEFAULT *
** CASE_FIRST rules *
* C=X or C=L "china" < "China" < "denmark" < "Denmark" * C=U "China" < "china" < "Denmark" < "denmark" *
* * @link https://php.net/manual/en/intl.collator-constants.php */ const CASE_FIRST = 2; /** ** The Case_Level attribute is used when ignoring accents but not case. In * such a situation, set Strength to be Primary, * and Case_Level to be On. * In most locales, this setting is Off by default. There is a small * string comparison performance and sort key impact if this attribute is * set to be On. *
** Possible values are: * Collator::OFF(default) * Collator::ON * Collator::DEFAULT_VALUE *
** CASE_LEVEL rules *
* S=1, E=X role = Role = rôle * S=1, E=O role = rôle < Role *
* * @link https://php.net/manual/en/intl.collator-constants.php */ const CASE_LEVEL = 3; /** ** The Normalization setting determines whether text is thoroughly * normalized or not in comparison. Even if the setting is off (which is * the default for many locales), text as represented in common usage will * compare correctly (for details, see UTN #5). Only if the accent marks * are in noncanonical order will there be a problem. If the setting is * On, * then the best results are guaranteed for all possible text input. * There is a medium string comparison performance cost if this attribute * is On, * depending on the frequency of sequences that require normalization. * There is no significant effect on sort key length. If the input text is * known to be in NFD or NFKD normalization forms, there is no need to * enable this Normalization option. *
** Possible values are: * Collator::OFF(default) * Collator::ON * Collator::DEFAULT_VALUE *
* @link https://php.net/manual/en/intl.collator-constants.php */ const NORMALIZATION_MODE = 4; /** ** The ICU Collation Service supports many levels of comparison (named * "Levels", but also known as "Strengths"). Having these categories * enables ICU to sort strings precisely according to local conventions. * However, by allowing the levels to be selectively employed, searching * for a string in text can be performed with various matching conditions. * For more detailed information, see * collator_set_strength chapter. *
*
* Possible values are:
* Collator::PRIMARY
* Collator::SECONDARY
* Collator::TERTIARY(
* Compatibility with JIS x 4061 requires the introduction of an additional * level to distinguish Hiragana and Katakana characters. If compatibility * with that standard is required, then this attribute should be set * On, * and the strength set to Quaternary. This will affect sort key length * and string comparison string comparison performance. *
** Possible values are: * Collator::OFF(default) * Collator::ON * Collator::DEFAULT_VALUE *
* @link https://php.net/manual/en/intl.collator-constants.php */ const HIRAGANA_QUATERNARY_MODE = 6; /** ** When turned on, this attribute generates a collation key for the numeric * value of substrings of digits. This is a way to get '100' to sort AFTER * '2'. *
** Possible values are: * Collator::OFF(default) * Collator::ON * Collator::DEFAULT_VALUE *
* @link https://php.net/manual/en/intl.collator-constants.php */ const NUMERIC_COLLATION = 7; const SORT_REGULAR = 0; const SORT_STRING = 1; const SORT_NUMERIC = 2; /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale containing the required collation rules. Special values for * locales can be passed in - if null is passed for the locale, the * default locale collation rules will be used. If empty string ("") or * "root" are passed, UCA rules will be used. *
* @return Collator Return new instance of Collator object, or NULL * on error. */ public static function create($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The first string to compare. *
* @param string $str2* The second string to compare. *
* @return int Return comparison result: **
* 1 if str1 is greater than * str2 ; *
** 0 if str1 is equal to * str2; *
** -1 if str1 is less than * str2 . *
* On error * boolean * FALSE * is returned. */ public function compare($str1, $str2) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Array of strings to sort. *
* @param int $sort_flag [optional]* Optional sorting type, one of the following: *
**
* Collator::SORT_REGULAR * - compare items normally (don't change types) *
* @return bool TRUE on success or FALSE on failure. */ public function sort(array &$arr, $sort_flag = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Array of strings to sort
* @return bool TRUE on success or FALSE on failure. */ public function sortWithSortKeys(array &$arr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Array of strings to sort.
* @param int $sort_flag [optional]* Optional sorting type, one of the following: *
* Collator::SORT_REGULAR * - compare items normally (don't change types) *
* @return bool TRUE on success or FALSE on failure. */ public function asort(array &$arr, $sort_flag = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute to get value for. *
* @return int|false Attribute value, or boolean FALSE on error. */ public function getAttribute($attr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Attribute.
* @param int $val* Attribute value. *
* @return bool TRUE on success or FALSE on failure. */ public function setAttribute($attr, $val) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Strength to set.
** Possible values are: *
* Collator::PRIMARY *
* @return bool TRUE on success or FALSE on failure. */ public function setStrength($strength) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* You can choose between valid and actual locale ( * Locale::VALID_LOCALE and * Locale::ACTUAL_LOCALE, * respectively). The default is the actual locale. *
* @return string Real locale name from which the collation data comes. If the collator was * instantiated from rules or an error occurred, returns * boolean FALSE. */ public function getLocale($type = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string to produce the key from. *
* @return string the collation key for the string. Collation keys can be compared directly instead of strings. */ public function getSortKey($str) { } } class NumberFormatter { /** * Decimal format defined by pattern * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PATTERN_DECIMAL = 0; /** * Decimal format * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const DECIMAL = 1; /** * Currency format * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const CURRENCY = 2; /** * Percent format * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PERCENT = 3; /** * Scientific format * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const SCIENTIFIC = 4; /** * Spellout rule-based format * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const SPELLOUT = 5; /** * Ordinal rule-based format * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ORDINAL = 6; /** * Duration rule-based format * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const DURATION = 7; /** * Rule-based format defined by pattern * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PATTERN_RULEBASED = 9; /** * Alias for PATTERN_DECIMAL * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const IGNORE = 0; /** * Default format for the locale * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const DEFAULT_STYLE = 1; /** * Rounding mode to round towards positive infinity. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ROUND_CEILING = 0; /** * Rounding mode to round towards negative infinity. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ROUND_FLOOR = 1; /** * Rounding mode to round towards zero. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ROUND_DOWN = 2; /** * Rounding mode to round away from zero. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ROUND_UP = 3; /** * Rounding mode to round towards the "nearest neighbor" unless both * neighbors are equidistant, in which case, round towards the even * neighbor. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ROUND_HALFEVEN = 4; /** * Rounding mode to round towards "nearest neighbor" unless both neighbors * are equidistant, in which case round down. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ROUND_HALFDOWN = 5; /** * Rounding mode to round towards "nearest neighbor" unless both neighbors * are equidistant, in which case round up. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ROUND_HALFUP = 6; /** * Pad characters inserted before the prefix. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PAD_BEFORE_PREFIX = 0; /** * Pad characters inserted after the prefix. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PAD_AFTER_PREFIX = 1; /** * Pad characters inserted before the suffix. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PAD_BEFORE_SUFFIX = 2; /** * Pad characters inserted after the suffix. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PAD_AFTER_SUFFIX = 3; /** * Parse integers only. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PARSE_INT_ONLY = 0; /** * Use grouping separator. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const GROUPING_USED = 1; /** * Always show decimal point. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const DECIMAL_ALWAYS_SHOWN = 2; /** * Maximum integer digits. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MAX_INTEGER_DIGITS = 3; /** * Minimum integer digits. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MIN_INTEGER_DIGITS = 4; /** * Integer digits. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const INTEGER_DIGITS = 5; /** * Maximum fraction digits. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MAX_FRACTION_DIGITS = 6; /** * Minimum fraction digits. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MIN_FRACTION_DIGITS = 7; /** * Fraction digits. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const FRACTION_DIGITS = 8; /** * Multiplier. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MULTIPLIER = 9; /** * Grouping size. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const GROUPING_SIZE = 10; /** * Rounding Mode. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ROUNDING_MODE = 11; /** * Rounding increment. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ROUNDING_INCREMENT = 12; /** * The width to which the output of format() is padded. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const FORMAT_WIDTH = 13; /** * The position at which padding will take place. See pad position * constants for possible argument values. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PADDING_POSITION = 14; /** * Secondary grouping size. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const SECONDARY_GROUPING_SIZE = 15; /** * Use significant digits. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const SIGNIFICANT_DIGITS_USED = 16; /** * Minimum significant digits. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MIN_SIGNIFICANT_DIGITS = 17; /** * Maximum significant digits. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MAX_SIGNIFICANT_DIGITS = 18; /** * Lenient parse mode used by rule-based formats. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const LENIENT_PARSE = 19; /** * Positive prefix. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const POSITIVE_PREFIX = 0; /** * Positive suffix. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const POSITIVE_SUFFIX = 1; /** * Negative prefix. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const NEGATIVE_PREFIX = 2; /** * Negative suffix. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const NEGATIVE_SUFFIX = 3; /** * The character used to pad to the format width. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PADDING_CHARACTER = 4; /** * The ISO currency code. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const CURRENCY_CODE = 5; /** * The default rule set. This is only available with rule-based * formatters. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const DEFAULT_RULESET = 6; /** * The public rule sets. This is only available with rule-based * formatters. This is a read-only attribute. The public rulesets are * returned as a single string, with each ruleset name delimited by ';' * (semicolon). * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PUBLIC_RULESETS = 7; /** * The decimal separator. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const DECIMAL_SEPARATOR_SYMBOL = 0; /** * The grouping separator. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const GROUPING_SEPARATOR_SYMBOL = 1; /** * The pattern separator. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PATTERN_SEPARATOR_SYMBOL = 2; /** * The percent sign. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PERCENT_SYMBOL = 3; /** * Zero. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const ZERO_DIGIT_SYMBOL = 4; /** * Character representing a digit in the pattern. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const DIGIT_SYMBOL = 5; /** * The minus sign. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MINUS_SIGN_SYMBOL = 6; /** * The plus sign. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PLUS_SIGN_SYMBOL = 7; /** * The currency symbol. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const CURRENCY_SYMBOL = 8; /** * The international currency symbol. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const INTL_CURRENCY_SYMBOL = 9; /** * The monetary separator. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MONETARY_SEPARATOR_SYMBOL = 10; /** * The exponential symbol. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const EXPONENTIAL_SYMBOL = 11; /** * Per mill symbol. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PERMILL_SYMBOL = 12; /** * Escape padding character. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const PAD_ESCAPE_SYMBOL = 13; /** * Infinity symbol. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const INFINITY_SYMBOL = 14; /** * Not-a-number symbol. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const NAN_SYMBOL = 15; /** * Significant digit symbol. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const SIGNIFICANT_DIGIT_SYMBOL = 16; /** * The monetary grouping separator. * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const MONETARY_GROUPING_SEPARATOR_SYMBOL = 17; /** * Derive the type from variable type * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const TYPE_DEFAULT = 0; /** * Format/parse as 32-bit integer * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const TYPE_INT32 = 1; /** * Format/parse as 64-bit integer * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const TYPE_INT64 = 2; /** * Format/parse as floating point value * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const TYPE_DOUBLE = 3; /** * Format/parse as currency value * @link https://php.net/manual/en/intl.numberformatter-constants.php */ const TYPE_CURRENCY = 4; /** * @param $locale * @param $style * @param $pattern [optional] */ public function __construct($locale, $style, $pattern = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Locale in which the number would be formatted (locale name, e.g. en_CA). *
* @param int $style* Style of the formatting, one of the * format style constants. If * NumberFormatter::PATTERN_DECIMAL * or NumberFormatter::PATTERN_RULEBASED * is passed then the number format is opened using the given pattern, * which must conform to the syntax described in * ICU DecimalFormat * documentation or * ICU RuleBasedNumberFormat * documentation, respectively. *
* @param string $pattern [optional]* Pattern string if the chosen style requires a pattern. *
* @return NumberFormatter|false NumberFormatter object or FALSE on error. */ public static function create($locale, $style, $pattern = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The value to format. Can be integer or float, * other values will be converted to a numeric value. *
* @param int $type [optional]* The * formatting type to use. *
* @return string|false the string containing formatted value, or FALSE on error. */ public function format($value, $type = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The * formatting type to use. By default, * NumberFormatter::TYPE_DOUBLE is used. *
* @param int $position [optional]* Offset in the string at which to begin parsing. On return, this value * will hold the offset at which parsing ended. *
* @return mixed The value of the parsed number or FALSE on error. */ public function parse($value, $type = null, &$position = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The numeric currency value. *
* @param string $currency* The 3-letter ISO 4217 currency code indicating the currency to use. *
* @return string String representing the formatted currency value. */ public function formatCurrency($value, $currency) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Parameter to receive the currency name (3-letter ISO 4217 currency * code). *
* @param int $position [optional]* Offset in the string at which to begin parsing. On return, this value * will hold the offset at which parsing ended. *
* @return float|false The parsed numeric value or FALSE on error. */ public function parseCurrency($value, &$currency, &$position = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute specifier - one of the * numeric attribute constants. *
* @param int $value* The attribute value. *
* @return bool TRUE on success or FALSE on failure. */ public function setAttribute($attr, $value) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute specifier - one of the * numeric attribute constants. *
* @return int|false Return attribute value on success, or FALSE on error. */ public function getAttribute($attr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute specifier - one of the * text attribute * constants. *
* @param string $value* Text for the attribute value. *
* @return bool TRUE on success or FALSE on failure. */ public function setTextAttribute($attr, $value) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute specifier - one of the * text attribute constants. *
* @return string|false Return attribute value on success, or FALSE on error. */ public function getTextAttribute($attr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Symbol specifier, one of the * format symbol constants. *
* @param string $value* Text for the symbol. *
* @return bool TRUE on success or FALSE on failure. */ public function setSymbol($attr, $value) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Symbol specifier, one of the * format symbol constants. *
* @return string|false The symbol string or FALSE on error. */ public function getSymbol($attr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Pattern in syntax described in * ICU DecimalFormat * documentation. *
* @return bool TRUE on success or FALSE on failure. */ public function setPattern($pattern) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* You can choose between valid and actual locale ( * Locale::VALID_LOCALE, * Locale::ACTUAL_LOCALE, * respectively). The default is the actual locale. *
* @return string The locale name used to create the formatter. */ public function getLocale($type = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)The input string to normalize
* @param string $form [optional]One of the normalization forms.
* @return string The normalized string or NULL if an error occurred. */ public static function normalize($input, $form = Normalizer::FORM_C) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)The input string to normalize
* @param string $form [optional]* One of the normalization forms. *
* @return bool TRUE if normalized, FALSE otherwise or if there an error */ public static function isNormalized($input, $form = Normalizer::FORM_C) { } } class Locale { /** * This is locale the data actually comes from. * @link https://php.net/manual/en/intl.locale-constants.php */ const ACTUAL_LOCALE = 0; /** * This is the most specific locale supported by ICU. * @link https://php.net/manual/en/intl.locale-constants.php */ const VALID_LOCALE = 1; /** * Used as locale parameter with the methods of the various locale affected classes, * such as NumberFormatter. This constant would make the methods to use default * locale. * @link https://php.net/manual/en/intl.locale-constants.php */ const DEFAULT_LOCALE = null; /** * Language subtag * @link https://php.net/manual/en/intl.locale-constants.php */ const LANG_TAG = "language"; /** * Extended language subtag * @link https://php.net/manual/en/intl.locale-constants.php */ const EXTLANG_TAG = "extlang"; /** * Script subtag * @link https://php.net/manual/en/intl.locale-constants.php */ const SCRIPT_TAG = "script"; /** * Region subtag * @link https://php.net/manual/en/intl.locale-constants.php */ const REGION_TAG = "region"; /** * Variant subtag * @link https://php.net/manual/en/intl.locale-constants.php */ const VARIANT_TAG = "variant"; /** * Grandfathered Language subtag * @link https://php.net/manual/en/intl.locale-constants.php */ const GRANDFATHERED_LANG_TAG = "grandfathered"; /** * Private subtag * @link https://php.net/manual/en/intl.locale-constants.php */ const PRIVATE_TAG = "private"; /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Is a BCP 47 compliant language tag containing the *
* @return bool TRUE on success or FALSE on failure. */ public static function setDefault($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the primary language code from *
* @return string The language code associated with the language or NULL in case of error. */ public static function getPrimaryLanguage($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the script code from *
* @return string The script subtag for the locale or NULL if not present */ public static function getScript($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the region code from *
* @return string The region subtag for the locale or NULL if not present */ public static function getRegion($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the keywords from *
* @return array Associative array containing the keyword-value pairs for this locale */ public static function getKeywords($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display script for *
* @param string $in_locale [optional]* Optional format locale to use to display the script name *
* @return string Display name of the script for the $locale in the format appropriate for * $in_locale. */ public static function getDisplayScript($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display region for. *
* @param string $in_locale [optional]* Optional format locale to use to display the region name *
* @return string display name of the region for the $locale in the format appropriate for * $in_locale. */ public static function getDisplayRegion($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display name for. *
* @param string $in_locale [optional]optional format locale
* @return string Display name of the locale in the format appropriate for $in_locale. */ public static function getDisplayName($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display language for *
* @param string $in_locale [optional]* Optional format locale to use to display the language name *
* @return string display name of the language for the $locale in the format appropriate for * $in_locale. */ public static function getDisplayLanguage($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display variant for *
* @param string $in_locale [optional]* Optional format locale to use to display the variant name *
* @return string Display name of the variant for the $locale in the format appropriate for * $in_locale. */ public static function getDisplayVariant($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* an array containing a list of key-value pairs, where the keys identify * the particular locale ID subtags, and the values are the associated * subtag values. *
* The 'variant' and 'private' subtags can take maximum 15 values * whereas 'extlang' can take maximum 3 values.e.g. Variants are allowed * with the suffix ranging from 0-14. Hence the keys for the input array * can be variant0, variant1, ...,variant14. In the returned locale id, * the subtag is ordered by suffix resulting in variant0 followed by * variant1 followed by variant2 and so on. *
** The 'variant', 'private' and 'extlang' multiple values can be specified both * as array under specific key (e.g. 'variant') and as multiple numbered keys * (e.g. 'variant0', 'variant1', etc.). *
* * @return string The corresponding locale identifier. */ public static function composeLocale(array $subtags) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the subtag array from. Note: The 'variant' and * 'private' subtags can take maximum 15 values whereas 'extlang' can take * maximum 3 values. *
* @return array an array containing a list of key-value pairs, where the keys * identify the particular locale ID subtags, and the values are the * associated subtag values. The array will be ordered as the locale id * subtags e.g. in the locale id if variants are '-varX-varY-varZ' then the * returned array will have variant0=>varX , variant1=>varY , * variant2=>varZ */ public static function parseLocale($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the variants from *
* @return array The array containing the list of all variants subtag for the locale * or NULL if not present */ public static function getAllVariants($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The language tag to check *
* @param string $locale* The language range to check against *
* @param bool $canonicalize [optional]* If true, the arguments will be converted to canonical form before * matching. *
* @return bool TRUE if $locale matches $langtag FALSE otherwise. */ public static function filterMatches($langtag, $locale, $canonicalize = false) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* An array containing a list of language tags to compare to * locale. Maximum 100 items allowed. *
* @param string $locale* The locale to use as the language range when matching. *
* @param bool $canonicalize [optional]* If true, the arguments will be converted to canonical form before * matching. *
* @param string $default [optional]* The locale to use if no match is found. *
* @return string The closest matching language tag or default value. */ public static function lookup(array $langtag, $locale, $canonicalize = false, $default = null) { } /** * @link https://php.net/manual/en/locale.canonicalize.php * @param string $locale * @return string */ public static function canonicalize($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string containing the "Accept-Language" header according to format in RFC 2616. *
* @return string The corresponding locale identifier. */ public static function acceptFromHttp($header) { } } class MessageFormatter { /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to use when formatting arguments *
* @param string $pattern* The pattern string to stick arguments into. * The pattern uses an 'apostrophe-friendly' syntax; it is run through * umsg_autoQuoteApostrophe * before being interpreted. *
*/ public function __construct($locale, $pattern) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to use when formatting arguments *
* @param string $pattern* The pattern string to stick arguments into. * The pattern uses an 'apostrophe-friendly' syntax; it is run through * umsg_autoQuoteApostrophe * before being interpreted. *
* @return MessageFormatter The formatter object */ public static function create($locale, $pattern) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Arguments to insert into the format string *
* @return string|false The formatted string, or FALSE if an error occurred */ public function format(array $args) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to use for formatting locale-dependent parts *
* @param string $pattern* The pattern string to insert things into. * The pattern uses an 'apostrophe-friendly' syntax; it is run through * umsg_autoQuoteApostrophe * before being interpreted. *
* @param array $args* The array of values to insert into the format string *
* @return string|false The formatted pattern string or FALSE if an error occurred */ public static function formatMessage($locale, $pattern, array $args) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string to parse *
* @return array|false An array containing the items extracted, or FALSE on error */ public function parse($value) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to use for parsing locale-dependent parts *
* @param string $pattern* The pattern with which to parse the value. *
* @param string $source* The string to parse, conforming to the pattern. *
* @return array|false An array containing items extracted, or FALSE on error */ public static function parseMessage($locale, $pattern, $source) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The pattern string to use in this message formatter. * The pattern uses an 'apostrophe-friendly' syntax; it is run through * umsg_autoQuoteApostrophe * before being interpreted. *
* @return bool TRUE on success or FALSE on failure. */ public function setPattern($pattern) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Locale to use when formatting or parsing; default is specified in the ini setting intl.default_locale. *
* @param int $datetype* Date type to use (none, * short, medium, * long, full). * This is one of the * IntlDateFormatter constants. *
* @param int $timetype* Time type to use (none, * short, medium, * long, full). * This is one of the * IntlDateFormatter constants. *
* @param string $timezone [optional]* Time zone ID, default is system default. *
* @param int $calendar [optional]* Calendar to use for formatting or parsing; default is Gregorian. * This is one of the * IntlDateFormatter calendar constants. *
* @param string $pattern [optional]* Optional pattern to use when formatting or parsing. * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime. *
* @return IntlDateFormatter */ public static function create($locale, $datetype, $timetype, $timezone = null, $calendar = null, $pattern = '') { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The calendar to use. * Default is IntlDateFormatter::GREGORIAN. *
* @return bool TRUE on success or FALSE on failure. */ public function setCalendar($which) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The time zone ID string of the time zone to use. * If NULL or the empty string, the default time zone for the runtime is used. *
* @return bool TRUE on success or FALSE on failure. * @deprecated 5.5 https://www.php.net/manual/en/migration55.deprecated.php * @removed 7.0 */ public function setTimeZoneId($zone) { } /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)* The timezone to use for this formatter. This can be specified in the * following forms: *
* NULL, in which case the default timezone will be used, as specified in * the ini setting {@link "https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone" date.timezone} or * through the function {@link "https://www.php.net/manual/en/function.date-default-timezone-set.php" date_default_timezone_set()} and as * returned by {@link "https://www.php.net/manual/en/function.date-default-timezone-get.php" date_default_timezone_get()}. *
** An {@link "https://www.php.net/manual/en/class.intltimezone.php" IntlTimeZone}, which will be used directly. *
** A {@link "https://www.php.net/manual/en/class.datetimezone.php" DateTimeZone}. Its identifier will be extracted * and an ICU timezone object will be created; the timezone will be backed * by ICU's database, not PHP's. *
** A {@link "https://www.php.net/manual/en/language.types.string.php" string}, which should be a valid ICU timezone identifier. * See IntlTimeZone::createTimeZoneIDEnumeration(). Raw offsets such as "GMT+08:30" are also accepted. *
** New pattern string to use. * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime. *
* @return bool TRUE on success or FALSE on failure. * Bad formatstrings are usually the cause of the failure. */ public function setPattern($pattern) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Sets whether the parser is lenient or not, default is TRUE (lenient). *
* @return bool TRUE on success or FALSE on failure. */ public function setLenient($lenient) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Value to format. This may be a DateTime object, * an integer representing a Unix timestamp value (seconds * since epoch, UTC) or an array in the format output by * localtime. *
* @return string|false The formatted string or, if an error occurred, FALSE. */ public function format($value) { } /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)* An object of type {@link "https://www.php.net/manual/en/class.intlcalendar.php" IntlCalendar} or {@link "https://www.php.net/manual/en/class.datetime.php" DateTime}. The timezone information in the object will be used. *
* @param mixed $format [optional]
* How to format the date/time. This can either be an {@link "https://www.php.net/manual/en/language.types.array.php" array} with
* two elements (first the date style, then the time style, these being one
* of the constants IntlDateFormatter::NONE,
* IntlDateFormatter::SHORT,
* IntlDateFormatter::MEDIUM,
* IntlDateFormatter::LONG,
* IntlDateFormatter::FULL), a long with
* the value of one of these constants (in which case it will be used both
* for the time and the date) or a {@link "https://www.php.net/manual/en/language.types.string.php" string} with the format
* described in {@link "http://www.icu-project.org/apiref/icu4c/classSimpleDateFormat.html#details" the ICU documentation}.
* If
NULL, the default style will be used.
*
* The locale to use, or NULL to use the {@link "https://www.php.net/manual/en/intl.configuration.php#ini.intl.default-locale"default one}.
* @return string|false A string with result or FALSE on failure. */ public static function formatObject($object, $format = null, $locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* string to convert to a time *
* @param int $position [optional]* Position at which to start the parsing in $value (zero-based). * If no error occurs before $value is consumed, $parse_pos will contain -1 * otherwise it will contain the position at which parsing ended (and the error occurred). * This variable will contain the end position if the parse fails. * If $parse_pos > strlen($value), the parse fails immediately. *
* @return int timestamp parsed value */ public function parse($value, &$position = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* string to convert to a time *
* @param int $position [optional]* Position at which to start the parsing in $value (zero-based). * If no error occurs before $value is consumed, $parse_pos will contain -1 * otherwise it will contain the position at which parsing ended . * If $parse_pos > strlen($value), the parse fails immediately. *
* @return array Localtime compatible array of integers : contains 24 hour clock value in tm_hour field */ public function localtime($value, &$position = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Locale for which the resources should be loaded (locale name, e.g. en_CA). *
* @param string $bundlename* The directory where the data is stored or the name of the .dat file. *
* @param bool $fallback [optional]* Whether locale should match exactly or fallback to parent locale is allowed. *
* @return ResourceBundle|false ResourceBundle object or FALSE on error. */ public static function create($locale, $bundlename, $fallback = null) { } /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)* Data index, must be string or integer. *
* @return mixed the data located at the index or NULL on error. Strings, integers and binary data strings * are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are * returned as ResourceBundle object. */ public function get($index) { } /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)* Path of ResourceBundle for which to get available locales, or * empty string for default locales list. *
* @return array the list of locales supported by the bundle. */ public static function getLocales($bundlename) { } /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)* The id. *
* @param int $direction [optional]* The direction, defaults to * >Transliterator::FORWARD. * May also be set to * Transliterator::REVERSE. *
* @return Transliterator a Transliterator object on success, * or NULL on failure. */ public static function create($id, $direction = null) { } /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)* The rules. *
* @param string $direction [optional]* The direction, defaults to * >Transliterator::FORWARD. * May also be set to * Transliterator::REVERSE. *
* @return Transliterator a Transliterator object on success, * or NULL on failure. */ public static function createFromRules($rules, $direction = null) { } /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)* The string to be transformed. *
* @param int $start [optional]* The start index (in UTF-16 code units) from which the string will start * to be transformed, inclusive. Indexing starts at 0. The text before will * be left as is. *
* @param int $end [optional]* The end index (in UTF-16 code units) until which the string will be * transformed, exclusive. Indexing starts at 0. The text after will be * left as is. *
* @return string|false The transfomed string on success, or FALSE on failure. */ public function transliterate($subject, $start = null, $end = null) { } /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)*
* @param string $error [optional]*
* @return bool */ public function isSuspicious($text, &$error = null) { } /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)*
* @param string $s2*
* @param string $error [optional]*
* @return bool */ public function areConfusable($s1, $s2, &$error = null) { } /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)*
* @return void */ public function setAllowedLocales($locale_list) { } /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)*
* @return void */ public function setChecks($checks) { } } /** * @since 5.5 */ class IntlGregorianCalendar extends IntlCalendar { /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. * These are integer values between 0 and * IntlCalendar::FIELD_COUNT. *
* @param int $amountThe signed amount to add to the current field. If the amount is positive, the instant will be moved forward; if it is negative, the instant wil be moved into the past. The unit is implicit to the field type. * For instance, hours for IntlCalendar::FIELD_HOUR_OF_DAY.
* @return bool Returns TRUE on success or FALSE on failure. */ public function add($field, $amount) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)The calendar whose time will be checked against this object's time.
* @return bool * Returns TRUE if this object's current time is after that of the * calendar argument's time. Returns FALSE otherwise. * Also returns FALSE on failure. You can use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions. */ public function after(IntlCalendar $calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)The calendar whose time will be checked against this object's time.
* @return bool * Returns TRUE if this object's current time is before that of the * calendar argument's time. Returns FALSE otherwise. * Also returns FALSE on failure. You can use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions. * */ public function before(IntlCalendar $calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return bool Returns TRUE on success or FALSE on failure. Failure can only occur is invalid arguments are provided. */ public function clear($field = null) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
* The timezone to use. *
* ** NULL, in which case the default timezone will be used, as specified in * the ini setting {@link https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone} or * through the function {@link https://www.php.net/manual/en/function.date-default-timezone-set.php date_default_timezone_set()} and as * returned by {@link https://www.php.net/manual/en/function.date-default-timezone-get.php date_default_timezone_get()}. *
** An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone}, which will be used directly. *
** A {@link https://www.php.net/manual/en/class.datetimezone.php DateTimeZone}. Its identifier will be extracted * and an ICU timezone object will be created; the timezone will be backed * by ICU's database, not PHP's. *
** A {@link https://www.php.net/manual/en/language.types.string.php string}, which should be a valid ICU timezone identifier. * See IntlTimeZone::createTimeZoneIDEnumeration(). Raw * offsets such as "GMT+08:30" are also accepted. *
** A locale to use or NULL to use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.default-locale the default locale}. *
* @return IntlCalendar * The created {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} instance or NULL on * failure. */ public static function createInstance($timeZone = null, $locale = null) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* Returns TRUE if the current time of both this and the passed in * {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} object are the same, or FALSE * otherwise. The value FALSE can also be returned on failure. This can only * happen if bad arguments are passed in. In any case, the two cases can be * distinguished by calling {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()}. *
*/ public function equals($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The time against which to compare the quantity represented by the * field. For the result to be positive, the time * given for this parameter must be ahead of the time of the object the * method is being invoked on. *
* @param int $field* The field that represents the quantity being compared. *
* ** One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int Returns a (signed) difference of time in the unit associated with the * specified field or FALSE on failure. * */ public function fieldDifference($when, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)* A {@link https://www.php.net/manual/en/class.datetime.php DateTime} object or a {@link https://www.php.net/manual/en/language.types.string.php string} that * can be passed to {@link https://www.php.net/manual/en/datetime.construct.php DateTime::__construct()}. *
* @return IntlCalendar * The created {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} object or NULL in case of * failure. If a {@link https://www.php.net/manual/en/language.types.string.php string} is passed, any exception that occurs * inside the {@link https://www.php.net/manual/en/class.datetime.php DateTime} constructor is propagated. */ public static function fromDateTime($dateTime) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int An integer with the value of the time field. */ public function get($field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing the maximum value in the units associated * with the given field or FALSE on failure. */ public function getActualMaximum($field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. * These are integer values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing the minimum value in the field's * unit or FALSE on failure. */ public function getActualMinimum($field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the constants IntlCalendar::DOW_SUNDAY, * IntlCalendar::DOW_MONDAY, ..., * IntlCalendar::DOW_SATURDAY. *
* @return int * Returns one of the constants * IntlCalendar::DOW_TYPE_WEEKDAY, * IntlCalendar::DOW_TYPE_WEEKEND, * IntlCalendar::DOW_TYPE_WEEKEND_OFFSET or * IntlCalendar::DOW_TYPE_WEEKEND_CEASE or FALSE on failure. * */ public function getDayOfWeekType($dayOfWeek) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
* values between 0 and
* IntlCalendar::FIELD_COUNT.
* @return int
* An {@link https://www.php.net/manual/en/language.types.integer.php int} representing a field value, in the field's
* unit, or FALSE on failure.
*/
public function getGreatestMinimum($field) { }
/**
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
* Get set of locale keyword values
* @param string $key
* The locale keyword for which relevant values are to be queried. Only * 'calendar' is supported. *
* @param string $locale* The locale onto which the keyword/value pair are to be appended. *
* @param bool $commonlyUsed ** Whether to show only the values commonly used for the specified locale. *
* @return Iterator|false An iterator that yields strings with the locale keyword values or FALSE on failure. */ public static function getKeywordValuesForLocale($key, $locale, $commonlyUsed) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int * An {@link https://www.php.net/manual/en/language.types.integer.ph int} representing a field value in the field's * unit or FALSE on failure. * */ public function getLeastMaximum($field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* Whether to fetch the actual locale (the locale from which the calendar * data originates, with Locale::ACTUAL_LOCALE) or the * valid locale, i.e., the most specific locale supported by ICU relatively * to the requested locale – see Locale::VALID_LOCALE. * From the most general to the most specific, the locales are ordered in * this fashion – actual locale, valid locale, requested locale. *
* @return string * A locale string or FALSE on failure. * */ public function getLocale($localeType) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return string * A locale string or FALSE on failure. */ public function getMaximum($field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int * An int representing a value for the given field in the field's unit or FALSE on failure. */ public function getMinimum($field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the constants IntlCalendar::DOW_SUNDAY, * IntlCalendar::DOW_MONDAY, ..., * IntlCalendar::DOW_SATURDAY. *
* @return int * The number of milliseconds into the day at which the weekend begins or * ends or FALSE on failure. */ public function getWeekendTransition($dayOfWeek) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* An optional timestamp representing the number of milliseconds since the * epoch, excluding leap seconds. If NULL, this object's current time is * used instead. *
* @return bool *A {@link https://www.php.net/manual/en/language.types.boolean.php bool} indicating whether the given or this object's time occurs * in a weekend. *
** The value FALSE may also be returned on failure, for instance after giving * a date out of bounds on non-lenient mode; use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or query * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate.
*/ public function isWeekend($date = null) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time * {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @param mixed $amountOrUpOrDown* The (signed) amount to add to the field, TRUE for rolling up (adding * 1), or FALSE for rolling down (subtracting * 1). *
* @return bool Returns TRUE on success or FALSE on failure. */ public function roll($field, $amountOrUpOrDown) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time * {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. * These are integer values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return bool Assuming there are no argument errors, returns TRUE iif the field is set. */ public function PS_UNRESERVE_PREFIX_isSet($field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @param int $month* The new value for IntlCalendar::FIELD_MONTH. *
* @param int $dayOfMonth [optional]* The new value for IntlCalendar::FIELD_DAY_OF_MONTH. * The month sequence is zero-based, i.e., January is represented by 0, * February by 1, ..., December is 11 and Undecember (if the calendar has * it) is 12. *
* @param int $hour [optional] ** The new value for IntlCalendar::FIELD_HOUR_OF_DAY. *
* @param int $minute [optional] ** The new value for IntlCalendar::FIELD_MINUTE. *
* @param int $second [optional]* The new value for IntlCalendar::FIELD_SECOND. *
* @return bool Returns TRUE on success and FALSE on failure. */ public function set($year, $month, $dayOfMonth = null, $hour = null, $minute = null, $second = null) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the constants IntlCalendar::DOW_SUNDAY, * IntlCalendar::DOW_MONDAY, ..., * IntlCalendar::DOW_SATURDAY. *
* @return bool Returns TRUE on success. Failure can only happen due to invalid parameters. */ public function setFirstDayOfWeek($dayOfWeek) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* Use TRUE to activate the lenient mode; FALSE otherwise. *
* @return bool Returns TRUE on success. Failure can only happen due to invalid parameters. */ public function setLenient($isLenient) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the constants IntlCalendar::WALLTIME_FIRST or * IntlCalendar::WALLTIME_LAST. *
* @return bool * Returns TRUE on success. Failure can only happen due to invalid parameters. * */ public function setRepeatedWallTimeOption($wallTimeOption) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* One of the constants IntlCalendar::WALLTIME_FIRST, * IntlCalendar::WALLTIME_LAST or * IntlCalendar::WALLTIME_NEXT_VALID. *
* @return bool ** Returns TRUE on success. Failure can only happen due to invalid parameters. *
*/ public function setSkippedWallTimeOption($wallTimeOption) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* An instant represented by the number of number of milliseconds between * such instant and the epoch, ignoring leap seconds. *
* @return bool * Returns TRUE on success and FALSE on failure. */ public function setTime($date) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The new timezone to be used by this calendar. It can be specified in the * following ways: * *
* NULL, in which case the default timezone will be used, as specified in * the ini setting {@link https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone} or * through the function {@link https://www.php.net/manual/en/function.date-default-timezone-set.php date_default_timezone_set()} and as * returned by {@link https://www.php.net/manual/en/function.date-default-timezone-get.php date_default_timezone_get()}. *
** An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone}, which will be used directly. *
** A {@link https://www.php.net/manual/en/class.datetimezone.php DateTimeZone}. Its identifier will be extracted * and an ICU timezone object will be created; the timezone will be backed * by ICU's database, not PHP's. *
** A {@link https://www.php.net/manual/en/language.types.string.php string}, which should be a valid ICU timezone identifier. * See b>IntlTimeZone::createTimeZoneIDEnumeration(). Raw * offsets such as "GMT+08:30" are also accepted. *
** The locale containing the required collation rules. Special values for * locales can be passed in - if null is passed for the locale, the * default locale collation rules will be used. If empty string ("") or * "root" are passed, UCA rules will be used. *
* @return Collator Return new instance of Collator object, or NULL * on error. */ function collator_create($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The first string to compare. *
* @param string $str2* The second string to compare. *
* @return int Return comparison result: **
* 1 if str1 is greater than * str2 ; *
** 0 if str1 is equal to * str2; *
** -1 if str1 is less than * str2 . *
* On error * boolean * FALSE * is returned. */ function collator_compare(Collator $object, $str1, $str2) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute to get value for. *
* @return int|false Attribute value, or boolean FALSE on error. */ function collator_get_attribute(Collator $object, $attr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Attribute.
* @param int $val* Attribute value. *
* @return bool TRUE on success or FALSE on failure. */ function collator_set_attribute(Collator $object, $attr, $val) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Strength to set.
** Possible values are: *
* Collator::PRIMARY *
* @return bool TRUE on success or FALSE on failure. */ function collator_set_strength(Collator $object, $strength) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Array of strings to sort. *
* @param int $sort_flag [optional]* Optional sorting type, one of the following: *
**
* Collator::SORT_REGULAR * - compare items normally (don't change types) *
* @return bool TRUE on success or FALSE on failure. */ function collator_sort(Collator $object, array &$arr, $sort_flag = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Array of strings to sort
* @return bool TRUE on success or FALSE on failure. */ function collator_sort_with_sort_keys(Collator $object, array &$arr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Array of strings to sort.
* @param int $sort_flag [optional]* Optional sorting type, one of the following: *
* Collator::SORT_REGULAR * - compare items normally (don't change types) *
* @return bool TRUE on success or FALSE on failure. */ function collator_asort(Collator $object, array &$arr, $sort_flag = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* You can choose between valid and actual locale ( * Locale::VALID_LOCALE and * Locale::ACTUAL_LOCALE, * respectively). The default is the actual locale. *
* @return string Real locale name from which the collation data comes. If the collator was * instantiated from rules or an error occurred, returns * boolean FALSE. */ function collator_get_locale(Collator $object, $type = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string to produce the key from. *
* @return string the collation key for the string. Collation keys can be compared directly instead of strings. */ function collator_get_sort_key(Collator $object, $str) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Locale in which the number would be formatted (locale name, e.g. en_CA). *
* @param int $style* Style of the formatting, one of the * format style constants. If * NumberFormatter::PATTERN_DECIMAL * or NumberFormatter::PATTERN_RULEBASED * is passed then the number format is opened using the given pattern, * which must conform to the syntax described in * ICU DecimalFormat * documentation or * ICU RuleBasedNumberFormat * documentation, respectively. *
* @param string $pattern [optional]* Pattern string if the chosen style requires a pattern. *
* @return NumberFormatter|false NumberFormatter object or FALSE on error. */ function numfmt_create($locale, $style, $pattern = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The value to format. Can be integer or float, * other values will be converted to a numeric value. *
* @param int $type [optional]* The * formatting type to use. *
* @return string|false the string containing formatted value, or FALSE on error. */ function numfmt_format(NumberFormatter $fmt, $value, $type = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The * formatting type to use. By default, * NumberFormatter::TYPE_DOUBLE is used. *
* @param int $position [optional]* Offset in the string at which to begin parsing. On return, this value * will hold the offset at which parsing ended. *
* @return mixed The value of the parsed number or FALSE on error. */ function numfmt_parse(NumberFormatter $fmt, $value, $type = null, &$position = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The numeric currency value. *
* @param string $currency* The 3-letter ISO 4217 currency code indicating the currency to use. *
* @return string String representing the formatted currency value. */ function numfmt_format_currency(NumberFormatter $fmt, $value, $currency) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Parameter to receive the currency name (3-letter ISO 4217 currency * code). *
* @param int $position [optional]* Offset in the string at which to begin parsing. On return, this value * will hold the offset at which parsing ended. *
* @return float|false The parsed numeric value or FALSE on error. */ function numfmt_parse_currency(NumberFormatter $fmt, $value, &$currency, &$position = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute specifier - one of the * numeric attribute constants. *
* @param int $value* The attribute value. *
* @return bool TRUE on success or FALSE on failure. */ function numfmt_set_attribute(NumberFormatter $fmt, $attr, $value) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute specifier - one of the * numeric attribute constants. *
* @return int|false Return attribute value on success, or FALSE on error. */ function numfmt_get_attribute(NumberFormatter $fmt, $attr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute specifier - one of the * text attribute * constants. *
* @param string $value* Text for the attribute value. *
* @return bool TRUE on success or FALSE on failure. */ function numfmt_set_text_attribute(NumberFormatter $fmt, $attr, $value) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Attribute specifier - one of the * text attribute constants. *
* @return string|false Return attribute value on success, or FALSE on error. */ function numfmt_get_text_attribute(NumberFormatter $fmt, $attr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Symbol specifier, one of the * format symbol constants. *
* @param string $value* Text for the symbol. *
* @return bool TRUE on success or FALSE on failure. */ function numfmt_set_symbol(NumberFormatter $fmt, $attr, $value) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Symbol specifier, one of the * format symbol constants. *
* @return string|false The symbol string or FALSE on error. */ function numfmt_get_symbol(NumberFormatter $fmt, $attr) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Pattern in syntax described in * ICU DecimalFormat * documentation. *
* @return bool TRUE on success or FALSE on failure. */ function numfmt_set_pattern(NumberFormatter $fmt, $pattern) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* You can choose between valid and actual locale ( * Locale::VALID_LOCALE, * Locale::ACTUAL_LOCALE, * respectively). The default is the actual locale. *
* @return string The locale name used to create the formatter. */ function numfmt_get_locale(NumberFormatter $fmt, $type = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)The input string to normalize
* @param string $form [optional]One of the normalization forms.
* @return string The normalized string or NULL if an error occurred. */ function normalizer_normalize($input, $form = Normalizer::FORM_C) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)The input string to normalize
* @param string $form [optional]* One of the normalization forms. *
* @return bool TRUE if normalized, FALSE otherwise or if there an error */ function normalizer_is_normalized($input, $form = Normalizer::FORM_C) { } /** * Get the default Locale * @link https://php.net/manual/en/function.locale-get-default.php * @return string a string with the current Locale. */ function locale_get_default() { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The new Locale name. A comprehensive list of the supported locales is * available at . *
* @return bool TRUE on success or FALSE on failure. */ function locale_set_default($name) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the primary language code from *
* @return string The language code associated with the language or NULL in case of error. */ function locale_get_primary_language($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the script code from *
* @return string The script subtag for the locale or NULL if not present */ function locale_get_script($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the region code from *
* @return string The region subtag for the locale or NULL if not present */ function locale_get_region($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the keywords from *
* @return array Associative array containing the keyword-value pairs for this locale */ function locale_get_keywords($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display script for *
* @param string $in_locale [optional]* Optional format locale to use to display the script name *
* @return string Display name of the script for the $locale in the format appropriate for * $in_locale. */ function locale_get_display_script($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display region for. *
* @param string $in_locale [optional]* Optional format locale to use to display the region name *
* @return string display name of the region for the $locale in the format appropriate for * $in_locale. */ function locale_get_display_region($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display name for. *
* @param string $in_locale [optional]optional format locale
* @return string Display name of the locale in the format appropriate for $in_locale. */ function locale_get_display_name($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display language for *
* @param string $in_locale [optional]* Optional format locale to use to display the language name *
* @return string display name of the language for the $locale in the format appropriate for * $in_locale. */ function locale_get_display_language($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to return a display variant for *
* @param string $in_locale [optional]* Optional format locale to use to display the variant name *
* @return string Display name of the variant for the $locale in the format appropriate for * $in_locale. */ function locale_get_display_variant($locale, $in_locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* an array containing a list of key-value pairs, where the keys identify * the particular locale ID subtags, and the values are the associated * subtag values. *
* The 'variant' and 'private' subtags can take maximum 15 values * whereas 'extlang' can take maximum 3 values.e.g. Variants are allowed * with the suffix ranging from 0-14. Hence the keys for the input array * can be variant0, variant1, ...,variant14. In the returned locale id, * the subtag is ordered by suffix resulting in variant0 followed by * variant1 followed by variant2 and so on. *
** The 'variant', 'private' and 'extlang' multiple values can be specified both * as array under specific key (e.g. 'variant') and as multiple numbered keys * (e.g. 'variant0', 'variant1', etc.). *
* * @return string The corresponding locale identifier. */ function locale_compose(array $subtags) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the subtag array from. Note: The 'variant' and * 'private' subtags can take maximum 15 values whereas 'extlang' can take * maximum 3 values. *
* @return array an array containing a list of key-value pairs, where the keys * identify the particular locale ID subtags, and the values are the * associated subtag values. The array will be ordered as the locale id * subtags e.g. in the locale id if variants are '-varX-varY-varZ' then the * returned array will have variant0=>varX , variant1=>varY , * variant2=>varZ */ function locale_parse($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to extract the variants from *
* @return array The array containing the list of all variants subtag for the locale * or NULL if not present */ function locale_get_all_variants($locale) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The language tag to check *
* @param string $locale* The language range to check against *
* @param bool $canonicalize [optional]* If true, the arguments will be converted to canonical form before * matching. *
* @return bool TRUE if $locale matches $langtag FALSE otherwise. */ function locale_filter_matches($langtag, $locale, $canonicalize = false) { } /** * @param $arg1 */ function locale_canonicalize($arg1) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* An array containing a list of language tags to compare to * locale. Maximum 100 items allowed. *
* @param string $locale* The locale to use as the language range when matching. *
* @param bool $canonicalize [optional]* If true, the arguments will be converted to canonical form before * matching. *
* @param string $default [optional]* The locale to use if no match is found. *
* @return string The closest matching language tag or default value. */ function locale_lookup(array $langtag, $locale, $canonicalize = false, $default = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string containing the "Accept-Language" header according to format in RFC 2616. *
* @return string The corresponding locale identifier. */ function locale_accept_from_http($header) { } /** * @param $locale * @param $pattern */ function msgfmt_create($locale, $pattern) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Arguments to insert into the format string *
* @return string|false The formatted string, or FALSE if an error occurred */ function msgfmt_format(MessageFormatter $fmt, array $args) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to use for formatting locale-dependent parts *
* @param string $pattern* The pattern string to insert things into. * The pattern uses an 'apostrophe-friendly' syntax; it is run through * umsg_autoQuoteApostrophe * before being interpreted. *
* @param array $args* The array of values to insert into the format string *
* @return string|false The formatted pattern string or FALSE if an error occurred */ function msgfmt_format_message(string $locale, string $pattern, array $args) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string to parse *
* @return array|false An array containing the items extracted, or FALSE on error */ function msgfmt_parse(MessageFormatter $fmt, $value) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The locale to use for parsing locale-dependent parts *
* @param string $pattern* The pattern with which to parse the value. *
* @param string $source* The string to parse, conforming to the pattern. *
* @return array|false An array containing items extracted, or FALSE on error */ function msgfmt_parse_message(MessageFormatter $fmt, $locale, $pattern, $source) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The pattern string to use in this message formatter. * The pattern uses an 'apostrophe-friendly' syntax; it is run through * umsg_autoQuoteApostrophe * before being interpreted. *
* @return bool TRUE on success or FALSE on failure. */ function msgfmt_set_pattern(MessageFormatter $fmt, $pattern) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Locale to use when formatting or parsing. *
* @param int $datetype* Date type to use (none, * short, medium, * long, full). * This is one of the * IntlDateFormatter constants. *
* @param int $timetype* Time type to use (none, * short, medium, * long, full). * This is one of the * IntlDateFormatter constants. *
* @param string|null $timezone [optional]* Time zone ID, default is system default. *
* @param int|null $calendar [optional]* Calendar to use for formatting or parsing; default is Gregorian. * This is one of the * IntlDateFormatter calendar constants. *
* @param string $pattern [optional]* Optional pattern to use when formatting or parsing. * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime. *
* @return IntlDateFormatter */ function datefmt_create($locale, $datetype, $timetype, $timezone = null, $calendar = null, $pattern = '') { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The calendar to use. * Default is IntlDateFormatter::GREGORIAN. *
* @return bool TRUE on success or FALSE on failure. */ function datefmt_set_calendar(MessageFormatter $mf, $which) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The time zone ID string of the time zone to use. * If NULL or the empty string, the default time zone for the runtime is used. *
* @return bool TRUE on success or FALSE on failure. * @deprecated 5.5 https://www.php.net/manual/en/migration55.deprecated.php * @removed 7.0 */ function datefmt_set_timezone_id(MessageFormatter $mf, $zone) { } /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)* The timezone to use for this formatter. This can be specified in the * following forms: *
* NULL, in which case the default timezone will be used, as specified in * the ini setting {@link "https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone" date.timezone} or * through the function {@link "https://www.php.net/manual/en/function.date-default-timezone-set.php" date_default_timezone_set()} and as * returned by {@link "https://www.php.net/manual/en/function.date-default-timezone-get.php" date_default_timezone_get()}. *
** An {@link "https://www.php.net/manual/en/class.intltimezone.php" IntlTimeZone}, which will be used directly. *
** A {@link "https://www.php.net/manual/en/class.datetimezone.php" DateTimeZone}. Its identifier will be extracted * and an ICU timezone object will be created; the timezone will be backed * by ICU's database, not PHP's. *
** A {@link "https://www.php.net/manual/en/language.types.string.php" string}, which should be a valid ICU timezone identifier. * See IntlTimeZone::createTimeZoneIDEnumeration(). Raw offsets such as "GMT+08:30" are also accepted. *
** New pattern string to use. * Possible patterns are documented at http://userguide.icu-project.org/formatparse/datetime. *
* @return bool TRUE on success or FALSE on failure. * Bad formatstrings are usually the cause of the failure. */ function datefmt_set_pattern(MessageFormatter $mf, $pattern) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Sets whether the parser is lenient or not, default is TRUE (lenient). *
* @return bool TRUE on success or FALSE on failure. */ function datefmt_set_lenient(MessageFormatter $mf, $lenient) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* Value to format. This may be a DateTime object, * an integer representing a Unix timestamp value (seconds * since epoch, UTC) or an array in the format output by * localtime. *
* @return string|false The formatted string or, if an error occurred, FALSE. */ function datefmt_format(MessageFormatter $mf, $value) { } /** * (PHP 5 >= 5.5.0, PECL intl >= 3.0.0)* An object of type IntlCalendar or DateTime. The timezone information in the object will be used. *
* @param mixed $format [optional]* How to format the date/time. This can either be an {https://www.php.net/manual/en/language.types.array.php array} with * two elements (first the date style, then the time style, these being one * of the constants IntlDateFormatter::NONE, * IntlDateFormatter::SHORT, * IntlDateFormatter::MEDIUM, * IntlDateFormatter::LONG, * IntlDateFormatter::FULL), a long with * the value of one of these constants (in which case it will be used both * for the time and the date) or a {@link https://www.php.net/manual/en/language.types.string.php} with the format * described in {@link http://www.icu-project.org/apiref/icu4c/classSimpleDateFormat.html#details the ICU documentation} * documentation. If NULL, the default style will be used. *
* @param string|null $locale [optional]* The locale to use, or NULL to use the default one.
* @return string|false The formatted string or, if an error occurred, FALSE. */ function datefmt_format_object($object, $format = null, $locale = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* string to convert to a time *
* @param int $position [optional]* Position at which to start the parsing in $value (zero-based). * If no error occurs before $value is consumed, $parse_pos will contain -1 * otherwise it will contain the position at which parsing ended (and the error occurred). * This variable will contain the end position if the parse fails. * If $parse_pos > strlen($value), the parse fails immediately. *
* @return int timestamp parsed value */ function datefmt_parse(MessageFormatter $mf, $value, &$position = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* string to convert to a time *
* @param int $position [optional]* Position at which to start the parsing in $value (zero-based). * If no error occurs before $value is consumed, $parse_pos will contain -1 * otherwise it will contain the position at which parsing ended . * If $parse_pos > strlen($value), the parse fails immediately. *
* @return array Localtime compatible array of integers : contains 24 hour clock value in tm_hour field */ function datefmt_localtime(MessageFormatter $mf, $value, &$position = null) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string being measured for length. It must be a valid UTF-8 string. *
* @return int|false|null The length of the string on success, and 0 if the string is empty. */ function grapheme_strlen($input) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string to look in. Must be valid UTF-8. *
* @param string $needle* The string to look for. Must be valid UTF-8. *
* @param int $offset [optional]* The optional $offset parameter allows you to specify where in $haystack to * start searching as an offset in grapheme units (not bytes or characters). * The position returned is still relative to the beginning of haystack * regardless of the value of $offset. *
* @return int|false the position as an integer. If needle is not found, strpos() will return boolean FALSE. */ function grapheme_strpos($haystack, $needle, $offset = 0) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string to look in. Must be valid UTF-8. *
* @param string $needle* The string to look for. Must be valid UTF-8. *
* @param int $offset [optional]* The optional $offset parameter allows you to specify where in haystack to * start searching as an offset in grapheme units (not bytes or characters). * The position returned is still relative to the beginning of haystack * regardless of the value of $offset. *
* @return int|false the position as an integer. If needle is not found, grapheme_stripos() will return boolean FALSE. */ function grapheme_stripos($haystack, $needle, $offset = 0) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string to look in. Must be valid UTF-8. *
* @param string $needle* The string to look for. Must be valid UTF-8. *
* @param int $offset [optional]* The optional $offset parameter allows you to specify where in $haystack to * start searching as an offset in grapheme units (not bytes or characters). * The position returned is still relative to the beginning of haystack * regardless of the value of $offset. *
* @return int|false the position as an integer. If needle is not found, grapheme_strrpos() will return boolean FALSE. */ function grapheme_strrpos($haystack, $needle, $offset = 0) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The string to look in. Must be valid UTF-8. *
* @param string $needle* The string to look for. Must be valid UTF-8. *
* @param int $offset [optional]* The optional $offset parameter allows you to specify where in $haystack to * start searching as an offset in grapheme units (not bytes or characters). * The position returned is still relative to the beginning of haystack * regardless of the value of $offset. *
* @return int|false the position as an integer. If needle is not found, grapheme_strripos() will return boolean FALSE. */ function grapheme_strripos($haystack, $needle, $offset = 0) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The input string. Must be valid UTF-8. *
* @param int $start* Start position in default grapheme units. * If $start is non-negative, the returned string will start at the * $start'th position in $string, counting from zero. If $start is negative, * the returned string will start at the $start'th grapheme unit from the * end of string. *
* @param int $length [optional]* Length in grapheme units. * If $length is given and is positive, the string returned will contain * at most $length grapheme units beginning from $start (depending on the * length of string). If $length is given and is negative, then * that many grapheme units will be omitted from the end of string (after the * start position has been calculated when a start is negative). If $start * denotes a position beyond this truncation, FALSE will be returned. *
* @return string|falsethe extracted part of $string,
or FALSE if $length is negative and $start denotes a position beyond truncation $length,
or also FALSE if $start denotes a position beyond $string length
* The input string. Must be valid UTF-8. *
* @param string $needle* The string to look for. Must be valid UTF-8. *
* @param bool $before_needle [optional]* If TRUE, grapheme_strstr() returns the part of the * haystack before the first occurrence of the needle (excluding the needle). *
* @return string|false the portion of string, or FALSE if needle is not found. */ function grapheme_strstr($haystack, $needle, $before_needle = false) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* The input string. Must be valid UTF-8. *
* @param string $needle* The string to look for. Must be valid UTF-8. *
* @param bool $before_needle [optional]* If TRUE, grapheme_strstr() returns the part of the * haystack before the first occurrence of the needle (excluding needle). *
* @return string|false the portion of $haystack, or FALSE if $needle is not found. */ function grapheme_stristr($haystack, $needle, $before_needle = false) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* String to search. *
* @param int $size* Maximum number items - based on the $extract_type - to return. *
* @param int $extract_type [optional]* Defines the type of units referred to by the $size parameter: *
** GRAPHEME_EXTR_COUNT (default) - $size is the number of default * grapheme clusters to extract. * GRAPHEME_EXTR_MAXBYTES - $size is the maximum number of bytes * returned. * GRAPHEME_EXTR_MAXCHARS - $size is the maximum number of UTF-8 * characters returned. *
* @param int $start [optional]* Starting position in $haystack in bytes - if given, it must be zero or a * positive value that is less than or equal to the length of $haystack in * bytes. If $start does not point to the first byte of a UTF-8 * character, the start position is moved to the next character boundary. *
* @param int $next [optional]* Reference to a value that will be set to the next starting position. * When the call returns, this may point to the first byte position past the end of the string. *
* @return string|false A string starting at offset $start and ending on a default grapheme cluster * boundary that conforms to the $size and $extract_type specified. */ function grapheme_extract($haystack, $size, $extract_type = null, $start = 0, &$next = null) { } /** * (PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.2, PHP 7, PECL idn >= 0.1)* Domain to convert. In PHP 5 must be UTF-8 encoded. * If e.g. an ISO-8859-1 (aka Western Europe latin1) encoded string is * passed it will be converted into an ACE encoded "xn--" string. * It will not be the one you expected though! *
* @param int $options [optional]* Conversion options - combination of IDNA_* constants (except IDNA_ERROR_* constants). *
* @param int $variant [optional]* Either INTL_IDNA_VARIANT_2003 for IDNA 2003 or INTL_IDNA_VARIANT_UTS46 for UTS #46. *
* @param array $idna_info [optional]* This parameter can be used only if INTL_IDNA_VARIANT_UTS46 was used for variant. * In that case, it will be filled with an array with the keys 'result', * the possibly illegal result of the transformation, 'isTransitionalDifferent', * a boolean indicating whether the usage of the transitional mechanisms of UTS #46 * either has or would have changed the result and 'errors', * which is an int representing a bitset of the error constants IDNA_ERROR_*. *
* @return string|false The ACE encoded version of the domain name or FALSE on failure. */ function idn_to_ascii($domain, $options = 0, $variant = INTL_IDNA_VARIANT_2003, array &$idna_info = null) { } /** * (PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.2, PHP 7, PECL idn >= 0.1)* Domain to convert in IDNA ASCII-compatible format. * The ASCII encoded domain name. Looks like "xn--..." if the it originally contained non-ASCII characters. *
* @param int $options [optional]* Conversion options - combination of IDNA_* constants (except IDNA_ERROR_* constants). *
* @param int $variant [optional]* Either INTL_IDNA_VARIANT_2003 for IDNA 2003 or INTL_IDNA_VARIANT_UTS46 for UTS #46. *
* @param array &$idna_info [optional]* This parameter can be used only if INTL_IDNA_VARIANT_UTS46 was used for variant. * In that case, it will be filled with an array with the keys 'result', * the possibly illegal result of the transformation, 'isTransitionalDifferent', * a boolean indicating whether the usage of the transitional mechanisms of UTS #46 * either has or would have changed the result and 'errors', * which is an int representing a bitset of the error constants IDNA_ERROR_*. *
* @return string|false The UTF-8 encoded version of the domain name or FALSE on failure. * RFC 3490 4.2 states though "ToUnicode never fails. If any step fails, then the original input * sequence is returned immediately in that step." */ function idn_to_utf8($domain, $options = 0, $variant = INTL_IDNA_VARIANT_2003, array &$idna_info = null) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
* The timezone to use. *
* ** NULL, in which case the default timezone will be used, as specified in * the ini setting {@link https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone} or * through the function {@link https://www.php.net/manual/en/function.date-default-timezone-set.php date_default_timezone_set()} and as * returned by {@link https://www.php.net/manual/en/function.date-default-timezone-get.php date_default_timezone_get()}. *
** An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone}, which will be used directly. *
** A {@link https://www.php.net/manual/en/class.datetimezone.php DateTimeZone}. Its identifier will be extracted * and an ICU timezone object will be created; the timezone will be backed * by ICU's database, not PHP's. *
** A {@link https://www.php.net/manual/en/language.types.string.php string}, which should be a valid ICU timezone identifier. * See IntlTimeZone::createTimeZoneIDEnumeration(). Raw * offsets such as "GMT+08:30" are also accepted. *
** A locale to use or NULL to use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.default-locale the default locale}. *
* @return IntlCalendar * The created {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} instance or NULL on * failure. * @since 5.5 */ function intlcal_create_instance($timeZone = null, $locale = null) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The locale keyword for which relevant values are to be queried. Only * 'calendar' is supported. *
* @param string $locale* The locale onto which the keyword/value pair are to be appended. *
* @param bool $commonlyUsed ** Whether to show only the values commonly used for the specified locale. *
* @return Iterator|false An iterator that yields strings with the locale keyword values or FALSE on failure. * @since 5.5 */ function intlcal_get_keyword_values_for_locale($key, $locale, $commonlyUsed) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int An integer with the value of the time field. * @since 5.5 */ function intl_get($calendar, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)The calendar whose time will be checked against this object's time.
* @return float * A {@link https://www.php.net/manual/en/language.types.float.php float} representing the number of milliseconds elapsed since the * reference time (1 Jan 1970 00:00:00 UTC). * @since 5.5 */ function intlcal_get_time($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* An instant represented by the number of number of milliseconds between * such instant and the epoch, ignoring leap seconds. *
* @return bool * Returns TRUE on success and FALSE on failure. * @since 5.5 */ function intlcal_set_time($date) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. * These are integer values between 0 and * IntlCalendar::FIELD_COUNT. *
* @param int $amountThe signed amount to add to the current field. If the amount is positive, the instant will be moved forward; if it is negative, the instant wil be moved into the past. The unit is implicit to the field type. * For instance, hours for IntlCalendar::FIELD_HOUR_OF_DAY.
* @return bool Returns TRUE on success or FALSE on failure. * @since 5.5 */ function intlcal_add($calendar, $field, $amount) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param mixed $timeZone* The new timezone to be used by this calendar. It can be specified in the * following ways: * *
* NULL, in which case the default timezone will be used, as specified in * the ini setting {@link https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone} or * through the function {@link https://www.php.net/manual/en/function.date-default-timezone-set.php date_default_timezone_set()} and as * returned by {@link https://www.php.net/manual/en/function.date-default-timezone-get.php date_default_timezone_get()}. *
** An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone}, which will be used directly. *
** A {@link https://www.php.net/manual/en/class.datetimezone.php DateTimeZone}. Its identifier will be extracted * and an ICU timezone object will be created; the timezone will be backed * by ICU's database, not PHP's. *
** A {@link https://www.php.net/manual/en/language.types.string.php string}, which should be a valid ICU timezone identifier. * See IntlTimeZone::createTimeZoneIDEnumeration(). Raw * offsets such as "GMT+08:30" are also accepted. *
** The calendar object, on the procedural style interface. *
* @param IntlCalendar $calendarThe calendar whose time will be checked against this object's time.
* @return bool * Returns TRUE if this object's current time is after that of the * calendar argument's time. Returns FALSE otherwise. * Also returns FALSE on failure. You can use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions. * @since 5.5 */ function intlcal_after(IntlCalendar $calendarObject, IntlCalendar $calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param IntlCalendar $calendarThe calendar whose time will be checked against this object's time.
* @return bool * Returns TRUE if this object's current time is before that of the * calendar argument's time. Returns FALSE otherwise. * Also returns FALSE on failure. You can use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to detect error conditions. * * @since 5.5 */ function intlcal_before(IntlCalendar $calendarObject, IntlCalendar $calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $year* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @param int $month* The new value for IntlCalendar::FIELD_MONTH. *
* @param int $dayOfMonth [optional]* The new value for IntlCalendar::FIELD_DAY_OF_MONTH. * The month sequence is zero-based, i.e., January is represented by 0, * February by 1, ..., December is 11 and Undecember (if the calendar has * it) is 12. *
* @param int $hour [optional] ** The new value for IntlCalendar::FIELD_HOUR_OF_DAY. *
* @param int $minute [optional] ** The new value for IntlCalendar::FIELD_MINUTE. *
* @param int $second [optional]* The new value for IntlCalendar::FIELD_SECOND. *
* @return bool Returns TRUE on success and FALSE on failure. * @since 5.5 */ function intlcal_set($calendar, $year, $month, $dayOfMonth = null, $hour = null, $minute = null, $second = null) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $fieldOne of the * {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time * {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. * These are integer values between 0 and * IntlCalendar::FIELD_COUNT. *
* @param mixed $amountOrUpOrDown* The (signed) amount to add to the field, TRUE for rolling up (adding * 1), or FALSE for rolling down (subtracting * 1). *
* @return bool Returns TRUE on success or FALSE on failure. * @since 5.5 */ function intlcal_roll($calendar, $field, $amountOrUpOrDown) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field [optional]* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return bool Returns TRUE on success or FALSE on failure. Failure can only occur is invalid arguments are provided. * @since 5.5 */ function intlcal_clear($calendar, $field = null) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param float $when* The time against which to compare the quantity represented by the * field. For the result to be positive, the time * given for this parameter must be ahead of the time of the object the * method is being invoked on. *
* @param int $field* The field that represents the quantity being compared. *
* ** One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int Returns a (signed) difference of time in the unit associated with the * specified field or FALSE on failure. * @since 5.5 */ function intlcal_field_difference($calendar, $when, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing the maximum value in the units associated * with the given field or FALSE on failure. * @since 5.5 */ function intlcal_get_actual_maximum($calendar, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. * These are integer values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing the minimum value in the field's * unit or FALSE on failure. * @since 5.5 */ function intlcal_get_actual_minimum($calendar, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $dayOfWeek* One of the constants IntlCalendar::DOW_SUNDAY, * IntlCalendar::DOW_MONDAY, ..., * IntlCalendar::DOW_SATURDAY. *
* @return int * Returns one of the constants * IntlCalendar::DOW_TYPE_WEEKDAY, * IntlCalendar::DOW_TYPE_WEEKEND, * IntlCalendar::DOW_TYPE_WEEKEND_OFFSET or * IntlCalendar::DOW_TYPE_WEEKEND_CEASE or FALSE on failure. * @since 5.5 */ function intlcal_get_day_of_week_type($calendar, $dayOfWeek) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return int * One of the constants IntlCalendar::DOW_SUNDAY, * IntlCalendar::DOW_MONDAY, ..., * IntlCalendar::DOW_SATURDAY or FALSE on failure. * @since 5.5 */ function intlcal_get_first_day_of_week($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field
* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
* values between 0 and
* IntlCalendar::FIELD_COUNT.
* @return int
* An {@link https://www.php.net/manual/en/language.types.integer.php int} representing a field value, in the field's
* unit, or FALSE on failure.
* @since 5.5
*/
function intlcal_greates_minimum($calendar, $field) { }
/**
* (PHP >= 5.3.2, PECL intl >= 2.0.0)
* Get data from the bundle
* @link https://php.net/manual/en/resourcebundle.get.php
* @param IntlCalendar $calendar
* The calendar object, on the procedural style interface. *
* @param string|int $index* Data index, must be string or integer. *
* @return mixed the data located at the index or NULL on error. Strings, integers and binary data strings * are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are * returned as ResourceBundle object. */ function intlcal_get($calendar, $index) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int * An {@link https://www.php.net/manual/en/language.types.integer.ph int} representing a field value in the field's * unit or FALSE on failure. * * @since 5.5 */ function intlcal_get_least_maximum($calendar, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field
* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer
* values between 0 and
* IntlCalendar::FIELD_COUNT.
* @return int
* An {@link https://www.php.net/manual/en/language.types.integer.php int} representing a field value, in the field's
* unit, or FALSE on failure.
* @since 5.5
*/
function intlcal_get_greatest_minimum($calendar, $field) { }
/**
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)
* Get the locale associated with the object
* @link https://www.php.net/manual/en/intlcalendar.getlocale.php
* @param IntlCalendar $calendar
* The calendar object, on the procedural style interface. *
* @param int $localeType* Whether to fetch the actual locale (the locale from which the calendar * data originates, with Locale::ACTUAL_LOCALE) or the * valid locale, i.e., the most specific locale supported by ICU relatively * to the requested locale – see Locale::VALID_LOCALE. * From the most general to the most specific, the locales are ordered in * this fashion – actual locale, valid locale, requested locale. *
* @return string * A locale string or FALSE on failure. * @since 5.5 */ function intlcal_get_locale($calendar, $localeType) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return string * A locale string or FALSE on failure. * @since 5.5 */ function intcal_get_maximum($calendar, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return int * An {@link https://www.php.net/manual/en/language.types.integer.php int} representing a number of days or FALSE on failure. * @since 5.5 */ function intlcal_get_minimal_days_in_first_week($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return int * An int representing a value for the given field in the field's unit or FALSE on failure. * @since 5.5 */ function intlcal_get_minimum($calendar, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return IntlTimeZone * An {@link https://www.php.net/manual/en/class.intltimezone.php IntlTimeZone} object corresponding to the one used * internally in this object. * @since 5.5 */ function intlcal_get_time_zone($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return string * A {@link https://www.php.net/manual/en/language.types.string.php string} representing the calendar type, such as * 'gregorian', 'islamic', etc. * @since 5.5 */ function intlcal_get_type($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param string $dayOfWeek* One of the constants IntlCalendar::DOW_SUNDAY, * IntlCalendar::DOW_MONDAY, ..., * IntlCalendar::DOW_SATURDAY. *
* @return int * The number of milliseconds into the day at which the weekend begins or * ends or FALSE on failure. * @since 5.5 */ function intlcal_get_weekend_transition($calendar, $dayOfWeek) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return bool * Returns TRUE if the date is in Daylight Savings Time, FALSE otherwise. * The value FALSE may also be returned on failure, for instance after * specifying invalid field values on non-lenient mode; use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or query * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate. * @since 5.5 */ function intlcal_in_daylight_time($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return bool * A {@link https://www.php.net/manual/en/language.types.boolean.php bool} representing whether the calendar is set to lenient mode. * @since 5.5 */ function intlcal_is_lenient($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return bool Assuming there are no argument errors, returns TRUE iif the field is set. * @since 5.5 */ function intlcal_is_set($calendar, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $field* One of the {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} date/time {@link https://www.php.net/manual/en/class.intlcalendar.php#intlcalendar.constants field constants}. These are integer * values between 0 and * IntlCalendar::FIELD_COUNT. *
* @return string * A locale string or FALSE on failure. * @since 5.5 */ function intlcal_get_maximum($calendar, $field) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param IntlCalendar $calendar The other calendar against which the comparison is to be made. * @return bool * Assuming there are no argument errors, returns TRUE iif the calendars are equivalent except possibly for their set time. * @since 5.5 */ function intlcal_is_equivalent_to(IntlCalendar $calendarObject, IntlCalendar $calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param float|null $date [optional]* An optional timestamp representing the number of milliseconds since the * epoch, excluding leap seconds. If NULL, this object's current time is * used instead. *
* @return bool *A {@link https://www.php.net/manual/en/language.types.boolean.php bool} indicating whether the given or this object's time occurs * in a weekend. *
** The value FALSE may also be returned on failure, for instance after giving * a date out of bounds on non-lenient mode; use {@link https://www.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or query * {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate.
* @since 5.5 */ function intlcal_is_weekend($calendar, $date = null) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $dayOfWeek* One of the constants IntlCalendar::DOW_SUNDAY, * IntlCalendar::DOW_MONDAY, ..., * IntlCalendar::DOW_SATURDAY. *
* @return bool Returns TRUE on success. Failure can only happen due to invalid parameters. * @since 5.5 */ function intlcal_set_first_day_of_week($calendar, $dayOfWeek) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param string $isLenient* Use TRUE to activate the lenient mode; FALSE otherwise. *
* @return bool Returns TRUE on success. Failure can only happen due to invalid parameters. * @since 5.5 */ function intlcal_set_lenient($calendar, $isLenient) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return int * One of the constants IntlCalendar::WALLTIME_FIRST or * IntlCalendar::WALLTIME_LAST. * @since 5.5 */ function intlcal_get_repeated_wall_time_option($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param IntlCalendar $calendar * @return bool* Returns TRUE if the current time of both this and the passed in * {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} object are the same, or FALSE * otherwise. The value FALSE can also be returned on failure. This can only * happen if bad arguments are passed in. In any case, the two cases can be * distinguished by calling {@link https://www.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()}. *
* @since 5.5 */ function intlcal_equals($calendarObject, $calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return int * One of the constants IntlCalendar::WALLTIME_FIRST, * IntlCalendar::WALLTIME_LAST or * IntlCalendar::WALLTIME_NEXT_VALID. * @since 5.5 */ function intlcal_get_skipped_wall_time_option($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $wallTimeOption* One of the constants IntlCalendar::WALLTIME_FIRST or * IntlCalendar::WALLTIME_LAST. *
* @return bool * Returns TRUE on success. Failure can only happen due to invalid parameters. * @since 5.5 */ function intlcal_set_repeated_wall_time_option($calendar, $wallTimeOption) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @param int $wallTimeOption* One of the constants IntlCalendar::WALLTIME_FIRST, * IntlCalendar::WALLTIME_LAST or * IntlCalendar::WALLTIME_NEXT_VALID. *
* @return bool ** Returns TRUE on success. Failure can only happen due to invalid parameters. *
* @since 5.5 */ function intlcal_set_skipped_wall_time_option($calendar, $wallTimeOption) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)* A {@link https://www.php.net/manual/en/class.datetime.php DateTime} object or a {@link https://www.php.net/manual/en/language.types.string.php string} that * can be passed to {@link https://www.php.net/manual/en/datetime.construct.php DateTime::__construct()}. *
* @return IntlCalendar * The created {@link https://www.php.net/manual/en/class.intlcalendar.php IntlCalendar} object or NULL in case of * failure. If a {@link https://www.php.net/manual/en/language.types.string.php string} is passed, any exception that occurs * inside the {@link https://www.php.net/manual/en/class.datetime.php DateTime} constructor is propagated. * @since 5.5 */ function intlcal_from_date_time($dateTime) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a2)* The calendar object, on the procedural style interface. *
* @return DateTime|false * A {@link https://www.php.net/manual/en/class.datetime.php DateTime} object with the same timezone as this * object (though using PHP's database instead of ICU's) and the same time, * except for the smaller precision (second precision instead of millisecond). * Returns FALSE on failure. * @since 5.5 */ function intlcal_to_date_time($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return int An ICU error code indicating either success, failure or a warning. * @since 5.5 */ function intlcal_get_error_code($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The calendar object, on the procedural style interface. *
* @return string The error message associated with last error that occurred in a function call on this object, or a string indicating the non-existance of an error. * @since 5.5 */ function intlcal_get_error_message($calendar) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The time zone object, on the procedural style interface. *
* @param bool $isDaylight [optional] * @param int $style [optional] * @param string $locale [optional] * @return string * @since 5.5 */ function intltz_get_display_name($obj, $isDaylight, $style, $locale) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The time zone object, on the procedural style interface. *
* @link https://www.php.net/manual/en/intltimezone.getequivalentid.php * @return int * @since 5.5 */ function intltz_get_dst_savings($obj) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The time zone object, on the procedural style interface. *
* @return int * @since 5.5 */ function intltz_get_error_code($obj) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* The time zone object, on the procedural style interface. *
* @return string * @since 5.5 */ function intltz_get_error_message($obj) { } /** * (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)* Locale for which the resources should be loaded (locale name, e.g. en_CA). *
* @param string $bundlename* The directory where the data is stored or the name of the .dat file. *
* @param bool $fallback [optional]* Whether locale should match exactly or fallback to parent locale is allowed. *
* @return ResourceBundle|false ResourceBundle object or FALSE on error. */ function resourcebundle_create($locale, $bundlename, $fallback = null) { } /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)* Data index, must be string or integer. *
* @return mixed the data located at the index or NULL on error. Strings, integers and binary data strings * are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are * returned as ResourceBundle object. */ function resourcebundle_get(ResourceBundle $r, $index) { } /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)* Path of ResourceBundle for which to get available locales, or * empty string for default locales list. *
* @return array the list of locales supported by the bundle. */ function resourcebundle_locales($bundlename) { } /** * (PHP >= 5.3.2, PECL intl >= 2.0.0)* The id. *
* @param int $direction [optional]* The direction, defaults to * >Transliterator::FORWARD. * May also be set to * Transliterator::REVERSE. *
* @return Transliterator|null a Transliterator object on success, * or NULL on failure. * @since 5.4 */ function transliterator_create($id, $direction = null) { } /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)* The rules. *
* @param string $direction [optional]* The direction, defaults to * >Transliterator::FORWARD. * May also be set to * Transliterator::REVERSE. *
* @return Transliterator a Transliterator object on success, * or NULL on failure. * @since 5.4 */ function transliterator_create_from_rules($rules, $direction = null) { } /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)* The string to be transformed. *
* @param int $start [optional]* The start index (in UTF-16 code units) from which the string will start * to be transformed, inclusive. Indexing starts at 0. The text before will * be left as is. *
* @param int $end [optional]* The end index (in UTF-16 code units) until which the string will be * transformed, exclusive. Indexing starts at 0. The text after will be * left as is. *
* @return string|false The transfomed string on success, or FALSE on failure. * @since 5.4 */ function transliterator_transliterate($transliterator, $subject, $start = null, $end = null) { } /** * (PHP >= 5.4.0, PECL intl >= 2.0.0)* is a value that returned by functions: * intl_get_error_code, * collator_get_error_code . *
* @return bool TRUE if it the code indicates some failure, and FALSE * in case of success or a warning. */ function intl_is_failure($error_code) { } /** * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)* ICU error code. *
* @return string The returned string will be the same as the name of the error code * constant. */ function intl_error_name($error_code) { } /** * Gets the Decomposition_Mapping property for the given UTF-8 encoded code point * * @link https://www.php.net/manual/en/normalizer.getrawdecomposition.php * * @param string $input * @return string|null * * @since 7.3 */ function normalizer_get_raw_decomposition($input) { } /** * @since 5.5 */ function intltz_create_default() { } /** * @since 5.5 */ function intltz_get_gmt() { } /** * @since 5.5 */ function intltz_get_unknown() { } /** * @since 5.5 */ function intltz_create_time_zone_id_enumeration($zoneType, $region = null, $rawOffset = null) { } /** * @since 5.5 */ function intltz_get_region($zoneId) { } /** * Set minimal number of days the first week in a year or month can have * * @link https://www.php.net/manual/en/intlcalendar.setminimaldaysinfirstweek.php * * @param IntlCalendar $calendar * @param int $numberOfDays * @return bool * * @since 5.5.1 */ function intlcal_set_minimal_days_in_first_week(IntlCalendar $calendar, $numberOfDays) { } /** * Limit on locale length, set to 80 in PHP code. Locale names longer * than this limit will not be accepted. * @link https://php.net/manual/en/intl.constants.php */ define ('INTL_MAX_LOCALE_LEN', 80); define ('INTL_ICU_VERSION', "4.8.1.1"); define ('INTL_ICU_DATA_VERSION', "4.8.1"); define ('ULOC_ACTUAL_LOCALE', 0); define ('ULOC_VALID_LOCALE', 1); define ('GRAPHEME_EXTR_COUNT', 0); define ('GRAPHEME_EXTR_MAXBYTES', 1); define ('GRAPHEME_EXTR_MAXCHARS', 2); define ('U_USING_FALLBACK_WARNING', -128); define ('U_ERROR_WARNING_START', -128); define ('U_USING_DEFAULT_WARNING', -127); define ('U_SAFECLONE_ALLOCATED_WARNING', -126); define ('U_STATE_OLD_WARNING', -125); define ('U_STRING_NOT_TERMINATED_WARNING', -124); define ('U_SORT_KEY_TOO_SHORT_WARNING', -123); define ('U_AMBIGUOUS_ALIAS_WARNING', -122); define ('U_DIFFERENT_UCA_VERSION', -121); define ('U_ERROR_WARNING_LIMIT', -119); define ('U_ZERO_ERROR', 0); define ('U_ILLEGAL_ARGUMENT_ERROR', 1); define ('U_MISSING_RESOURCE_ERROR', 2); define ('U_INVALID_FORMAT_ERROR', 3); define ('U_FILE_ACCESS_ERROR', 4); define ('U_INTERNAL_PROGRAM_ERROR', 5); define ('U_MESSAGE_PARSE_ERROR', 6); define ('U_MEMORY_ALLOCATION_ERROR', 7); define ('U_INDEX_OUTOFBOUNDS_ERROR', 8); define ('U_PARSE_ERROR', 9); define ('U_INVALID_CHAR_FOUND', 10); define ('U_TRUNCATED_CHAR_FOUND', 11); define ('U_ILLEGAL_CHAR_FOUND', 12); define ('U_INVALID_TABLE_FORMAT', 13); define ('U_INVALID_TABLE_FILE', 14); define ('U_BUFFER_OVERFLOW_ERROR', 15); define ('U_UNSUPPORTED_ERROR', 16); define ('U_RESOURCE_TYPE_MISMATCH', 17); define ('U_ILLEGAL_ESCAPE_SEQUENCE', 18); define ('U_UNSUPPORTED_ESCAPE_SEQUENCE', 19); define ('U_NO_SPACE_AVAILABLE', 20); define ('U_CE_NOT_FOUND_ERROR', 21); define ('U_PRIMARY_TOO_LONG_ERROR', 22); define ('U_STATE_TOO_OLD_ERROR', 23); define ('U_TOO_MANY_ALIASES_ERROR', 24); define ('U_ENUM_OUT_OF_SYNC_ERROR', 25); define ('U_INVARIANT_CONVERSION_ERROR', 26); define ('U_INVALID_STATE_ERROR', 27); define ('U_COLLATOR_VERSION_MISMATCH', 28); define ('U_USELESS_COLLATOR_ERROR', 29); define ('U_NO_WRITE_PERMISSION', 30); define ('U_STANDARD_ERROR_LIMIT', 31); define ('U_BAD_VARIABLE_DEFINITION', 65536); define ('U_PARSE_ERROR_START', 65536); define ('U_MALFORMED_RULE', 65537); define ('U_MALFORMED_SET', 65538); define ('U_MALFORMED_SYMBOL_REFERENCE', 65539); define ('U_MALFORMED_UNICODE_ESCAPE', 65540); define ('U_MALFORMED_VARIABLE_DEFINITION', 65541); define ('U_MALFORMED_VARIABLE_REFERENCE', 65542); define ('U_MISMATCHED_SEGMENT_DELIMITERS', 65543); define ('U_MISPLACED_ANCHOR_START', 65544); define ('U_MISPLACED_CURSOR_OFFSET', 65545); define ('U_MISPLACED_QUANTIFIER', 65546); define ('U_MISSING_OPERATOR', 65547); define ('U_MISSING_SEGMENT_CLOSE', 65548); define ('U_MULTIPLE_ANTE_CONTEXTS', 65549); define ('U_MULTIPLE_CURSORS', 65550); define ('U_MULTIPLE_POST_CONTEXTS', 65551); define ('U_TRAILING_BACKSLASH', 65552); define ('U_UNDEFINED_SEGMENT_REFERENCE', 65553); define ('U_UNDEFINED_VARIABLE', 65554); define ('U_UNQUOTED_SPECIAL', 65555); define ('U_UNTERMINATED_QUOTE', 65556); define ('U_RULE_MASK_ERROR', 65557); define ('U_MISPLACED_COMPOUND_FILTER', 65558); define ('U_MULTIPLE_COMPOUND_FILTERS', 65559); define ('U_INVALID_RBT_SYNTAX', 65560); define ('U_INVALID_PROPERTY_PATTERN', 65561); define ('U_MALFORMED_PRAGMA', 65562); define ('U_UNCLOSED_SEGMENT', 65563); define ('U_ILLEGAL_CHAR_IN_SEGMENT', 65564); define ('U_VARIABLE_RANGE_EXHAUSTED', 65565); define ('U_VARIABLE_RANGE_OVERLAP', 65566); define ('U_ILLEGAL_CHARACTER', 65567); define ('U_INTERNAL_TRANSLITERATOR_ERROR', 65568); define ('U_INVALID_ID', 65569); define ('U_INVALID_FUNCTION', 65570); define ('U_PARSE_ERROR_LIMIT', 65571); define ('U_UNEXPECTED_TOKEN', 65792); define ('U_FMT_PARSE_ERROR_START', 65792); define ('U_MULTIPLE_DECIMAL_SEPARATORS', 65793); define ('U_MULTIPLE_DECIMAL_SEPERATORS', 65793); define ('U_MULTIPLE_EXPONENTIAL_SYMBOLS', 65794); define ('U_MALFORMED_EXPONENTIAL_PATTERN', 65795); define ('U_MULTIPLE_PERCENT_SYMBOLS', 65796); define ('U_MULTIPLE_PERMILL_SYMBOLS', 65797); define ('U_MULTIPLE_PAD_SPECIFIERS', 65798); define ('U_PATTERN_SYNTAX_ERROR', 65799); define ('U_ILLEGAL_PAD_POSITION', 65800); define ('U_UNMATCHED_BRACES', 65801); define ('U_UNSUPPORTED_PROPERTY', 65802); define ('U_UNSUPPORTED_ATTRIBUTE', 65803); define ('U_FMT_PARSE_ERROR_LIMIT', 65810); define ('U_BRK_INTERNAL_ERROR', 66048); define ('U_BRK_ERROR_START', 66048); define ('U_BRK_HEX_DIGITS_EXPECTED', 66049); define ('U_BRK_SEMICOLON_EXPECTED', 66050); define ('U_BRK_RULE_SYNTAX', 66051); define ('U_BRK_UNCLOSED_SET', 66052); define ('U_BRK_ASSIGN_ERROR', 66053); define ('U_BRK_VARIABLE_REDFINITION', 66054); define ('U_BRK_MISMATCHED_PAREN', 66055); define ('U_BRK_NEW_LINE_IN_QUOTED_STRING', 66056); define ('U_BRK_UNDEFINED_VARIABLE', 66057); define ('U_BRK_INIT_ERROR', 66058); define ('U_BRK_RULE_EMPTY_SET', 66059); define ('U_BRK_UNRECOGNIZED_OPTION', 66060); define ('U_BRK_MALFORMED_RULE_TAG', 66061); define ('U_BRK_ERROR_LIMIT', 66062); define ('U_REGEX_INTERNAL_ERROR', 66304); define ('U_REGEX_ERROR_START', 66304); define ('U_REGEX_RULE_SYNTAX', 66305); define ('U_REGEX_INVALID_STATE', 66306); define ('U_REGEX_BAD_ESCAPE_SEQUENCE', 66307); define ('U_REGEX_PROPERTY_SYNTAX', 66308); define ('U_REGEX_UNIMPLEMENTED', 66309); define ('U_REGEX_MISMATCHED_PAREN', 66310); define ('U_REGEX_NUMBER_TOO_BIG', 66311); define ('U_REGEX_BAD_INTERVAL', 66312); define ('U_REGEX_MAX_LT_MIN', 66313); define ('U_REGEX_INVALID_BACK_REF', 66314); define ('U_REGEX_INVALID_FLAG', 66315); define ('U_REGEX_LOOK_BEHIND_LIMIT', 66316); define ('U_REGEX_SET_CONTAINS_STRING', 66317); define ('U_REGEX_ERROR_LIMIT', 66324); define ('U_IDNA_PROHIBITED_ERROR', 66560); define ('U_IDNA_ERROR_START', 66560); define ('U_IDNA_UNASSIGNED_ERROR', 66561); define ('U_IDNA_CHECK_BIDI_ERROR', 66562); define ('U_IDNA_STD3_ASCII_RULES_ERROR', 66563); define ('U_IDNA_ACE_PREFIX_ERROR', 66564); define ('U_IDNA_VERIFICATION_ERROR', 66565); define ('U_IDNA_LABEL_TOO_LONG_ERROR', 66566); define ('U_IDNA_ZERO_LENGTH_LABEL_ERROR', 66567); define ('U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR', 66568); define ('U_IDNA_ERROR_LIMIT', 66569); define ('U_STRINGPREP_PROHIBITED_ERROR', 66560); define ('U_STRINGPREP_UNASSIGNED_ERROR', 66561); define ('U_STRINGPREP_CHECK_BIDI_ERROR', 66562); define ('U_ERROR_LIMIT', 66818); /** * Prohibit processing of unassigned codepoints in the input for IDN * functions and do not check if the input conforms to domain name ASCII rules. * @link https://php.net/manual/en/intl.constants.php */ define ('IDNA_DEFAULT', 0); /** * Allow processing of unassigned codepoints in the input for IDN functions. * @link https://php.net/manual/en/intl.constants.php */ define ('IDNA_ALLOW_UNASSIGNED', 1); /** * Check if the input for IDN functions conforms to domain name ASCII rules. * @link https://php.net/manual/en/intl.constants.php */ define ('IDNA_USE_STD3_RULES', 2); /** * Check whether the input conforms to the BiDi rules. * Ignored by the IDNA2003 implementation, which always performs this check. * @link https://php.net/manual/en/intl.constants.php */ define ('IDNA_CHECK_BIDI', 4); /** * Check whether the input conforms to the CONTEXTJ rules. * Ignored by the IDNA2003 implementation, as this check is new in IDNA2008. * @link https://php.net/manual/en/intl.constants.php */ define ('IDNA_CHECK_CONTEXTJ', 8); /** * Option for nontransitional processing in * idn_to_ascii. Transitional processing is activated * by default. This option is ignored by the IDNA2003 implementation. * @link https://php.net/manual/en/intl.constants.php */ define ('IDNA_NONTRANSITIONAL_TO_ASCII', 16); /** * Option for nontransitional processing in * idn_to_utf8. Transitional processing is activated * by default. This option is ignored by the IDNA2003 implementation. * @link https://php.net/manual/en/intl.constants.php */ define ('IDNA_NONTRANSITIONAL_TO_UNICODE', 32); /** * Use IDNA 2003 algorithm in {@see idn_to_utf8} and * {@see idn_to_ascii}. This is the default. * @link https://php.net/manual/en/intl.constants.php * @deprecated 7.2 Use {@see INTL_IDNA_VARIANT_UTS46} instead. * @removed 8.0 */ define ('INTL_IDNA_VARIANT_2003', 0); /** * Use UTS #46 algorithm in idn_to_utf8 and * idn_to_ascii. * @link https://php.net/manual/en/intl.constants.php */ define ('INTL_IDNA_VARIANT_UTS46', 1); /** * Errors reported in a bitset returned by the UTS #46 algorithm in * idn_to_utf8 and * idn_to_ascii. * @link https://php.net/manual/en/intl.constants.php */ define ('IDNA_ERROR_EMPTY_LABEL', 1); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_LABEL_TOO_LONG', 2); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_DOMAIN_NAME_TOO_LONG', 4); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_LEADING_HYPHEN', 8); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_TRAILING_HYPHEN', 16); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_HYPHEN_3_4', 32); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_LEADING_COMBINING_MARK', 64); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_DISALLOWED', 128); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_PUNYCODE', 256); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_LABEL_HAS_DOT', 512); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_INVALID_ACE_LABEL', 1024); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_BIDI', 2048); /** * @link https://www.php.net/manual/en/migration54.global-constants.php * @since 5.4 */ define ('IDNA_ERROR_CONTEXTJ', 4096); /** * @since 5.5 */ class IntlBreakIterator implements IteratorAggregate { /* Constants */ const DONE = -1; const WORD_NONE = 0; const WORD_NONE_LIMIT = 100; const WORD_NUMBER = 100; const WORD_NUMBER_LIMIT = 200; const WORD_LETTER = 200; const WORD_LETTER_LIMIT = 300; const WORD_KANA = 300; const WORD_KANA_LIMIT = 400; const WORD_IDEO = 400; const WORD_IDEO_LIMIT = 500; const LINE_SOFT = 0; const LINE_SOFT_LIMIT = 100; const LINE_HARD = 100; const LINE_HARD_LIMIT = 200; const SENTENCE_TERM = 0; const SENTENCE_TERM_LIMIT = 100; const SENTENCE_SEP = 100; const SENTENCE_SEP_LIMIT = 200; /* Methods */ /** * (PHP 5 >=5.5.0)