| 1 |
<?php |
| 2 |
|
| 3 |
// Start of intl v.1.1.0 |
| 4 |
|
| 5 |
class Collator { |
| 6 |
const DEFAULT_VALUE = -1; |
| 7 |
const PRIMARY = 0; |
| 8 |
const SECONDARY = 1; |
| 9 |
const TERTIARY = 2; |
| 10 |
const DEFAULT_STRENGTH = 2; |
| 11 |
const QUATERNARY = 3; |
| 12 |
const IDENTICAL = 15; |
| 13 |
const OFF = 16; |
| 14 |
const ON = 17; |
| 15 |
const SHIFTED = 20; |
| 16 |
const NON_IGNORABLE = 21; |
| 17 |
const LOWER_FIRST = 24; |
| 18 |
const UPPER_FIRST = 25; |
| 19 |
const FRENCH_COLLATION = 0; |
| 20 |
const ALTERNATE_HANDLING = 1; |
| 21 |
const CASE_FIRST = 2; |
| 22 |
const CASE_LEVEL = 3; |
| 23 |
const NORMALIZATION_MODE = 4; |
| 24 |
const STRENGTH = 5; |
| 25 |
const HIRAGANA_QUATERNARY_MODE = 6; |
| 26 |
const NUMERIC_COLLATION = 7; |
| 27 |
const SORT_REGULAR = 0; |
| 28 |
const SORT_STRING = 1; |
| 29 |
const SORT_NUMERIC = 2; |
| 30 |
|
| 31 |
|
| 32 |
/** |
| 33 |
* Create a collator |
| 34 |
* @link http://www.php.net/manual/en/collator.construct.php |
| 35 |
* @param arg1 |
| 36 |
*/ |
| 37 |
public function __construct ($arg1) {} |
| 38 |
|
| 39 |
/** |
| 40 |
* Create a collator |
| 41 |
* @link http://www.php.net/manual/en/collator.create.php |
| 42 |
* @param locale string <p> |
| 43 |
* The locale containing the required collation rules. Special values for |
| 44 |
* locales can be passed in - if null is passed for the locale, the |
| 45 |
* default locale collation rules will be used. If empty string ("") or |
| 46 |
* "root" are passed, UCA rules will be used. |
| 47 |
* </p> |
| 48 |
* @return Collator Return new instance of Collator object, or &null; |
| 49 |
* on error. |
| 50 |
*/ |
| 51 |
public static function create ($locale) {} |
| 52 |
|
| 53 |
/** |
| 54 |
* Compare two Unicode strings |
| 55 |
* @link http://www.php.net/manual/en/collator.compare.php |
| 56 |
* @param str1 string <p> |
| 57 |
* The first string to compare. |
| 58 |
* </p> |
| 59 |
* @param str2 string <p> |
| 60 |
* The second string to compare. |
| 61 |
* </p> |
| 62 |
* @return int Return comparison result:</p> |
| 63 |
* <p> |
| 64 |
* |
| 65 |
* |
| 66 |
* <p> |
| 67 |
* 1 if str1 is greater than |
| 68 |
* str2 ; |
| 69 |
* </p> |
| 70 |
* |
| 71 |
* |
| 72 |
* <p> |
| 73 |
* 0 if str1 is equal to |
| 74 |
* str2; |
| 75 |
* </p> |
| 76 |
* |
| 77 |
* |
| 78 |
* <p> |
| 79 |
* -1 if str1 is less than |
| 80 |
* str2 . |
| 81 |
* </p> |
| 82 |
* |
| 83 |
* |
| 84 |
* On error |
| 85 |
* boolean |
| 86 |
* false |
| 87 |
* is returned. |
| 88 |
*/ |
| 89 |
public function compare ($str1, $str2) {} |
| 90 |
|
| 91 |
/** |
| 92 |
* Sort array using specified collator |
| 93 |
* @link http://www.php.net/manual/en/collator.sort.php |
| 94 |
* @param arr array <p> |
| 95 |
* Array of strings to sort. |
| 96 |
* </p> |
| 97 |
* @param sort_flag int[optional] <p> |
| 98 |
* Optional sorting type, one of the following: |
| 99 |
* </p> |
| 100 |
* <p> |
| 101 |
* |
| 102 |
* |
| 103 |
* <p> |
| 104 |
* Collator::SORT_REGULAR |
| 105 |
* - compare items normally (don't change types) |
| 106 |
* </p> |
| 107 |
* @return bool Returns true on success, false on failure. |
| 108 |
*/ |
| 109 |
public function sort (array &$arr, $sort_flag = null) {} |
| 110 |
|
| 111 |
/** |
| 112 |
* Sort array using specified collator and sort keys |
| 113 |
* @link http://www.php.net/manual/en/collator.sortwithsortkeys.php |
| 114 |
* @param arr array <p>Array of strings to sort</p> |
| 115 |
* @return bool Returns true on success, false on failure. |
| 116 |
*/ |
| 117 |
public function sortWithSortKeys (array &$arr) {} |
| 118 |
|
| 119 |
/** |
| 120 |
* Sort array maintaining index association |
| 121 |
* @link http://www.php.net/manual/en/collator.asort.php |
| 122 |
* @param arr array <p>Array of strings to sort.</p> |
| 123 |
* @param sort_flag int[optional] <p> |
| 124 |
* Optional sorting type, one of the following: |
| 125 |
* |
| 126 |
* |
| 127 |
* <p> |
| 128 |
* Collator::SORT_REGULAR |
| 129 |
* - compare items normally (don't change types) |
| 130 |
* </p> |
| 131 |
* @return bool Returns true on success, false on failure. |
| 132 |
*/ |
| 133 |
public function asort (array &$arr, $sort_flag = null) {} |
| 134 |
|
| 135 |
/** |
| 136 |
* Get collation attribute value |
| 137 |
* @link http://www.php.net/manual/en/collator.getattribute.php |
| 138 |
* @param attr int <p> |
| 139 |
* Attribute to get value for. |
| 140 |
* </p> |
| 141 |
* @return int Attribute value, or boolean false on error. |
| 142 |
*/ |
| 143 |
public function getAttribute ($attr) {} |
| 144 |
|
| 145 |
/** |
| 146 |
* Set collation attribute |
| 147 |
* @link http://www.php.net/manual/en/collator.setattribute.php |
| 148 |
* @param attr int <p>Attribute.</p> |
| 149 |
* @param val int <p> |
| 150 |
* Attribute value. |
| 151 |
* </p> |
| 152 |
* @return bool Returns true on success, false on failure. |
| 153 |
*/ |
| 154 |
public function setAttribute ($attr, $val) {} |
| 155 |
|
| 156 |
/** |
| 157 |
* Get current collation strength |
| 158 |
* @link http://www.php.net/manual/en/collator.getstrength.php |
| 159 |
* @return int current collation strength, or boolean false on error. |
| 160 |
*/ |
| 161 |
public function getStrength () {} |
| 162 |
|
| 163 |
/** |
| 164 |
* Set collation strength |
| 165 |
* @link http://www.php.net/manual/en/collator.setstrength.php |
| 166 |
* @param strength int <p>Strength to set.</p> |
| 167 |
* <p> |
| 168 |
* Possible values are: |
| 169 |
* |
| 170 |
* |
| 171 |
* <p> |
| 172 |
* Collator::PRIMARY |
| 173 |
* </p> |
| 174 |
* @return bool Returns true on success, false on failure. |
| 175 |
*/ |
| 176 |
public function setStrength ($strength) {} |
| 177 |
|
| 178 |
/** |
| 179 |
* Get the locale name of the collator |
| 180 |
* @link http://www.php.net/manual/en/collator.getlocale.php |
| 181 |
* @param type int <p> |
| 182 |
* You can choose between valid and actual locale ( |
| 183 |
* Locale::VALID_LOCALE and |
| 184 |
* Locale::ACTUAL_LOCALE, |
| 185 |
* respectively). |
| 186 |
* </p> |
| 187 |
* @return string Real locale name from which the collation data comes. If the collator was |
| 188 |
* instantiated from rules or an error occurred, returns |
| 189 |
* boolean false. |
| 190 |
*/ |
| 191 |
public function getLocale ($type) {} |
| 192 |
|
| 193 |
/** |
| 194 |
* Get collator's last error code |
| 195 |
* @link http://www.php.net/manual/en/collator.geterrorcode.php |
| 196 |
* @return int Error code returned by the last Collator API function call. |
| 197 |
*/ |
| 198 |
public function getErrorCode () {} |
| 199 |
|
| 200 |
/** |
| 201 |
* Get text for collator's last error code |
| 202 |
* @link http://www.php.net/manual/en/collator.geterrormessage.php |
| 203 |
* @return string Description of an error occurred in the last Collator API function call. |
| 204 |
*/ |
| 205 |
public function getErrorMessage () {} |
| 206 |
|
| 207 |
/** |
| 208 |
* Get sorting key for a string |
| 209 |
* @link http://www.php.net/manual/en/collator.getsortkey.php |
| 210 |
* @param str string <p> |
| 211 |
* The string to produce the key from. |
| 212 |
* </p> |
| 213 |
* @return string the collation key for the string. Collation keys can be compared directly instead of strings. |
| 214 |
*/ |
| 215 |
public function getSortKey ($str) {} |
| 216 |
|
| 217 |
} |
| 218 |
|
| 219 |
class NumberFormatter { |
| 220 |
const PATTERN_DECIMAL = 0; |
| 221 |
const DECIMAL = 1; |
| 222 |
const CURRENCY = 2; |
| 223 |
const PERCENT = 3; |
| 224 |
const SCIENTIFIC = 4; |
| 225 |
const SPELLOUT = 5; |
| 226 |
const ORDINAL = 6; |
| 227 |
const DURATION = 7; |
| 228 |
const PATTERN_RULEBASED = 9; |
| 229 |
const IGNORE = 0; |
| 230 |
const DEFAULT_STYLE = 1; |
| 231 |
const ROUND_CEILING = 0; |
| 232 |
const ROUND_FLOOR = 1; |
| 233 |
const ROUND_DOWN = 2; |
| 234 |
const ROUND_UP = 3; |
| 235 |
const ROUND_HALFEVEN = 4; |
| 236 |
const ROUND_HALFDOWN = 5; |
| 237 |
const ROUND_HALFUP = 6; |
| 238 |
const PAD_BEFORE_PREFIX = 0; |
| 239 |
const PAD_AFTER_PREFIX = 1; |
| 240 |
const PAD_BEFORE_SUFFIX = 2; |
| 241 |
const PAD_AFTER_SUFFIX = 3; |
| 242 |
const PARSE_INT_ONLY = 0; |
| 243 |
const GROUPING_USED = 1; |
| 244 |
const DECIMAL_ALWAYS_SHOWN = 2; |
| 245 |
const MAX_INTEGER_DIGITS = 3; |
| 246 |
const MIN_INTEGER_DIGITS = 4; |
| 247 |
const INTEGER_DIGITS = 5; |
| 248 |
const MAX_FRACTION_DIGITS = 6; |
| 249 |
const MIN_FRACTION_DIGITS = 7; |
| 250 |
const FRACTION_DIGITS = 8; |
| 251 |
const MULTIPLIER = 9; |
| 252 |
const GROUPING_SIZE = 10; |
| 253 |
const ROUNDING_MODE = 11; |
| 254 |
const ROUNDING_INCREMENT = 12; |
| 255 |
const FORMAT_WIDTH = 13; |
| 256 |
const PADDING_POSITION = 14; |
| 257 |
const SECONDARY_GROUPING_SIZE = 15; |
| 258 |
const SIGNIFICANT_DIGITS_USED = 16; |
| 259 |
const MIN_SIGNIFICANT_DIGITS = 17; |
| 260 |
const MAX_SIGNIFICANT_DIGITS = 18; |
| 261 |
const LENIENT_PARSE = 19; |
| 262 |
const POSITIVE_PREFIX = 0; |
| 263 |
const POSITIVE_SUFFIX = 1; |
| 264 |
const NEGATIVE_PREFIX = 2; |
| 265 |
const NEGATIVE_SUFFIX = 3; |
| 266 |
const PADDING_CHARACTER = 4; |
| 267 |
const CURRENCY_CODE = 5; |
| 268 |
const DEFAULT_RULESET = 6; |
| 269 |
const PUBLIC_RULESETS = 7; |
| 270 |
const DECIMAL_SEPARATOR_SYMBOL = 0; |
| 271 |
const GROUPING_SEPARATOR_SYMBOL = 1; |
| 272 |
const PATTERN_SEPARATOR_SYMBOL = 2; |
| 273 |
const PERCENT_SYMBOL = 3; |
| 274 |
const ZERO_DIGIT_SYMBOL = 4; |
| 275 |
const DIGIT_SYMBOL = 5; |
| 276 |
const MINUS_SIGN_SYMBOL = 6; |
| 277 |
const PLUS_SIGN_SYMBOL = 7; |
| 278 |
const CURRENCY_SYMBOL = 8; |
| 279 |
const INTL_CURRENCY_SYMBOL = 9; |
| 280 |
const MONETARY_SEPARATOR_SYMBOL = 10; |
| 281 |
const EXPONENTIAL_SYMBOL = 11; |
| 282 |
const PERMILL_SYMBOL = 12; |
| 283 |
const PAD_ESCAPE_SYMBOL = 13; |
| 284 |
const INFINITY_SYMBOL = 14; |
| 285 |
const NAN_SYMBOL = 15; |
| 286 |
const SIGNIFICANT_DIGIT_SYMBOL = 16; |
| 287 |
const MONETARY_GROUPING_SEPARATOR_SYMBOL = 17; |
| 288 |
const TYPE_DEFAULT = 0; |
| 289 |
const TYPE_INT32 = 1; |
| 290 |
const TYPE_INT64 = 2; |
| 291 |
const TYPE_DOUBLE = 3; |
| 292 |
const TYPE_CURRENCY = 4; |
| 293 |
|
| 294 |
|
| 295 |
/** |
| 296 |
* @param locale |
| 297 |
* @param style |
| 298 |
* @param pattern[optional] |
| 299 |
*/ |
| 300 |
public function __construct ($locale, $style, $pattern) {} |
| 301 |
|
| 302 |
/** |
| 303 |
* Create a number formatter |
| 304 |
* @link http://www.php.net/manual/en/numberformatter.create.php |
| 305 |
* @param locale string <p> |
| 306 |
* Locale in which the number would be formatted (locale name, e.g. en_CA). |
| 307 |
* </p> |
| 308 |
* @param style int <p> |
| 309 |
* Style of the formatting, one of the |
| 310 |
* |
| 311 |
* format style constants. If |
| 312 |
* NumberFormatter::PATTERN_DECIMAL |
| 313 |
* or NumberFormatter::PATTERN_RULEBASED |
| 314 |
* is passed then the number format is opened using the given pattern, |
| 315 |
* which must conform to the syntax described in |
| 316 |
* ICU DecimalFormat |
| 317 |
* documentation or |
| 318 |
* ICU RuleBasedNumberFormat |
| 319 |
* documentation, respectively. |
| 320 |
* </p> |
| 321 |
* @param pattern string[optional] <p> |
| 322 |
* Pattern string if the chosen style requires a pattern. |
| 323 |
* </p> |
| 324 |
* @return NumberFormatter NumberFormatter object or false on error. |
| 325 |
*/ |
| 326 |
public static function create ($locale, $style, $pattern = null) {} |
| 327 |
|
| 328 |
/** |
| 329 |
* Format a number |
| 330 |
* @link http://www.php.net/manual/en/numberformatter.format.php |
| 331 |
* @param value number <p> |
| 332 |
* The value to format. Can be integer or float, |
| 333 |
* other values will be converted to a numeric value. |
| 334 |
* </p> |
| 335 |
* @param type int[optional] <p> |
| 336 |
* The |
| 337 |
* |
| 338 |
* formatting type to use. |
| 339 |
* </p> |
| 340 |
* @return string the string containing formatted value, or false on error. |
| 341 |
*/ |
| 342 |
public function format ($value, $type = null) {} |
| 343 |
|
| 344 |
/** |
| 345 |
* Parse a number |
| 346 |
* @link http://www.php.net/manual/en/numberformatter.parse.php |
| 347 |
* @param value string |
| 348 |
* @param type int[optional] <p> |
| 349 |
* The |
| 350 |
* |
| 351 |
* formatting type to use. By default, |
| 352 |
* NumberFormatter::TYPE_DOUBLE is used. |
| 353 |
* </p> |
| 354 |
* @param position int[optional] <p> |
| 355 |
* Offset in the string at which to begin parsing. On return, this value |
| 356 |
* will hold the offset at which parsing ended. |
| 357 |
* </p> |
| 358 |
* @return mixed The value of the parsed number or false on error. |
| 359 |
*/ |
| 360 |
public function parse ($value, $type = null, &$position = null) {} |
| 361 |
|
| 362 |
/** |
| 363 |
* Format a currency value |
| 364 |
* @link http://www.php.net/manual/en/numberformatter.formatcurrency.php |
| 365 |
* @param value float <p> |
| 366 |
* The numeric currency value. |
| 367 |
* </p> |
| 368 |
* @param currency string <p> |
| 369 |
* The 3-letter ISO 4217 currency code indicating the currency to use. |
| 370 |
* </p> |
| 371 |
* @return string String representing the formatted currency value. |
| 372 |
*/ |
| 373 |
public function formatCurrency ($value, $currency) {} |
| 374 |
|
| 375 |
/** |
| 376 |
* Parse a currency number |
| 377 |
* @link http://www.php.net/manual/en/numberformatter.parsecurrency.php |
| 378 |
* @param value string |
| 379 |
* @param currency string <p> |
| 380 |
* Parameter to receive the currency name (3-letter ISO 4217 currency |
| 381 |
* code). |
| 382 |
* </p> |
| 383 |
* @param position int[optional] <p> |
| 384 |
* Offset in the string at which to begin parsing. On return, this value |
| 385 |
* will hold the offset at which parsing ended. |
| 386 |
* </p> |
| 387 |
* @return float The parsed numeric value or false on error. |
| 388 |
*/ |
| 389 |
public function parseCurrency ($value, &$currency, &$position = null) {} |
| 390 |
|
| 391 |
/** |
| 392 |
* Set an attribute |
| 393 |
* @link http://www.php.net/manual/en/numberformatter.setattribute.php |
| 394 |
* @param attr int <p> |
| 395 |
* Attribute specifier - one of the |
| 396 |
* |
| 397 |
* numeric attribute constants. |
| 398 |
* </p> |
| 399 |
* @param value int <p> |
| 400 |
* The attribute value. |
| 401 |
* </p> |
| 402 |
* @return bool Returns true on success, false on failure. |
| 403 |
*/ |
| 404 |
public function setAttribute ($attr, $value) {} |
| 405 |
|
| 406 |
/** |
| 407 |
* Get an attribute |
| 408 |
* @link http://www.php.net/manual/en/numberformatter.getattribute.php |
| 409 |
* @param attr int <p> |
| 410 |
* Attribute specifier - one of the |
| 411 |
* |
| 412 |
* numeric attribute constants. |
| 413 |
* </p> |
| 414 |
* @return int Return attribute value on success, or false on error. |
| 415 |
*/ |
| 416 |
public function getAttribute ($attr) {} |
| 417 |
|
| 418 |
/** |
| 419 |
* Set a text attribute |
| 420 |
* @link http://www.php.net/manual/en/numberformatter.settextattribute.php |
| 421 |
* @param attr int <p> |
| 422 |
* Attribute specifier - one of the |
| 423 |
* text attribute |
| 424 |
* constants. |
| 425 |
* </p> |
| 426 |
* @param value string <p> |
| 427 |
* Text for the attribute value. |
| 428 |
* </p> |
| 429 |
* @return bool Returns true on success, false on failure. |
| 430 |
*/ |
| 431 |
public function setTextAttribute ($attr, $value) {} |
| 432 |
|
| 433 |
/** |
| 434 |
* Get a text attribute |
| 435 |
* @link http://www.php.net/manual/en/numberformatter.gettextattribute.php |
| 436 |
* @param attr int <p> |
| 437 |
* Attribute specifier - one of the |
| 438 |
* |
| 439 |
* text attribute constants. |
| 440 |
* </p> |
| 441 |
* @return string Return attribute value on success, or false on error. |
| 442 |
*/ |
| 443 |
public function getTextAttribute ($attr) {} |
| 444 |
|
| 445 |
/** |
| 446 |
* Set a symbol value |
| 447 |
* @link http://www.php.net/manual/en/numberformatter.setsymbol.php |
| 448 |
* @param attr int <p> |
| 449 |
* Symbol specifier, one of the |
| 450 |
* |
| 451 |
* format symbol constants. |
| 452 |
* </p> |
| 453 |
* @param value string <p> |
| 454 |
* Text for the symbol. |
| 455 |
* </p> |
| 456 |
* @return bool Returns true on success, false on failure. |
| 457 |
*/ |
| 458 |
public function setSymbol ($attr, $value) {} |
| 459 |
|
| 460 |
/** |
| 461 |
* Get a symbol value |
| 462 |
* @link http://www.php.net/manual/en/numberformatter.getsymbol.php |
| 463 |
* @param attr int <p> |
| 464 |
* Symbol specifier, one of the |
| 465 |
* |
| 466 |
* format symbol constants. |
| 467 |
* </p> |
| 468 |
* @return string The symbol string or false on error. |
| 469 |
*/ |
| 470 |
public function getSymbol ($attr) {} |
| 471 |
|
| 472 |
/** |
| 473 |
* Set formatter pattern |
| 474 |
* @link http://www.php.net/manual/en/numberformatter.setpattern.php |
| 475 |
* @param pattern string <p> |
| 476 |
* Pattern in syntax described in |
| 477 |
* ICU DecimalFormat |
| 478 |
* documentation. |
| 479 |
* </p> |
| 480 |
* @return bool Returns true on success, false on failure. |
| 481 |
*/ |
| 482 |
public function setPattern ($pattern) {} |
| 483 |
|
| 484 |
/** |
| 485 |
* Get formatter pattern |
| 486 |
* @link http://www.php.net/manual/en/numberformatter.getpattern.php |
| 487 |
* @return string Pattern string that is used by the formatter, or false if an error happens. |
| 488 |
*/ |
| 489 |
public function getPattern () {} |
| 490 |
|
| 491 |
/** |
| 492 |
* Get formatter locale |
| 493 |
* @link http://www.php.net/manual/en/numberformatter.getlocale.php |
| 494 |
* @param type int[optional] <p> |
| 495 |
* You can choose between valid and actual locale ( |
| 496 |
* Locale::VALID_LOCALE, |
| 497 |
* Locale::ACTUAL_LOCALE, |
| 498 |
* respectively). The default is the actual locale. |
| 499 |
* </p> |
| 500 |
* @return string The locale name used to create the formatter. |
| 501 |
*/ |
| 502 |
public function getLocale ($type = null) {} |
| 503 |
|
| 504 |
/** |
| 505 |
* Get formatter's last error code. |
| 506 |
* @link http://www.php.net/manual/en/numberformatter.geterrorcode.php |
| 507 |
* @return int error code from last formatter call. |
| 508 |
*/ |
| 509 |
public function getErrorCode () {} |
| 510 |
|
| 511 |
/** |
| 512 |
* Get formatter's last error message. |
| 513 |
* @link http://www.php.net/manual/en/numberformatter.geterrormessage.php |
| 514 |
* @return string error message from last formatter call. |
| 515 |
*/ |
| 516 |
public function getErrorMessage () {} |
| 517 |
|
| 518 |
} |
| 519 |
|
| 520 |
class Normalizer { |
| 521 |
const NONE = 1; |
| 522 |
const FORM_D = 2; |
| 523 |
const NFD = 2; |
| 524 |
const FORM_KD = 3; |
| 525 |
const NFKD = 3; |
| 526 |
const FORM_C = 4; |
| 527 |
const NFC = 4; |
| 528 |
const FORM_KC = 5; |
| 529 |
const NFKC = 5; |
| 530 |
|
| 531 |
|
| 532 |
/** |
| 533 |
* Normalizes the input provided and returns the normalized string |
| 534 |
* @link http://www.php.net/manual/en/normalizer.normalize.php |
| 535 |
* @param input string <p>The input string to normalize</p> |
| 536 |
* @param form string[optional] <p>One of the normalization forms.</p> |
| 537 |
* @return string The normalized string or &null; if an error occurred. |
| 538 |
*/ |
| 539 |
public static function normalize ($input, $form = null) {} |
| 540 |
|
| 541 |
/** |
| 542 |
* Checks if the provided string is already in the specified normalization |
| 543 |
form. |
| 544 |
* @link http://www.php.net/manual/en/normalizer.isnormalized.php |
| 545 |
* @param input string <p>The input string to normalize</p> |
| 546 |
* @param form string[optional] <p> |
| 547 |
* One of the normalization forms. |
| 548 |
* </p> |
| 549 |
* @return bool true if normalized, false otherwise or if there an error |
| 550 |
*/ |
| 551 |
public static function isNormalized ($input, $form = null) {} |
| 552 |
|
| 553 |
} |
| 554 |
|
| 555 |
class Locale { |
| 556 |
const ACTUAL_LOCALE = 0; |
| 557 |
const VALID_LOCALE = 1; |
| 558 |
const DEFAULT_LOCALE = null; |
| 559 |
const LANG_TAG = "language"; |
| 560 |
const EXTLANG_TAG = "extlang"; |
| 561 |
const SCRIPT_TAG = "script"; |
| 562 |
const REGION_TAG = "region"; |
| 563 |
const VARIANT_TAG = "variant"; |
| 564 |
const GRANDFATHERED_LANG_TAG = "grandfathered"; |
| 565 |
const PRIVATE_TAG = "private"; |
| 566 |
|
| 567 |
|
| 568 |
/** |
| 569 |
* Gets the default locale value from the INTL global 'default_locale' |
| 570 |
* @link http://www.php.net/manual/en/locale.getdefault.php |
| 571 |
* @return string The current runtime locale |
| 572 |
*/ |
| 573 |
public static function getDefault () {} |
| 574 |
|
| 575 |
/** |
| 576 |
* sets the default runtime locale |
| 577 |
* @link http://www.php.net/manual/en/locale.setdefault.php |
| 578 |
* @param locale string <p> |
| 579 |
* Is a BCP 47 compliant language tag containing the |
| 580 |
* </p> |
| 581 |
* @return bool Returns true on success, false on failure. |
| 582 |
*/ |
| 583 |
public static function setDefault ($locale) {} |
| 584 |
|
| 585 |
/** |
| 586 |
* Gets the primary language for the input locale |
| 587 |
* @link http://www.php.net/manual/en/locale.getprimarylanguage.php |
| 588 |
* @param locale string <p> |
| 589 |
* The locale to extract the primary language code from |
| 590 |
* </p> |
| 591 |
* @return string The language code associated with the language or &null; in case of error. |
| 592 |
*/ |
| 593 |
public static function getPrimaryLanguage ($locale) {} |
| 594 |
|
| 595 |
/** |
| 596 |
* Gets the script for the input locale |
| 597 |
* @link http://www.php.net/manual/en/locale.getscript.php |
| 598 |
* @param locale string <p> |
| 599 |
* The locale to extract the script code from |
| 600 |
* </p> |
| 601 |
* @return string The script subtag for the locale or &null; if not present |
| 602 |
*/ |
| 603 |
public static function getScript ($locale) {} |
| 604 |
|
| 605 |
/** |
| 606 |
* Gets the region for the input locale |
| 607 |
* @link http://www.php.net/manual/en/locale.getregion.php |
| 608 |
* @param locale string <p> |
| 609 |
* The locale to extract the region code from |
| 610 |
* </p> |
| 611 |
* @return string The region subtag for the locale or &null; if not present |
| 612 |
*/ |
| 613 |
public static function getRegion ($locale) {} |
| 614 |
|
| 615 |
/** |
| 616 |
* Gets the keywords for the input locale |
| 617 |
* @link http://www.php.net/manual/en/locale.getkeywords.php |
| 618 |
* @param locale string <p> |
| 619 |
* The locale to extract the keywords from |
| 620 |
* </p> |
| 621 |
* @return array Associative array containing the keyword-value pairs for this locale |
| 622 |
*/ |
| 623 |
public static function getKeywords ($locale) {} |
| 624 |
|
| 625 |
/** |
| 626 |
* Returns an appropriately localized display name for script of the input locale |
| 627 |
* @link http://www.php.net/manual/en/locale.getdisplayscript.php |
| 628 |
* @param locale string <p> |
| 629 |
* The locale to return a display script for |
| 630 |
* </p> |
| 631 |
* @param in_locale string[optional] <p> |
| 632 |
* Optional format locale to use to display the script name |
| 633 |
* </p> |
| 634 |
* @return string Display name of the script for the $locale in the format appropriate for |
| 635 |
* $in_locale. |
| 636 |
*/ |
| 637 |
public static function getDisplayScript ($locale, $in_locale = null) {} |
| 638 |
|
| 639 |
/** |
| 640 |
* Returns an appropriately localized display name for region of the input locale |
| 641 |
* @link http://www.php.net/manual/en/locale.getdisplayregion.php |
| 642 |
* @param locale string <p> |
| 643 |
* The locale to return a display region for. |
| 644 |
* </p> |
| 645 |
* @param in_locale string[optional] <p> |
| 646 |
* Optional format locale to use to display the region name |
| 647 |
* </p> |
| 648 |
* @return string display name of the region for the $locale in the format appropriate for |
| 649 |
* $in_locale. |
| 650 |
*/ |
| 651 |
public static function getDisplayRegion ($locale, $in_locale = null) {} |
| 652 |
|
| 653 |
/** |
| 654 |
* Returns an appropriately localized display name for the input locale |
| 655 |
* @link http://www.php.net/manual/en/locale.getdisplayname.php |
| 656 |
* @param locale string <p> |
| 657 |
* The locale to return a display name for. |
| 658 |
* </p> |
| 659 |
* @param in_locale string[optional] <p>optional format locale</p> |
| 660 |
* @return string Display name of the locale in the format appropriate for $in_locale. |
| 661 |
*/ |
| 662 |
public static function getDisplayName ($locale, $in_locale = null) {} |
| 663 |
|
| 664 |
/** |
| 665 |
* Returns an appropriately localized display name for language of the inputlocale |
| 666 |
* @link http://www.php.net/manual/en/locale.getdisplaylanguage.php |
| 667 |
* @param locale string <p> |
| 668 |
* The locale to return a display language for |
| 669 |
* </p> |
| 670 |
* @param in_locale string[optional] <p> |
| 671 |
* Optional format locale to use to display the language name |
| 672 |
* </p> |
| 673 |
* @return string display name of the language for the $locale in the format appropriate for |
| 674 |
* $in_locale. |
| 675 |
*/ |
| 676 |
public static function getDisplayLanguage ($locale, $in_locale = null) {} |
| 677 |
|
| 678 |
/** |
| 679 |
* Returns an appropriately localized display name for variants of the input locale |
| 680 |
* @link http://www.php.net/manual/en/locale.getdisplayvariant.php |
| 681 |
* @param locale string <p> |
| 682 |
* The locale to return a display variant for |
| 683 |
* </p> |
| 684 |
* @param in_locale string[optional] <p> |
| 685 |
* Optional format locale to use to display the variant name |
| 686 |
* </p> |
| 687 |
* @return string Display name of the variant for the $locale in the format appropriate for |
| 688 |
* $in_locale. |
| 689 |
*/ |
| 690 |
public static function getDisplayVariant ($locale, $in_locale = null) {} |
| 691 |
|
| 692 |
/** |
| 693 |
* Returns a correctly ordered and delimited locale ID |
| 694 |
* @link http://www.php.net/manual/en/locale.composelocale.php |
| 695 |
* @param subtags array <p> |
| 696 |
* an array containing a list of key-value pairs, where the keys identify |
| 697 |
* the particular locale ID subtags, and the values are the associated |
| 698 |
* subtag values. |
| 699 |
* |
| 700 |
* <p> |
| 701 |
* The 'variant' and 'private' subtags can take maximum 15 values |
| 702 |
* whereas 'extlang' can take maximum 3 values.e.g. Variants are allowed |
| 703 |
* with the suffix ranging from 0-14. Hence the keys for the input array |
| 704 |
* can be variant0, variant1, ...,variant14. In the returned locale id, |
| 705 |
* the subtag is ordered by suffix resulting in variant0 followed by |
| 706 |
* variant1 followed by variant2 and so on. |
| 707 |
* </p> |
| 708 |
* <p> |
| 709 |
* The 'variant', 'private' and 'extlang' multiple values can be specified both |
| 710 |
* as array under specific key (e.g. 'variant') and as multiple numbered keys |
| 711 |
* (e.g. 'variant0', 'variant1', etc.). |
| 712 |
* </p> |
| 713 |
* |
| 714 |
* </p> |
| 715 |
* @return string The corresponding locale identifier. |
| 716 |
*/ |
| 717 |
public static function composeLocale (array $subtags) {} |
| 718 |
|
| 719 |
/** |
| 720 |
* Returns a key-value array of locale ID subtag elements. |
| 721 |
* @link http://www.php.net/manual/en/locale.parselocale.php |
| 722 |
* @param locale string <p> |
| 723 |
* The locale to extract the subtag array from. Note: The 'variant' and |
| 724 |
* 'private' subtags can take maximum 15 values whereas 'extlang' can take |
| 725 |
* maximum 3 values. |
| 726 |
* </p> |
| 727 |
* @return array an array containing a list of key-value pairs, where the keys |
| 728 |
* identify the particular locale ID subtags, and the values are the |
| 729 |
* associated subtag values. The array will be ordered as the locale id |
| 730 |
* subtags e.g. in the locale id if variants are '-varX-varY-varZ' then the |
| 731 |
* returned array will have variant0=>varX , variant1=>varY , |
| 732 |
* variant2=>varZ |
| 733 |
*/ |
| 734 |
public static function parseLocale ($locale) {} |
| 735 |
|
| 736 |
/** |
| 737 |
* Gets the variants for the input locale |
| 738 |
* @link http://www.php.net/manual/en/locale.getallvariants.php |
| 739 |
* @param locale string <p> |
| 740 |
* The locale to extract the variants from |
| 741 |
* </p> |
| 742 |
* @return array The array containing the list of all variants subtag for the locale |
| 743 |
* or &null; if not present |
| 744 |
*/ |
| 745 |
public static function getAllVariants ($locale) {} |
| 746 |
|
| 747 |
/** |
| 748 |
* Checks if a language tag filter matches with locale |
| 749 |
* @link http://www.php.net/manual/en/locale.filtermatches.php |
| 750 |
* @param langtag string <p> |
| 751 |
* The language tag to check |
| 752 |
* </p> |
| 753 |
* @param locale string <p> |
| 754 |
* The language range to check against |
| 755 |
* </p> |
| 756 |
* @param canonicalize bool[optional] <p> |
| 757 |
* If true, the arguments will be converted to canonical form before |
| 758 |
* matching. |
| 759 |
* </p> |
| 760 |
* @return bool true if $locale matches $langtag false otherwise. |
| 761 |
*/ |
| 762 |
public static function filterMatches ($langtag, $locale, $canonicalize = null) {} |
| 763 |
|
| 764 |
/** |
| 765 |
* Searches the language tag list for the best match to the language |
| 766 |
* @link http://www.php.net/manual/en/locale.lookup.php |
| 767 |
* @param langtag array <p> |
| 768 |
* An array containing a list of language tags to compare to |
| 769 |
* locale. Maximum 100 items allowed. |
| 770 |
* </p> |
| 771 |
* @param locale string <p> |
| 772 |
* The locale to use as the language range when matching. |
| 773 |
* </p> |
| 774 |
* @param canonicalize bool[optional] <p> |
| 775 |
* If true, the arguments will be converted to canonical form before |
| 776 |
* matching. |
| 777 |
* </p> |
| 778 |
* @param default string[optional] <p> |
| 779 |
* The locale to use if no match is found. |
| 780 |
* </p> |
| 781 |
* @return string The closest matching language tag or default value. |
| 782 |
*/ |
| 783 |
public static function lookup (array $langtag, $locale, $canonicalize = null, $default = null) {} |
| 784 |
|
| 785 |
/** |
| 786 |
* Canonicalize the locale string |
| 787 |
* @link http://www.php.net/manual/en/locale.canonicalize.php |
| 788 |
* @param locale string <p> |
| 789 |
* |
| 790 |
* </p> |
| 791 |
* @return string |
| 792 |
*/ |
| 793 |
public static function canonicalize ($locale) {} |
| 794 |
|
| 795 |
/** |
| 796 |
* Tries to find out best available locale based on HTTP "Accept-Language" header |
| 797 |
* @link http://www.php.net/manual/en/locale.acceptfromhttp.php |
| 798 |
* @param header string <p> |
| 799 |
* The string containing the "Accept-Language" header according to format in RFC 2616. |
| 800 |
* </p> |
| 801 |
* @return string The corresponding locale identifier. |
| 802 |
*/ |
| 803 |
public static function acceptFromHttp ($header) {} |
| 804 |
|
| 805 |
} |
| 806 |
|
| 807 |
class MessageFormatter { |
| 808 |
|
| 809 |
/** |
| 810 |
* @param locale |
| 811 |
* @param pattern |
| 812 |
*/ |
| 813 |
public function __construct ($locale, $pattern) {} |
| 814 |
|
| 815 |
/** |
| 816 |
* Constructs a new Message Formatter |
| 817 |
* @link http://www.php.net/manual/en/messageformatter.create.php |
| 818 |
* @param locale string <p> |
| 819 |
* The locale to use when formatting arguments |
| 820 |
* </p> |
| 821 |
* @param pattern string <p> |
| 822 |
* The pattern string to stick arguments into. |
| 823 |
* The pattern uses an 'apostrophe-friendly' syntax; it is run through |
| 824 |
* umsg_autoQuoteApostrophe |
| 825 |
* before being interpreted. |
| 826 |
* </p> |
| 827 |
* @return MessageFormatter The formatter object |
| 828 |
*/ |
| 829 |
public static function create ($locale, $pattern) {} |
| 830 |
|
| 831 |
/** |
| 832 |
* Format the message |
| 833 |
* @link http://www.php.net/manual/en/messageformatter.format.php |
| 834 |
* @param args array <p> |
| 835 |
* Arguments to insert into the format string |
| 836 |
* </p> |
| 837 |
* @return string The formatted string, or false if an error occurred |
| 838 |
*/ |
| 839 |
public function format (array $args) {} |
| 840 |
|
| 841 |
/** |
| 842 |
* Quick format message |
| 843 |
* @link http://www.php.net/manual/en/messageformatter.formatmessage.php |
| 844 |
* @param locale string <p> |
| 845 |
* The locale to use for formatting locale-dependent parts |
| 846 |
* </p> |
| 847 |
* @param pattern string <p> |
| 848 |
* The pattern string to insert things into. |
| 849 |
* The pattern uses an 'apostrophe-friendly' syntax; it is run through |
| 850 |
* umsg_autoQuoteApostrophe |
| 851 |
* before being interpreted. |
| 852 |
* </p> |
| 853 |
* @param args array <p> |
| 854 |
* The array of values to insert into the format string |
| 855 |
* </p> |
| 856 |
* @return string The formatted pattern string or false if an error occurred |
| 857 |
*/ |
| 858 |
public static function formatMessage ($locale, $pattern, array $args) {} |
| 859 |
|
| 860 |
/** |
| 861 |
* Parse input string according to pattern |
| 862 |
* @link http://www.php.net/manual/en/messageformatter.parse.php |
| 863 |
* @param value string <p> |
| 864 |
* The string to parse |
| 865 |
* </p> |
| 866 |
* @return array An array containing the items extracted, or false on error |
| 867 |
*/ |
| 868 |
public function parse ($value) {} |
| 869 |
|
| 870 |
/** |
| 871 |
* Quick parse input string |
| 872 |
* @link http://www.php.net/manual/en/messageformatter.parsemessage.php |
| 873 |
* @param locale string <p> |
| 874 |
* The locale to use for parsing locale-dependent parts |
| 875 |
* </p> |
| 876 |
* @param pattern string <p> |
| 877 |
* The pattern with which to parse the value. |
| 878 |
* </p> |
| 879 |
* @param source string <p> |
| 880 |
* The string to parse, conforming to the pattern. |
| 881 |
* </p> |
| 882 |
* @return array An array containing items extracted, or false on error |
| 883 |
*/ |
| 884 |
public static function parseMessage ($locale, $pattern, $source) {} |
| 885 |
|
| 886 |
/** |
| 887 |
* Set the pattern used by the formatter |
| 888 |
* @link http://www.php.net/manual/en/messageformatter.setpattern.php |
| 889 |
* @param pattern string <p> |
| 890 |
* The pattern string to use in this message formatter. |
| 891 |
* The pattern uses an 'apostrophe-friendly' syntax; it is run through |
| 892 |
* umsg_autoQuoteApostrophe |
| 893 |
* before being interpreted. |
| 894 |
* </p> |
| 895 |
* @return bool Returns true on success, false on failure. |
| 896 |
*/ |
| 897 |
public function setPattern ($pattern) {} |
| 898 |
|
| 899 |
/** |
| 900 |
* Get the pattern used by the formatter |
| 901 |
* @link http://www.php.net/manual/en/messageformatter.getpattern.php |
| 902 |
* @return string The pattern string for this message formatter |
| 903 |
*/ |
| 904 |
public function getPattern () {} |
| 905 |
|
| 906 |
/** |
| 907 |
* Get the locale for which the formatter was created. |
| 908 |
* @link http://www.php.net/manual/en/messageformatter.getlocale.php |
| 909 |
* @return string The locale name |
| 910 |
*/ |
| 911 |
public function getLocale () {} |
| 912 |
|
| 913 |
/** |
| 914 |
* Get the error code from last operation |
| 915 |
* @link http://www.php.net/manual/en/messageformatter.geterrorcode.php |
| 916 |
* @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. |
| 917 |
*/ |
| 918 |
public function getErrorCode () {} |
| 919 |
|
| 920 |
/** |
| 921 |
* Get the error text from the last operation |
| 922 |
* @link http://www.php.net/manual/en/messageformatter.geterrormessage.php |
| 923 |
* @return string Description of the last error. |
| 924 |
*/ |
| 925 |
public function getErrorMessage () {} |
| 926 |
|
| 927 |
} |
| 928 |
|
| 929 |
class IntlDateFormatter { |
| 930 |
const FULL = 0; |
| 931 |
const LONG = 1; |
| 932 |
const MEDIUM = 2; |
| 933 |
const SHORT = 3; |
| 934 |
const NONE = -1; |
| 935 |
const GREGORIAN = 1; |
| 936 |
const TRADITIONAL = 0; |
| 937 |
|
| 938 |
|
| 939 |
/** |
| 940 |
* @param locale |
| 941 |
* @param datetype |
| 942 |
* @param timetype |
| 943 |
* @param timezone[optional] |
| 944 |
* @param calendar[optional] |
| 945 |
* @param pattern[optional] |
| 946 |
*/ |
| 947 |
public function __construct ($locale, $datetype, $timetype, $timezone, $calendar, $pattern) {} |
| 948 |
|
| 949 |
/** |
| 950 |
* Create a date formatter |
| 951 |
* @link http://www.php.net/manual/en/intldateformatter.create.php |
| 952 |
* @param locale string <p> |
| 953 |
* Locale to use when formatting or parsing or &null; to use the value |
| 954 |
* specified in the ini setting intl.default_locale. |
| 955 |
* </p> |
| 956 |
* @param datetype int <p> |
| 957 |
* Date type to use (none, short, |
| 958 |
* medium, long, |
| 959 |
* full). This is one of the IntlDateFormatter |
| 960 |
* constants. It can also be &null;, in which case ICUʼs default |
| 961 |
* date type will be used. |
| 962 |
* </p> |
| 963 |
* @param timetype int <p> |
| 964 |
* Time type to use (none, short, |
| 965 |
* medium, long, |
| 966 |
* full). This is one of the IntlDateFormatter |
| 967 |
* constants. It can also be &null;, in which case ICUʼs default |
| 968 |
* time type will be used. |
| 969 |
* </p> |
| 970 |
* @param timezone mixed[optional] <p> |
| 971 |
* Time zone ID. The default (and the one used if &null; is given) is the |
| 972 |
* one returned by date_default_timezone_get or, if |
| 973 |
* applicable, that of the IntlCalendar object passed |
| 974 |
* for the calendar parameter. This ID must be a |
| 975 |
* valid identifier on ICUʼs database or an ID representing an |
| 976 |
* explicit offset, such as GMT-05:30. |
| 977 |
* </p> |
| 978 |
* <p> |
| 979 |
* This can also be an IntlTimeZone or a |
| 980 |
* DateTimeZone object. |
| 981 |
* </p> |
| 982 |
* @param calendar mixed[optional] <p> |
| 983 |
* Calendar to use for formatting or parsing. The default value is &null;, |
| 984 |
* which corresponds to IntlDateFormatter::GREGORIAN. |
| 985 |
* This can either be one of the |
| 986 |
* IntlDateFormatter |
| 987 |
* calendar constants or an IntlCalendar. Any |
| 988 |
* IntlCalendar object passed will be clone; it will |
| 989 |
* not be changed by the IntlDateFormatter. This will |
| 990 |
* determine the calendar type used (gregorian, islamic, persian, etc.) and, |
| 991 |
* if &null; is given for the timezone parameter, |
| 992 |
* also the timezone used. |
| 993 |
* </p> |
| 994 |
* @param pattern string[optional] <p> |
| 995 |
* Optional pattern to use when formatting or parsing. |
| 996 |
* Possible patterns are documented at &url.icu.datepattern;. |
| 997 |
* </p> |
| 998 |
* @return IntlDateFormatter The created IntlDateFormatter or false in case of |
| 999 |
* failure. |
| 1000 |
*/ |
| 1001 |
public static function create ($locale, $datetype, $timetype, $timezone = null, $calendar = null, $pattern = null) {} |
| 1002 |
|
| 1003 |
/** |
| 1004 |
* Get the datetype used for the IntlDateFormatter |
| 1005 |
* @link http://www.php.net/manual/en/intldateformatter.getdatetype.php |
| 1006 |
* @return int The current date type value of the formatter. |
| 1007 |
*/ |
| 1008 |
public function getDateType () {} |
| 1009 |
|
| 1010 |
/** |
| 1011 |
* Get the timetype used for the IntlDateFormatter |
| 1012 |
* @link http://www.php.net/manual/en/intldateformatter.gettimetype.php |
| 1013 |
* @return int The current date type value of the formatter. |
| 1014 |
*/ |
| 1015 |
public function getTimeType () {} |
| 1016 |
|
| 1017 |
/** |
| 1018 |
* Get the calendar type used for the IntlDateFormatter |
| 1019 |
* @link http://www.php.net/manual/en/intldateformatter.getcalendar.php |
| 1020 |
* @return int The calendar |
| 1021 |
* type being used by the formatter. Either |
| 1022 |
* IntlDateFormatter::TRADITIONAL or |
| 1023 |
* IntlDateFormatter::GREGORIAN. |
| 1024 |
*/ |
| 1025 |
public function getCalendar () {} |
| 1026 |
|
| 1027 |
/** |
| 1028 |
* Get copy of formatterʼs calendar object |
| 1029 |
* @link http://www.php.net/manual/en/intldateformatter.getcalendarobject.php |
| 1030 |
* @return IntlCalendar A copy of the internal calendar object used by this formatter. |
| 1031 |
*/ |
| 1032 |
public function getCalendarObject () {} |
| 1033 |
|
| 1034 |
/** |
| 1035 |
* Sets the calendar type used by the formatter |
| 1036 |
* @link http://www.php.net/manual/en/intldateformatter.setcalendar.php |
| 1037 |
* @param which mixed <p> |
| 1038 |
* This can either be: the calendar |
| 1039 |
* type to use (default is |
| 1040 |
* IntlDateFormatter::GREGORIAN, which is also used if |
| 1041 |
* &null; is specified) or an |
| 1042 |
* IntlCalendar object. |
| 1043 |
* </p> |
| 1044 |
* <p> |
| 1045 |
* Any IntlCalendar object passed in will be cloned; |
| 1046 |
* no modifications will be made to the argument object. |
| 1047 |
* </p> |
| 1048 |
* <p> |
| 1049 |
* The timezone of the formatter will only be kept if an |
| 1050 |
* IntlCalendar object is not passed, otherwise the |
| 1051 |
* new timezone will be that of the passed object. |
| 1052 |
* </p> |
| 1053 |
* @return bool Returns true on success, false on failure. |
| 1054 |
*/ |
| 1055 |
public function setCalendar ($which) {} |
| 1056 |
|
| 1057 |
/** |
| 1058 |
* Get the timezone-id used for the IntlDateFormatter |
| 1059 |
* @link http://www.php.net/manual/en/intldateformatter.gettimezoneid.php |
| 1060 |
* @return string ID string for the time zone used by this formatter. |
| 1061 |
*/ |
| 1062 |
public function getTimeZoneId () {} |
| 1063 |
|
| 1064 |
/** |
| 1065 |
* Sets the time zone to use |
| 1066 |
* @link http://www.php.net/manual/en/intldateformatter.settimezoneid.php |
| 1067 |
* @param zone string <p> |
| 1068 |
* The time zone ID string of the time zone to use. |
| 1069 |
* If &null; or the empty string, the default time zone for the runtime is used. |
| 1070 |
* </p> |
| 1071 |
* @return bool Returns true on success, false on failure. |
| 1072 |
*/ |
| 1073 |
public function setTimeZoneId ($zone) {} |
| 1074 |
|
| 1075 |
/** |
| 1076 |
* Get formatterʼs timezone |
| 1077 |
* @link http://www.php.net/manual/en/intldateformatter.gettimezone.php |
| 1078 |
* @return IntlTimeZone The associated IntlTimeZone |
| 1079 |
* object&return.falseforfailure;. |
| 1080 |
*/ |
| 1081 |
public function getTimeZone () {} |
| 1082 |
|
| 1083 |
/** |
| 1084 |
* Sets formatterʼs timezone |
| 1085 |
* @link http://www.php.net/manual/en/intldateformatter.settimezone.php |
| 1086 |
* @param zone mixed <p> |
| 1087 |
* The timezone to use for this formatter. This can be specified in the |
| 1088 |
* following forms: |
| 1089 |
* </p> |
| 1090 |
* &reference.intl.inctimezoneparam; |
| 1091 |
* @return boolean true on success and false on failure. |
| 1092 |
*/ |
| 1093 |
public function setTimeZone ($zone) {} |
| 1094 |
|
| 1095 |
/** |
| 1096 |
* Set the pattern used for the IntlDateFormatter |
| 1097 |
* @link http://www.php.net/manual/en/intldateformatter.setpattern.php |
| 1098 |
* @param pattern string <p> |
| 1099 |
* New pattern string to use. |
| 1100 |
* Possible patterns are documented at &url.icu.datepattern;. |
| 1101 |
* </p> |
| 1102 |
* @return bool Returns true on success, false on failure. |
| 1103 |
* Bad formatstrings are usually the cause of the failure. |
| 1104 |
*/ |
| 1105 |
public function setPattern ($pattern) {} |
| 1106 |
|
| 1107 |
/** |
| 1108 |
* Get the pattern used for the IntlDateFormatter |
| 1109 |
* @link http://www.php.net/manual/en/intldateformatter.getpattern.php |
| 1110 |
* @return string The pattern string being used to format/parse. |
| 1111 |
*/ |
| 1112 |
public function getPattern () {} |
| 1113 |
|
| 1114 |
/** |
| 1115 |
* Get the locale used by formatter |
| 1116 |
* @link http://www.php.net/manual/en/intldateformatter.getlocale.php |
| 1117 |
* @param which int[optional] |
| 1118 |
* @return string the locale of this formatter or 'false' if error |
| 1119 |
*/ |
| 1120 |
public function getLocale ($which = null) {} |
| 1121 |
|
| 1122 |
/** |
| 1123 |
* Set the leniency of the parser |
| 1124 |
* @link http://www.php.net/manual/en/intldateformatter.setlenient.php |
| 1125 |
* @param lenient bool <p> |
| 1126 |
* Sets whether the parser is lenient or not, default is true (lenient). |
| 1127 |
* </p> |
| 1128 |
* @return bool Returns true on success, false on failure. |
| 1129 |
*/ |
| 1130 |
public function setLenient ($lenient) {} |
| 1131 |
|
| 1132 |
/** |
| 1133 |
* Get the lenient used for the IntlDateFormatter |
| 1134 |
* @link http://www.php.net/manual/en/intldateformatter.islenient.php |
| 1135 |
* @return bool true if parser is lenient, false if parser is strict. By default the parser is lenient. |
| 1136 |
*/ |
| 1137 |
public function isLenient () {} |
| 1138 |
|
| 1139 |
/** |
| 1140 |
* Format the date/time value as a string |
| 1141 |
* @link http://www.php.net/manual/en/intldateformatter.format.php |
| 1142 |
* @param value mixed <p> |
| 1143 |
* Value to format. This may be a DateTime object, an |
| 1144 |
* IntlCalendar object, a numeric type |
| 1145 |
* representing a (possibly fractional) number of seconds since epoch or an |
| 1146 |
* array in the format output by |
| 1147 |
* localtime. |
| 1148 |
* </p> |
| 1149 |
* <p> |
| 1150 |
* If a DateTime or an |
| 1151 |
* IntlCalendar object is passed, its timezone is not |
| 1152 |
* considered. The object will be formatted using the formaterʼs configured |
| 1153 |
* timezone. If one wants to use the timezone of the object to be formatted, |
| 1154 |
* IntlDateFormatter::setTimeZone must be called before |
| 1155 |
* with the objectʼs timezone. Alternatively, the static function |
| 1156 |
* IntlDateFormatter::formatObject may be used instead. |
| 1157 |
* </p> |
| 1158 |
* @return string The formatted string or, if an error occurred, false. |
| 1159 |
*/ |
| 1160 |
public function format ($value) {} |
| 1161 |
|
| 1162 |
/** |
| 1163 |
* Formats an object |
| 1164 |
* @link http://www.php.net/manual/en/intldateformatter.formatobject.php |
| 1165 |
* @param object object <p> |
| 1166 |
* An object of type IntlCalendar or |
| 1167 |
* DateTime. The timezone information in the object |
| 1168 |
* will be used. |
| 1169 |
* </p> |
| 1170 |
* @param format mixed[optional] <p> |
| 1171 |
* How to format the date/time. This can either be an array with |
| 1172 |
* two elements (first the date style, then the time style, these being one |
| 1173 |
* of the constants IntlDateFormatter::NONE, |
| 1174 |
* IntlDateFormatter::SHORT, |
| 1175 |
* IntlDateFormatter::MEDIUM, |
| 1176 |
* IntlDateFormatter::LONG, |
| 1177 |
* IntlDateFormatter::FULL), a long with |
| 1178 |
* the value of one of these constants (in which case it will be used both |
| 1179 |
* for the time and the date) or a string with the format |
| 1180 |
* described in the ICU |
| 1181 |
* documentation. If &null;, the default style will be used. |
| 1182 |
* </p> |
| 1183 |
* @param locale string[optional] <p> |
| 1184 |
* The locale to use, or &null; to use the default one. |
| 1185 |
* </p> |
| 1186 |
* @return string A string with result&return.falseforfailure;. |
| 1187 |
*/ |
| 1188 |
public static function formatObject ($object, $format = null, $locale = null) {} |
| 1189 |
|
| 1190 |
/** |
| 1191 |
* Parse string to a timestamp value |
| 1192 |
* @link http://www.php.net/manual/en/intldateformatter.parse.php |
| 1193 |
* @param value string <p> |
| 1194 |
* string to convert to a time |
| 1195 |
* </p> |
| 1196 |
* @param position int[optional] <p> |
| 1197 |
* Position at which to start the parsing in $value (zero-based). |
| 1198 |
* If no error occurs before $value is consumed, $parse_pos will contain -1 |
| 1199 |
* otherwise it will contain the position at which parsing ended (and the error occurred). |
| 1200 |
* This variable will contain the end position if the parse fails. |
| 1201 |
* If $parse_pos > strlen($value), the parse fails immediately. |
| 1202 |
* </p> |
| 1203 |
* @return int timestamp parsed value, or false if value can't be parsed. |
| 1204 |
*/ |
| 1205 |
public function parse ($value, &$position = null) {} |
| 1206 |
|
| 1207 |
/** |
| 1208 |
* Parse string to a field-based time value |
| 1209 |
* @link http://www.php.net/manual/en/intldateformatter.localtime.php |
| 1210 |
* @param value string <p> |
| 1211 |
* string to convert to a time |
| 1212 |
* </p> |
| 1213 |
* @param position int[optional] <p> |
| 1214 |
* Position at which to start the parsing in $value (zero-based). |
| 1215 |
* If no error occurs before $value is consumed, $parse_pos will contain -1 |
| 1216 |
* otherwise it will contain the position at which parsing ended . |
| 1217 |
* If $parse_pos > strlen($value), the parse fails immediately. |
| 1218 |
* </p> |
| 1219 |
* @return array Localtime compatible array of integers : contains 24 hour clock value in tm_hour field |
| 1220 |
*/ |
| 1221 |
public function localtime ($value, &$position = null) {} |
| 1222 |
|
| 1223 |
/** |
| 1224 |
* Get the error code from last operation |
| 1225 |
* @link http://www.php.net/manual/en/intldateformatter.geterrorcode.php |
| 1226 |
* @return int The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. |
| 1227 |
*/ |
| 1228 |
public function getErrorCode () {} |
| 1229 |
|
| 1230 |
/** |
| 1231 |
* Get the error text from the last operation. |
| 1232 |
* @link http://www.php.net/manual/en/intldateformatter.geterrormessage.php |
| 1233 |
* @return string Description of the last error. |
| 1234 |
*/ |
| 1235 |
public function getErrorMessage () {} |
| 1236 |
|
| 1237 |
} |
| 1238 |
|
| 1239 |
class ResourceBundle implements Traversable { |
| 1240 |
|
| 1241 |
/** |
| 1242 |
* @param locale |
| 1243 |
* @param bundlename |
| 1244 |
* @param fallback[optional] |
| 1245 |
*/ |
| 1246 |
public function __construct ($locale, $bundlename, $fallback) {} |
| 1247 |
|
| 1248 |
/** |
| 1249 |
* Create a resource bundle |
| 1250 |
* @link http://www.php.net/manual/en/resourcebundle.create.php |
| 1251 |
* @param locale string <p> |
| 1252 |
* Locale for which the resources should be loaded (locale name, e.g. en_CA). |
| 1253 |
* </p> |
| 1254 |
* @param bundlename string <p> |
| 1255 |
* The directory where the data is stored or the name of the .dat file. |
| 1256 |
* </p> |
| 1257 |
* @param fallback bool[optional] <p> |
| 1258 |
* Whether locale should match exactly or fallback to parent locale is allowed. |
| 1259 |
* </p> |
| 1260 |
* @return ResourceBundle ResourceBundle object or &null; on error. |
| 1261 |
*/ |
| 1262 |
public static function create ($locale, $bundlename, $fallback = null) {} |
| 1263 |
|
| 1264 |
/** |
| 1265 |
* Get data from the bundle |
| 1266 |
* @link http://www.php.net/manual/en/resourcebundle.get.php |
| 1267 |
* @param index string|int <p> |
| 1268 |
* Data index, must be string or integer. |
| 1269 |
* </p> |
| 1270 |
* @return mixed the data located at the index or &null; on error. Strings, integers and binary data strings |
| 1271 |
* are returned as corresponding PHP types, integer array is returned as PHP array. Complex types are |
| 1272 |
* returned as ResourceBundle object. |
| 1273 |
*/ |
| 1274 |
public function get ($index) {} |
| 1275 |
|
| 1276 |
/** |
| 1277 |
* Get number of elements in the bundle |
| 1278 |
* @link http://www.php.net/manual/en/resourcebundle.count.php |
| 1279 |
* @return int number of elements in the bundle. |
| 1280 |
*/ |
| 1281 |
public function count () {} |
| 1282 |
|
| 1283 |
/** |
| 1284 |
* Get supported locales |
| 1285 |
* @link http://www.php.net/manual/en/resourcebundle.locales.php |
| 1286 |
* @param bundlename string <p> |
| 1287 |
* Path of ResourceBundle for which to get available locales, or |
| 1288 |
* empty string for default locales list. |
| 1289 |
* </p> |
| 1290 |
* @return array the list of locales supported by the bundle. |
| 1291 |
*/ |
| 1292 |
public static function getLocales ($bundlename) {} |
| 1293 |
|
| 1294 |
/** |
| 1295 |
* Get bundle's last error code. |
| 1296 |
* @link http://www.php.net/manual/en/resourcebundle.geterrorcode.php |
| 1297 |
* @return int error code from last bundle object call. |
| 1298 |
*/ |
| 1299 |
public function getErrorCode () {} |
| 1300 |
|
| 1301 |
/** |
| 1302 |
* Get bundle's last error message. |
| 1303 |
* @link http://www.php.net/manual/en/resourcebundle.geterrormessage.php |
| 1304 |
* @return string error message from last bundle object's call. |
| 1305 |
*/ |
| 1306 |
public function getErrorMessage () {} |
| 1307 |
|
| 1308 |
} |
| 1309 |
|
| 1310 |
class Transliterator { |
| 1311 |
const FORWARD = 0; |
| 1312 |
const REVERSE = 1; |
| 1313 |
|
| 1314 |
public $id; |
| 1315 |
|
| 1316 |
|
| 1317 |
/** |
| 1318 |
* Private constructor to deny instantiation |
| 1319 |
* @link http://www.php.net/manual/en/transliterator.construct.php |
| 1320 |
*/ |
| 1321 |
final private function __construct () {} |
| 1322 |
|
| 1323 |
/** |
| 1324 |
* Create a transliterator |
| 1325 |
* @link http://www.php.net/manual/en/transliterator.create.php |
| 1326 |
* @param id string <p> |
| 1327 |
* The id. |
| 1328 |
* </p> |
| 1329 |
* @param direction int[optional] <p> |
| 1330 |
* The direction, defaults to |
| 1331 |
* >Transliterator::FORWARD. |
| 1332 |
* May also be set to |
| 1333 |
* Transliterator::REVERSE. |
| 1334 |
* </p> |
| 1335 |
* @return Transliterator a Transliterator object on success, |
| 1336 |
* or &null; on failure. |
| 1337 |
*/ |
| 1338 |
public static function create ($id, $direction = null) {} |
| 1339 |
|
| 1340 |
/** |
| 1341 |
* Create transliterator from rules |
| 1342 |
* @link http://www.php.net/manual/en/transliterator.createfromrules.php |
| 1343 |
* @param rules string <p> |
| 1344 |
* The rules. |
| 1345 |
* </p> |
| 1346 |
* @param direction string[optional] <p> |
| 1347 |
* The direction, defaults to |
| 1348 |
* >Transliterator::FORWARD. |
| 1349 |
* May also be set to |
| 1350 |
* Transliterator::REVERSE. |
| 1351 |
* </p> |
| 1352 |
* @return Transliterator a Transliterator object on success, |
| 1353 |
* or &null; on failure. |
| 1354 |
*/ |
| 1355 |
public static function createFromRules ($rules, $direction = null) {} |
| 1356 |
|
| 1357 |
/** |
| 1358 |
* Create an inverse transliterator |
| 1359 |
* @link http://www.php.net/manual/en/transliterator.createinverse.php |
| 1360 |
* @return Transliterator a Transliterator object on success, |
| 1361 |
* or &null; on failure |
| 1362 |
*/ |
| 1363 |
public function createInverse () {} |
| 1364 |
|
| 1365 |
/** |
| 1366 |
* Get transliterator IDs |
| 1367 |
* @link http://www.php.net/manual/en/transliterator.listids.php |
| 1368 |
* @return array An array of registered transliterator IDs on success, |
| 1369 |
* &return.falseforfailure;. |
| 1370 |
*/ |
| 1371 |
public static function listIDs () {} |
| 1372 |
|
| 1373 |
/** |
| 1374 |
* Transliterate a string |
| 1375 |
* @link http://www.php.net/manual/en/transliterator.transliterate.php |
| 1376 |
* @param subject string <p> |
| 1377 |
* The string to be transformed. |
| 1378 |
* </p> |
| 1379 |
* @param start int[optional] <p> |
| 1380 |
* The start index (in UTF-16 code units) from which the string will start |
| 1381 |
* to be transformed, inclusive. Indexing starts at 0. The text before will |
| 1382 |
* be left as is. |
| 1383 |
* </p> |
| 1384 |
* @param end int[optional] <p> |
| 1385 |
* The end index (in UTF-16 code units) until which the string will be |
| 1386 |
* transformed, exclusive. Indexing starts at 0. The text after will be |
| 1387 |
* left as is. |
| 1388 |
* </p> |
| 1389 |
* @return string The transfomed string on success, &return.falseforfailure;. |
| 1390 |
*/ |
| 1391 |
public function transliterate ($subject, $start = null, $end = null) {} |
| 1392 |
|
| 1393 |
/** |
| 1394 |
* Get last error code |
| 1395 |
* @link http://www.php.net/manual/en/transliterator.geterrorcode.php |
| 1396 |
* @return int The error code on success, |
| 1397 |
* or false if none exists, or on failure. |
| 1398 |
*/ |
| 1399 |
public function getErrorCode () {} |
| 1400 |
|
| 1401 |
/** |
| 1402 |
* Get last error message |
| 1403 |
* @link http://www.php.net/manual/en/transliterator.geterrormessage.php |
| 1404 |
* @return string The error code on success, |
| 1405 |
* or false if none exists, or on failure. |
| 1406 |
*/ |
| 1407 |
public function getErrorMessage () {} |
| 1408 |
|
| 1409 |
} |
| 1410 |
|
| 1411 |
class IntlTimeZone { |
| 1412 |
const DISPLAY_SHORT = 1; |
| 1413 |
const DISPLAY_LONG = 2; |
| 1414 |
const DISPLAY_SHORT_GENERIC = 3; |
| 1415 |
const DISPLAY_LONG_GENERIC = 4; |
| 1416 |
const DISPLAY_SHORT_GMT = 5; |
| 1417 |
const DISPLAY_LONG_GMT = 6; |
| 1418 |
const DISPLAY_SHORT_COMMONLY_USED = 7; |
| 1419 |
const DISPLAY_GENERIC_LOCATION = 8; |
| 1420 |
|
| 1421 |
|
| 1422 |
private function __construct () {} |
| 1423 |
|
| 1424 |
/** |
| 1425 |
* Create a timezone object for the given ID |
| 1426 |
* @link http://www.php.net/manual/en/intltimezone.createtimezone.php |
| 1427 |
* @param zoneId string <p> |
| 1428 |
* |
| 1429 |
* </p> |
| 1430 |
* @return IntlTimeZone |
| 1431 |
*/ |
| 1432 |
public static function createTimeZone ($zoneId) {} |
| 1433 |
|
| 1434 |
/** |
| 1435 |
* Create a timezone object from <type>DateTimeZone</type> |
| 1436 |
* @link http://www.php.net/manual/en/intltimezone.fromdatetimezone.php |
| 1437 |
* @param zoneId DateTimeZone <p> |
| 1438 |
* |
| 1439 |
* </p> |
| 1440 |
* @return IntlTimeZone |
| 1441 |
*/ |
| 1442 |
public static function fromDateTimeZone (DateTimeZone $zoneId) {} |
| 1443 |
|
| 1444 |
/** |
| 1445 |
* Create a new copy of the default timezone for this host |
| 1446 |
* @link http://www.php.net/manual/en/intltimezone.createdefault.php |
| 1447 |
* @return IntlTimeZone |
| 1448 |
*/ |
| 1449 |
public static function createDefault () {} |
| 1450 |
|
| 1451 |
/** |
| 1452 |
* Create GMT (UTC) timezone |
| 1453 |
* @link http://www.php.net/manual/en/intltimezone.getgmt.php |
| 1454 |
* @return IntlTimeZone |
| 1455 |
*/ |
| 1456 |
public static function getGMT () {} |
| 1457 |
|
| 1458 |
/** |
| 1459 |
* Get an enumeration over time zone IDs associated with the |
| 1460 |
given country or offset |
| 1461 |
* @link http://www.php.net/manual/en/intltimezone.createenumeration.php |
| 1462 |
* @param countryOrRawOffset mixed[optional] <p> |
| 1463 |
* |
| 1464 |
* </p> |
| 1465 |
* @return IntlIterator |
| 1466 |
*/ |
| 1467 |
public static function createEnumeration ($countryOrRawOffset = null) {} |
| 1468 |
|
| 1469 |
/** |
| 1470 |
* Get the number of IDs in the equivalency group that includes the given ID |
| 1471 |
* @link http://www.php.net/manual/en/intltimezone.countequivalentids.php |
| 1472 |
* @param zoneId string <p> |
| 1473 |
* |
| 1474 |
* </p> |
| 1475 |
* @return integer |
| 1476 |
*/ |
| 1477 |
public static function countEquivalentIDs ($zoneId) {} |
| 1478 |
|
| 1479 |
/** |
| 1480 |
* Get the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID |
| 1481 |
* @link http://www.php.net/manual/en/intltimezone.getcanonicalid.php |
| 1482 |
* @param zoneId string <p> |
| 1483 |
* |
| 1484 |
* </p> |
| 1485 |
* @param isSystemID bool[optional] <p> |
| 1486 |
* |
| 1487 |
* </p> |
| 1488 |
* @return string |
| 1489 |
*/ |
| 1490 |
public static function getCanonicalID ($zoneId, &$isSystemID = null) {} |
| 1491 |
|
| 1492 |
/** |
| 1493 |
* Get the timezone data version currently used by ICU |
| 1494 |
* @link http://www.php.net/manual/en/intltimezone.gettzdataversion.php |
| 1495 |
* @return string |
| 1496 |
*/ |
| 1497 |
public static function getTZDataVersion () {} |
| 1498 |
|
| 1499 |
/** |
| 1500 |
* Get an ID in the equivalency group that includes the given ID |
| 1501 |
* @link http://www.php.net/manual/en/intltimezone.getequivalentid.php |
| 1502 |
* @param zoneId string <p> |
| 1503 |
* |
| 1504 |
* </p> |
| 1505 |
* @param index integer <p> |
| 1506 |
* |
| 1507 |
* </p> |
| 1508 |
* @return string |
| 1509 |
*/ |
| 1510 |
public static function getEquivalentID ($zoneId, $index) {} |
| 1511 |
|
| 1512 |
/** |
| 1513 |
* Get timezone ID |
| 1514 |
* @link http://www.php.net/manual/en/intltimezone.getid.php |
| 1515 |
* @return string |
| 1516 |
*/ |
| 1517 |
public function getID () {} |
| 1518 |
|
| 1519 |
/** |
| 1520 |
* Check if this time zone uses daylight savings time |
| 1521 |
* @link http://www.php.net/manual/en/intltimezone.usedaylighttime.php |
| 1522 |
* @return bool |
| 1523 |
*/ |
| 1524 |
public function useDaylightTime () {} |
| 1525 |
|
| 1526 |
/** |
| 1527 |
* Get the time zone raw and GMT offset for the given moment in time |
| 1528 |
* @link http://www.php.net/manual/en/intltimezone.getoffset.php |
| 1529 |
* @param date float <p> |
| 1530 |
* |
| 1531 |
* </p> |
| 1532 |
* @param local bool <p> |
| 1533 |
* |
| 1534 |
* </p> |
| 1535 |
* @param rawOffset integer <p> |
| 1536 |
* |
| 1537 |
* </p> |
| 1538 |
* @param dstOffset integer <p> |
| 1539 |
* |
| 1540 |
* </p> |
| 1541 |
* @return integer |
| 1542 |
*/ |
| 1543 |
public function getOffset ($date, $local, &$rawOffset, &$dstOffset) {} |
| 1544 |
|
| 1545 |
/** |
| 1546 |
* Get the raw GMT offset (before taking daylight savings time into account |
| 1547 |
* @link http://www.php.net/manual/en/intltimezone.getrawoffset.php |
| 1548 |
* @return integer |
| 1549 |
*/ |
| 1550 |
public function getRawOffset () {} |
| 1551 |
|
| 1552 |
/** |
| 1553 |
* Check if this zone has the same rules and offset as another zone |
| 1554 |
* @link http://www.php.net/manual/en/intltimezone.hassamerules.php |
| 1555 |
* @param otherTimeZone IntlTimeZone <p> |
| 1556 |
* |
| 1557 |
* </p> |
| 1558 |
* @return bool |
| 1559 |
*/ |
| 1560 |
public function hasSameRules (IntlTimeZone $otherTimeZone) {} |
| 1561 |
|
| 1562 |
/** |
| 1563 |
* Get a name of this time zone suitable for presentation to the user |
| 1564 |
* @link http://www.php.net/manual/en/intltimezone.getdisplayname.php |
| 1565 |
* @param isDaylight bool[optional] <p> |
| 1566 |
* |
| 1567 |
* </p> |
| 1568 |
* @param style integer[optional] <p> |
| 1569 |
* |
| 1570 |
* </p> |
| 1571 |
* @param locale string[optional] <p> |
| 1572 |
* |
| 1573 |
* </p> |
| 1574 |
* @return string |
| 1575 |
*/ |
| 1576 |
public function getDisplayName ($isDaylight = null, $style = null, $locale = null) {} |
| 1577 |
|
| 1578 |
/** |
| 1579 |
* Get the amount of time to be added to local standard time to get local wall clock time |
| 1580 |
* @link http://www.php.net/manual/en/intltimezone.getdstsavings.php |
| 1581 |
* @return integer |
| 1582 |
*/ |
| 1583 |
public function getDSTSavings () {} |
| 1584 |
|
| 1585 |
/** |
| 1586 |
* Convert to <type>DateTimeZone</type> object |
| 1587 |
* @link http://www.php.net/manual/en/intltimezone.todatetimezone.php |
| 1588 |
* @return DateTimeZone |
| 1589 |
*/ |
| 1590 |
public function toDateTimeZone () {} |
| 1591 |
|
| 1592 |
/** |
| 1593 |
* Get last error code on the object |
| 1594 |
* @link http://www.php.net/manual/en/intltimezone.geterrorcode.php |
| 1595 |
* @return integer |
| 1596 |
*/ |
| 1597 |
public function getErrorCode () {} |
| 1598 |
|
| 1599 |
/** |
| 1600 |
* Get last error message on the object |
| 1601 |
* @link http://www.php.net/manual/en/intltimezone.geterrormessage.php |
| 1602 |
* @return string |
| 1603 |
*/ |
| 1604 |
public function getErrorMessage () {} |
| 1605 |
|
| 1606 |
} |
| 1607 |
|
| 1608 |
class IntlCalendar { |
| 1609 |
const FIELD_ERA = 0; |
| 1610 |
const FIELD_YEAR = 1; |
| 1611 |
const FIELD_MONTH = 2; |
| 1612 |
const FIELD_WEEK_OF_YEAR = 3; |
| 1613 |
const FIELD_WEEK_OF_MONTH = 4; |
| 1614 |
const FIELD_DATE = 5; |
| 1615 |
const FIELD_DAY_OF_YEAR = 6; |
| 1616 |
const FIELD_DAY_OF_WEEK = 7; |
| 1617 |
const FIELD_DAY_OF_WEEK_IN_MONTH = 8; |
| 1618 |
const FIELD_AM_PM = 9; |
| 1619 |
const FIELD_HOUR = 10; |
| 1620 |
const FIELD_HOUR_OF_DAY = 11; |
| 1621 |
const FIELD_MINUTE = 12; |
| 1622 |
const FIELD_SECOND = 13; |
| 1623 |
const FIELD_MILLISECOND = 14; |
| 1624 |
const FIELD_ZONE_OFFSET = 15; |
| 1625 |
const FIELD_DST_OFFSET = 16; |
| 1626 |
const FIELD_YEAR_WOY = 17; |
| 1627 |
const FIELD_DOW_LOCAL = 18; |
| 1628 |
const FIELD_EXTENDED_YEAR = 19; |
| 1629 |
const FIELD_JULIAN_DAY = 20; |
| 1630 |
const FIELD_MILLISECONDS_IN_DAY = 21; |
| 1631 |
const FIELD_IS_LEAP_MONTH = 22; |
| 1632 |
const FIELD_FIELD_COUNT = 23; |
| 1633 |
const FIELD_DAY_OF_MONTH = 5; |
| 1634 |
const DOW_SUNDAY = 1; |
| 1635 |
const DOW_MONDAY = 2; |
| 1636 |
const DOW_TUESDAY = 3; |
| 1637 |
const DOW_WEDNESDAY = 4; |
| 1638 |
const DOW_THURSDAY = 5; |
| 1639 |
const DOW_FRIDAY = 6; |
| 1640 |
const DOW_SATURDAY = 7; |
| 1641 |
const DOW_TYPE_WEEKDAY = 0; |
| 1642 |
const DOW_TYPE_WEEKEND = 1; |
| 1643 |
const DOW_TYPE_WEEKEND_OFFSET = 2; |
| 1644 |
const DOW_TYPE_WEEKEND_CEASE = 3; |
| 1645 |
|
| 1646 |
|
| 1647 |
/** |
| 1648 |
* Private constructor for disallowing instantiation |
| 1649 |
* @link http://www.php.net/manual/en/intlcalendar.construct.php |
| 1650 |
*/ |
| 1651 |
private function __construct () {} |
| 1652 |
|
| 1653 |
/** |
| 1654 |
* Create a new IntlCalendar |
| 1655 |
* @link http://www.php.net/manual/en/intlcalendar.createinstance.php |
| 1656 |
* @param timeZone mixed[optional] <p> |
| 1657 |
* The timezone to use. |
| 1658 |
* </p> |
| 1659 |
* &reference.intl.inctimezoneparam; |
| 1660 |
* @param locale string[optional] <p> |
| 1661 |
* A locale to use or &null; to use the default locale. |
| 1662 |
* </p> |
| 1663 |
* @return IntlCalendar The created IntlCalendar instance or &null; on |
| 1664 |
* failure. |
| 1665 |
*/ |
| 1666 |
public static function createInstance ($timeZone = null, $locale = null) {} |
| 1667 |
|
| 1668 |
/** |
| 1669 |
* Get set of locale keyword values |
| 1670 |
* @link http://www.php.net/manual/en/intlcalendar.getkeywordvaluesforlocale.php |
| 1671 |
* @param key string <p> |
| 1672 |
* The locale keyword for which relevant values are to be queried. Only |
| 1673 |
* 'calendar' is supported. |
| 1674 |
* </p> |
| 1675 |
* @param locale string <p> |
| 1676 |
* The locale onto which the keyword/value pair are to be appended. |
| 1677 |
* </p> |
| 1678 |
* @param commonlyUsed boolean <p> |
| 1679 |
* Whether to show only the values commonly used for the specified locale. |
| 1680 |
* </p> |
| 1681 |
* @return Iterator An iterator that yields strings with the locale keyword |
| 1682 |
* values&return.falseforfailure;. |
| 1683 |
*/ |
| 1684 |
public static function getKeywordValuesForLocale ($key, $locale, $commonlyUsed) {} |
| 1685 |
|
| 1686 |
/** |
| 1687 |
* Get number representing the current time |
| 1688 |
* @link http://www.php.net/manual/en/intlcalendar.getnow.php |
| 1689 |
* @return float A float representing a number of milliseconds since the epoch, |
| 1690 |
* not counting leap seconds. |
| 1691 |
*/ |
| 1692 |
public static function getNow () {} |
| 1693 |
|
| 1694 |
/** |
| 1695 |
* Get array of locales for which there is data |
| 1696 |
* @link http://www.php.net/manual/en/intlcalendar.getavailablelocales.php |
| 1697 |
* @return array An array of strings, one for which locale. |
| 1698 |
*/ |
| 1699 |
public static function getAvailableLocales () {} |
| 1700 |
|
| 1701 |
/** |
| 1702 |
* Get the value for a field |
| 1703 |
* @link http://www.php.net/manual/en/intlcalendar.get.php |
| 1704 |
* @param field int &reference.intl.incfieldparam; |
| 1705 |
* @return int An integer with the value of the time field. |
| 1706 |
*/ |
| 1707 |
public function get ($field) {} |
| 1708 |
|
| 1709 |
/** |
| 1710 |
* Get time currently represented by the object |
| 1711 |
* @link http://www.php.net/manual/en/intlcalendar.gettime.php |
| 1712 |
* @return float A float representing the number of milliseconds elapsed since the |
| 1713 |
* reference time (1 Jan 1970 00:00:00 UTC). |
| 1714 |
*/ |
| 1715 |
public function getTime () {} |
| 1716 |
|
| 1717 |
/** |
| 1718 |
* Set the calendar time in milliseconds since the epoch |
| 1719 |
* @link http://www.php.net/manual/en/intlcalendar.settime.php |
| 1720 |
* @param date float <p> |
| 1721 |
* An instant represented by the number of number of milliseconds between |
| 1722 |
* such instant and the epoch, ignoring leap seconds. |
| 1723 |
* </p> |
| 1724 |
* @return bool true on success and false on failure. |
| 1725 |
*/ |
| 1726 |
public function setTime ($date) {} |
| 1727 |
|
| 1728 |
/** |
| 1729 |
* Add a (signed) amount of time to a field |
| 1730 |
* @link http://www.php.net/manual/en/intlcalendar.add.php |
| 1731 |
* @param field int &reference.intl.incfieldparam; |
| 1732 |
* @param amount int <p> |
| 1733 |
* The signed amount to add to the current field. If the amount is positive, |
| 1734 |
* the instant will be moved forward; if it is negative, the instant wil be |
| 1735 |
* moved into the past. The unit is implicit to the field type. For instance, |
| 1736 |
* hours for IntlCalendar::FIELD_HOUR_OF_DAY. |
| 1737 |
* </p> |
| 1738 |
* @return bool true on success&return.falseforfailure;. |
| 1739 |
*/ |
| 1740 |
public function add ($field, $amount) {} |
| 1741 |
|
| 1742 |
/** |
| 1743 |
* Set the timezone used by this calendar |
| 1744 |
* @link http://www.php.net/manual/en/intlcalendar.settimezone.php |
| 1745 |
* @param timeZone mixed <p> |
| 1746 |
* The new timezone to be used by this calendar. It can be specified in the |
| 1747 |
* following ways: |
| 1748 |
* &reference.intl.inctimezoneparam; |
| 1749 |
* </p> |
| 1750 |
* @return bool true on success and false on failure. |
| 1751 |
*/ |
| 1752 |
public function setTimeZone ($timeZone) {} |
| 1753 |
|
| 1754 |
/** |
| 1755 |
* Whether this objectʼs time is after that of the passed object |
| 1756 |
* @link http://www.php.net/manual/en/intlcalendar.after.php |
| 1757 |
* @param other IntlCalendar <p> |
| 1758 |
* The calendar whose time will be checked against the primary objectʼs time. |
| 1759 |
* </p> |
| 1760 |
* @return bool true if this objectʼs current time is after that of the |
| 1761 |
* calendar argumentʼs time. Returns false otherwise. |
| 1762 |
* Also returns false on failure. You can use exceptions or |
| 1763 |
* intl_get_error_code to detect error conditions. |
| 1764 |
*/ |
| 1765 |
public function after (IntlCalendar $other) {} |
| 1766 |
|
| 1767 |
/** |
| 1768 |
* Whether this objectʼs time is before that of the passed object |
| 1769 |
* @link http://www.php.net/manual/en/intlcalendar.before.php |
| 1770 |
* @param other IntlCalendar <p> |
| 1771 |
* The calendar whose time will be checked against the primary objectʼs time. |
| 1772 |
* </p> |
| 1773 |
* @return bool true if this objectʼs current time is before that of the |
| 1774 |
* calendar argumentʼs time. Returns false otherwise. |
| 1775 |
* Also returns false on failure. You can use exceptions or |
| 1776 |
* intl_get_error_code to detect error conditions. |
| 1777 |
*/ |
| 1778 |
public function before (IntlCalendar $other) {} |
| 1779 |
|
| 1780 |
/** |
| 1781 |
* Set a time field or several common fields at once |
| 1782 |
* @link http://www.php.net/manual/en/intlcalendar.set.php |
| 1783 |
* @param field int &reference.intl.incfieldparam; |
| 1784 |
* @param value int <p> |
| 1785 |
* The new value of the given field. |
| 1786 |
* </p> |
| 1787 |
* @return bool true on success and false on failure. |
| 1788 |
*/ |
| 1789 |
public function set ($field, $value) {} |
| 1790 |
|
| 1791 |
/** |
| 1792 |
* Add value to field without carrying into more significant fields |
| 1793 |
* @link http://www.php.net/manual/en/intlcalendar.roll.php |
| 1794 |
* @param field int &reference.intl.incfieldparam; |
| 1795 |
* @param amountOrUpOrDown mixed <p> |
| 1796 |
* The (signed) amount to add to the field, true for rolling up (adding |
| 1797 |
* 1), or false for rolling down (subtracting |
| 1798 |
* 1). |
| 1799 |
* </p> |
| 1800 |
* @return bool true on success or false on failure. |
| 1801 |
*/ |
| 1802 |
public function roll ($field, $amountOrUpOrDown) {} |
| 1803 |
|
| 1804 |
/** |
| 1805 |
* Clear a field or all fields |
| 1806 |
* @link http://www.php.net/manual/en/intlcalendar.clear.php |
| 1807 |
* @param field int[optional] &reference.intl.incfieldparam; |
| 1808 |
* @return bool true on success&return.falseforfailure;. Failure can only occur is |
| 1809 |
* invalid arguments are provided. |
| 1810 |
*/ |
| 1811 |
public function clear ($field = null) {} |
| 1812 |
|
| 1813 |
/** |
| 1814 |
* Calculate difference between given time and this objectʼs time |
| 1815 |
* @link http://www.php.net/manual/en/intlcalendar.fielddifference.php |
| 1816 |
* @param when float <p> |
| 1817 |
* The time against which to compare the quantity represented by the |
| 1818 |
* field. For the result to be positive, the time |
| 1819 |
* given for this parameter must be ahead of the time of the object the |
| 1820 |
* method is being invoked on. |
| 1821 |
* </p> |
| 1822 |
* @param field int <p> |
| 1823 |
* The field that represents the quantity being compared. |
| 1824 |
* </p> |
| 1825 |
* &reference.intl.incfieldparam; |
| 1826 |
* @return int a (signed) difference of time in the unit associated with the |
| 1827 |
* specified field&return.falseforfailure;. |
| 1828 |
*/ |
| 1829 |
public function fieldDifference ($when, $field) {} |
| 1830 |
|
| 1831 |
/** |
| 1832 |
* The maximum value for a field, considering the objectʼs current time |
| 1833 |
* @link http://www.php.net/manual/en/intlcalendar.getactualmaximum.php |
| 1834 |
* @param field int &reference.intl.incfieldparam; |
| 1835 |
* @return int An int representing the maximum value in the units associated |
| 1836 |
* with the given field&return.falseforfailure;. |
| 1837 |
*/ |
| 1838 |
public function getActualMaximum ($field) {} |
| 1839 |
|
| 1840 |
/** |
| 1841 |
* The minimum value for a field, considering the objectʼs current time |
| 1842 |
* @link http://www.php.net/manual/en/intlcalendar.getactualminimum.php |
| 1843 |
* @param field int &reference.intl.incfieldparam; |
| 1844 |
* @return int An int representing the minimum value in the fieldʼs |
| 1845 |
* unit&return.falseforfailure;. |
| 1846 |
*/ |
| 1847 |
public function getActualMinimum ($field) {} |
| 1848 |
|
| 1849 |
/** |
| 1850 |
* Tell whether a day is a weekday, weekend or a day that has a transition between the two |
| 1851 |
* @link http://www.php.net/manual/en/intlcalendar.getdayofweektype.php |
| 1852 |
* @param dayOfWeek int <p> |
| 1853 |
* One of the constants IntlCalendar::DOW_SUNDAY, |
| 1854 |
* IntlCalendar::DOW_MONDAY, …, |
| 1855 |
* IntlCalendar::DOW_SATURDAY. |
| 1856 |
* </p> |
| 1857 |
* @return int one of the constants |
| 1858 |
* IntlCalendar::DOW_TYPE_WEEKDAY, |
| 1859 |
* IntlCalendar::DOW_TYPE_WEEKEND, |
| 1860 |
* IntlCalendar::DOW_TYPE_WEEKEND_OFFSET or |
| 1861 |
* IntlCalendar::DOW_TYPE_WEEKEND_CEASE&return.falseforfailure;. |
| 1862 |
*/ |
| 1863 |
public function getDayOfWeekType ($dayOfWeek) {} |
| 1864 |
|
| 1865 |
/** |
| 1866 |
* Get the first day of the week for the calendarʼs locale |
| 1867 |
* @link http://www.php.net/manual/en/intlcalendar.getfirstdayofweek.php |
| 1868 |
* @return int One of the constants IntlCalendar::DOW_SUNDAY, |
| 1869 |
* IntlCalendar::DOW_MONDAY, …, |
| 1870 |
* IntlCalendar::DOW_SATURDAY&return.falseforfailure;. |
| 1871 |
*/ |
| 1872 |
public function getFirstDayOfWeek () {} |
| 1873 |
|
| 1874 |
/** |
| 1875 |
* Get the largest local minimum value for a field |
| 1876 |
* @link http://www.php.net/manual/en/intlcalendar.getgreatestminimum.php |
| 1877 |
* @param field int &reference.intl.incfieldparam; |
| 1878 |
* @return int An int representing a field value, in the fieldʼs |
| 1879 |
* unit,&return.falseforfailure;. |
| 1880 |
*/ |
| 1881 |
public function getGreatestMinimum ($field) {} |
| 1882 |
|
| 1883 |
/** |
| 1884 |
* Get the smallest local maximum for a field |
| 1885 |
* @link http://www.php.net/manual/en/intlcalendar.getleastmaximum.php |
| 1886 |
* @param field int &reference.intl.incfieldparam; |
| 1887 |
* @return int An int representing a field value in the fieldʼs |
| 1888 |
* unit&return.falseforfailure;. |
| 1889 |
*/ |
| 1890 |
public function getLeastMaximum ($field) {} |
| 1891 |
|
| 1892 |
/** |
| 1893 |
* Get the locale associated with the object |
| 1894 |
* @link http://www.php.net/manual/en/intlcalendar.getlocale.php |
| 1895 |
* @param localeType int <p> |
| 1896 |
* Whether to fetch the actual locale (the locale from which the calendar |
| 1897 |
* data originates, with Locale::ACTUAL_LOCALE) or the |
| 1898 |
* valid locale, i.e., the most specific locale supported by ICU relatively |
| 1899 |
* to the requested locale – see Locale::VALID_LOCALE. |
| 1900 |
* From the most general to the most specific, the locales are ordered in |
| 1901 |
* this fashion – actual locale, valid locale, requested locale. |
| 1902 |
* </p> |
| 1903 |
* @return string A locale string&return.falseforfailure;. |
| 1904 |
*/ |
| 1905 |
public function getLocale ($localeType) {} |
| 1906 |
|
| 1907 |
/** |
| 1908 |
* Get the global maximum value for a field |
| 1909 |
* @link http://www.php.net/manual/en/intlcalendar.getmaximum.php |
| 1910 |
* @param field int &reference.intl.incfieldparam; |
| 1911 |
* @return int An int representing a field value in the fieldʼs |
| 1912 |
* unit&return.falseforfailure;. |
| 1913 |
*/ |
| 1914 |
public function getMaximum ($field) {} |
| 1915 |
|
| 1916 |
/** |
| 1917 |
* Get minimal number of days the first week in a year or month can have |
| 1918 |
* @link http://www.php.net/manual/en/intlcalendar.getminimaldaysinfirstweek.php |
| 1919 |
* @return int An int representing a number of days&return.falseforfailure;. |
| 1920 |
*/ |
| 1921 |
public function getMinimalDaysInFirstWeek () {} |
| 1922 |
|
| 1923 |
/** |
| 1924 |
* Get the global minimum value for a field |
| 1925 |
* @link http://www.php.net/manual/en/intlcalendar.getminimum.php |
| 1926 |
* @param field int &reference.intl.incfieldparam; |
| 1927 |
* @return int An int representing a value for the given |
| 1928 |
* field in the fieldʼs unit&return.falseforfailure;. |
| 1929 |
*/ |
| 1930 |
public function getMinimum ($field) {} |
| 1931 |
|
| 1932 |
/** |
| 1933 |
* Get the objectʼs timezone |
| 1934 |
* @link http://www.php.net/manual/en/intlcalendar.gettimezone.php |
| 1935 |
* @return IntlTimeZone An IntlTimeZone object corresponding to the one used |
| 1936 |
* internally in this object. |
| 1937 |
*/ |
| 1938 |
public function getTimeZone () {} |
| 1939 |
|
| 1940 |
/** |
| 1941 |
* Get the calendar type |
| 1942 |
* @link http://www.php.net/manual/en/intlcalendar.gettype.php |
| 1943 |
* @return string A string representing the calendar type, such as |
| 1944 |
* 'gregorian', 'islamic', etc. |
| 1945 |
*/ |
| 1946 |
public function getType () {} |
| 1947 |
|
| 1948 |
/** |
| 1949 |
* Get time of the day at which weekend begins or ends |
| 1950 |
* @link http://www.php.net/manual/en/intlcalendar.getweekendtransition.php |
| 1951 |
* @param dayOfWeek string <p> |
| 1952 |
* One of the constants IntlCalendar::DOW_SUNDAY, |
| 1953 |
* IntlCalendar::DOW_MONDAY, …, |
| 1954 |
* IntlCalendar::DOW_SATURDAY. |
| 1955 |
* </p> |
| 1956 |
* @return int The number of milliseconds into the day at which the weekend begins or |
| 1957 |
* ends&return.falseforfailure;. |
| 1958 |
*/ |
| 1959 |
public function getWeekendTransition ($dayOfWeek) {} |
| 1960 |
|
| 1961 |
/** |
| 1962 |
* Whether the objectʼs time is in Daylight Savings Time |
| 1963 |
* @link http://www.php.net/manual/en/intlcalendar.indaylighttime.php |
| 1964 |
* @return bool true if the date is in Daylight Savings Time, false otherwise. |
| 1965 |
* The value false may also be returned on failure, for instance after |
| 1966 |
* specifying invalid field values on non-lenient mode; use exceptions or query |
| 1967 |
* intl_get_error_code to disambiguate. |
| 1968 |
*/ |
| 1969 |
public function inDaylightTime () {} |
| 1970 |
|
| 1971 |
/** |
| 1972 |
* Whether another calendar is equal but for a different time |
| 1973 |
* @link http://www.php.net/manual/en/intlcalendar.isequivalentto.php |
| 1974 |
* @param other IntlCalendar <p> |
| 1975 |
* The other calendar against which the comparison is to be made. |
| 1976 |
* </p> |
| 1977 |
* @return bool Assuming there are no argument errors, returns true iif the calendars are |
| 1978 |
* equivalent except possibly for their set time. |
| 1979 |
*/ |
| 1980 |
public function isEquivalentTo (IntlCalendar $other) {} |
| 1981 |
|
| 1982 |
/** |
| 1983 |
* Whether date/time interpretation is in lenient mode |
| 1984 |
* @link http://www.php.net/manual/en/intlcalendar.islenient.php |
| 1985 |
* @return bool A bool representing whether the calendar is set to lenient mode. |
| 1986 |
*/ |
| 1987 |
public function isLenient () {} |
| 1988 |
|
| 1989 |
/** |
| 1990 |
* Whether a field is set |
| 1991 |
* @link http://www.php.net/manual/en/intlcalendar.isset.php |
| 1992 |
* @param field int &reference.intl.incfieldparam; |
| 1993 |
* @return bool Assuming there are no argument errors, returns true iif the field is set. |
| 1994 |
*/ |
| 1995 |
public function isSet ($field) {} |
| 1996 |
|
| 1997 |
/** |
| 1998 |
* Whether a certain date/time is in the weekend |
| 1999 |
* @link http://www.php.net/manual/en/intlcalendar.isweekend.php |
| 2000 |
* @param date float[optional] <p> |
| 2001 |
* An optional timestamp representing the number of milliseconds since the |
| 2002 |
* epoch, excluding leap seconds. If &null;, this objectʼs current time is |
| 2003 |
* used instead. |
| 2004 |
* </p> |
| 2005 |
* @return bool A bool indicating whether the given or this objectʼs time occurs |
| 2006 |
* in a weekend. |
| 2007 |
* </p> |
| 2008 |
* <p> |
| 2009 |
* The value false may also be returned on failure, for instance after giving |
| 2010 |
* a date out of bounds on non-lenient mode; use exceptions or query |
| 2011 |
* intl_get_error_code to disambiguate. |
| 2012 |
*/ |
| 2013 |
public function isWeekend ($date = null) {} |
| 2014 |
|
| 2015 |
/** |
| 2016 |
* Set the day on which the week is deemed to start |
| 2017 |
* @link http://www.php.net/manual/en/intlcalendar.setfirstdayofweek.php |
| 2018 |
* @param dayOfWeek int <p> |
| 2019 |
* One of the constants IntlCalendar::DOW_SUNDAY, |
| 2020 |
* IntlCalendar::DOW_MONDAY, …, |
| 2021 |
* IntlCalendar::DOW_SATURDAY. |
| 2022 |
* </p> |
| 2023 |
* @return bool true on success. Failure can only happen due to invalid parameters. |
| 2024 |
*/ |
| 2025 |
public function setFirstDayOfWeek ($dayOfWeek) {} |
| 2026 |
|
| 2027 |
/** |
| 2028 |
* Set whether date/time interpretation is to be lenient |
| 2029 |
* @link http://www.php.net/manual/en/intlcalendar.setlenient.php |
| 2030 |
* @param isLenient string <p> |
| 2031 |
* Use true to activate the lenient mode; false otherwise. |
| 2032 |
* </p> |
| 2033 |
* @return ReturnType true on success. Failure can only happen due to invalid parameters. |
| 2034 |
*/ |
| 2035 |
public function setLenient ($isLenient) {} |
| 2036 |
|
| 2037 |
/** |
| 2038 |
* Set minimal number of days the first week in a year or month can have |
| 2039 |
* @link http://www.php.net/manual/en/intlcalendar.setminimaldaysinfirstweek.php |
| 2040 |
* @param minimalDays int <p> |
| 2041 |
* The number of minimal days to set. |
| 2042 |
* </p> |
| 2043 |
* @return bool true on success, false on failure. |
| 2044 |
*/ |
| 2045 |
public function setMinimalDaysInFirstWeek ($minimalDays) {} |
| 2046 |
|
| 2047 |
/** |
| 2048 |
* Compare time of two IntlCalendar objects for equality |
| 2049 |
* @link http://www.php.net/manual/en/intlcalendar.equals.php |
| 2050 |
* @param other IntlCalendar <p> |
| 2051 |
* The calendar to compare with the primary object. |
| 2052 |
* </p> |
| 2053 |
* @return bool true if the current time of both this and the passed in |
| 2054 |
* IntlCalendar object are the same, or false |
| 2055 |
* otherwise. The value false can also be returned on failure. This can only |
| 2056 |
* happen if bad arguments are passed in. In any case, the two cases can be |
| 2057 |
* distinguished by calling intl_get_error_code. |
| 2058 |
*/ |
| 2059 |
public function equals (IntlCalendar $other) {} |
| 2060 |
|
| 2061 |
/** |
| 2062 |
* Create an IntlCalendar from a DateTime object or string |
| 2063 |
* @link http://www.php.net/manual/en/intlcalendar.fromdatetime.php |
| 2064 |
* @param dateTime mixed <p> |
| 2065 |
* A DateTime object or a string that |
| 2066 |
* can be passed to DateTime::__construct. |
| 2067 |
* </p> |
| 2068 |
* @return IntlCalendar The created IntlCalendar object or &null; in case of |
| 2069 |
* failure. If a string is passed, any exception that occurs |
| 2070 |
* inside the DateTime constructor is propagated. |
| 2071 |
*/ |
| 2072 |
public static function fromDateTime ($dateTime) {} |
| 2073 |
|
| 2074 |
/** |
| 2075 |
* Convert an IntlCalendar into a DateTime object |
| 2076 |
* @link http://www.php.net/manual/en/intlcalendar.todatetime.php |
| 2077 |
* @return DateTime A DateTime object with the same timezone as this |
| 2078 |
* object (though using PHPʼs database instead of ICUʼs) and the same time, |
| 2079 |
* except for the smaller precision (second precision instead of millisecond). |
| 2080 |
* Returns false on failure. |
| 2081 |
*/ |
| 2082 |
public function toDateTime () {} |
| 2083 |
|
| 2084 |
/** |
| 2085 |
* Get last error code on the object |
| 2086 |
* @link http://www.php.net/manual/en/intlcalendar.geterrorcode.php |
| 2087 |
* @return int An ICU error code indicating either success, failure or a warning. |
| 2088 |
*/ |
| 2089 |
public function getErrorCode () {} |
| 2090 |
|
| 2091 |
/** |
| 2092 |
* Get last error message on the object |
| 2093 |
* @link http://www.php.net/manual/en/intlcalendar.geterrormessage.php |
| 2094 |
* @return string The error message associated with last error that occurred in a function call |
| 2095 |
* on this object, or a string indicating the non-existance of an error. |
| 2096 |
*/ |
| 2097 |
public function getErrorMessage () {} |
| 2098 |
|
| 2099 |
} |
| 2100 |
|
| 2101 |
class IntlGregorianCalendar extends IntlCalendar { |
| 2102 |
|
| 2103 |
/** |
| 2104 |
* @param timeZoneOrYear[optional] |
| 2105 |
* @param localeOrMonth[optional] |
| 2106 |
* @param dayOfMonth[optional] |
| 2107 |
* @param hour[optional] |
| 2108 |
* @param minute[optional] |
| 2109 |
* @param second[optional] |
| 2110 |
*/ |
| 2111 |
public function __construct ($timeZoneOrYear, $localeOrMonth, $dayOfMonth, $hour, $minute, $second) {} |
| 2112 |
|
| 2113 |
/** |
| 2114 |
* @param date |
| 2115 |
*/ |
| 2116 |
public function setGregorianChange ($date) {} |
| 2117 |
|
| 2118 |
public function getGregorianChange () {} |
| 2119 |
|
| 2120 |
/** |
| 2121 |
* @param year |
| 2122 |
*/ |
| 2123 |
public function isLeapYear ($year) {} |
| 2124 |
|
| 2125 |
/** |
| 2126 |
* Create a new IntlCalendar |
| 2127 |
* @link http://www.php.net/manual/en/intlcalendar.createinstance.php |
| 2128 |
* @param timeZone mixed[optional] <p> |
| 2129 |
* The timezone to use. |
| 2130 |
* </p> |
| 2131 |
* &reference.intl.inctimezoneparam; |
| 2132 |
* @param locale string[optional] <p> |
| 2133 |
* A locale to use or &null; to use the default locale. |
| 2134 |
* </p> |
| 2135 |
* @return IntlCalendar The created IntlCalendar instance or &null; on |
| 2136 |
* failure. |
| 2137 |
*/ |
| 2138 |
public static function createInstance ($timeZone = null, $locale = null) {} |
| 2139 |
|
| 2140 |
/** |
| 2141 |
* Get set of locale keyword values |
| 2142 |
* @link http://www.php.net/manual/en/intlcalendar.getkeywordvaluesforlocale.php |
| 2143 |
* @param key string <p> |
| 2144 |
* The locale keyword for which relevant values are to be queried. Only |
| 2145 |
* 'calendar' is supported. |
| 2146 |
* </p> |
| 2147 |
* @param locale string <p> |
| 2148 |
* The locale onto which the keyword/value pair are to be appended. |
| 2149 |
* </p> |
| 2150 |
* @param commonlyUsed boolean <p> |
| 2151 |
* Whether to show only the values commonly used for the specified locale. |
| 2152 |
* </p> |
| 2153 |
* @return Iterator An iterator that yields strings with the locale keyword |
| 2154 |
* values&return.falseforfailure;. |
| 2155 |
*/ |
| 2156 |
public static function getKeywordValuesForLocale ($key, $locale, $commonlyUsed) {} |
| 2157 |
|
| 2158 |
/** |
| 2159 |
* Get number representing the current time |
| 2160 |
* @link http://www.php.net/manual/en/intlcalendar.getnow.php |
| 2161 |
* @return float A float representing a number of milliseconds since the epoch, |
| 2162 |
* not counting leap seconds. |
| 2163 |
*/ |
| 2164 |
public static function getNow () {} |
| 2165 |
|
| 2166 |
/** |
| 2167 |
* Get array of locales for which there is data |
| 2168 |
* @link http://www.php.net/manual/en/intlcalendar.getavailablelocales.php |
| 2169 |
* @return array An array of strings, one for which locale. |
| 2170 |
*/ |
| 2171 |
public static function getAvailableLocales () {} |
| 2172 |
|
| 2173 |
/** |
| 2174 |
* Get the value for a field |
| 2175 |
* @link http://www.php.net/manual/en/intlcalendar.get.php |
| 2176 |
* @param field int &reference.intl.incfieldparam; |
| 2177 |
* @return int An integer with the value of the time field. |
| 2178 |
*/ |
| 2179 |
public function get ($field) {} |
| 2180 |
|
| 2181 |
/** |
| 2182 |
* Get time currently represented by the object |
| 2183 |
* @link http://www.php.net/manual/en/intlcalendar.gettime.php |
| 2184 |
* @return float A float representing the number of milliseconds elapsed since the |
| 2185 |
* reference time (1 Jan 1970 00:00:00 UTC). |
| 2186 |
*/ |
| 2187 |
public function getTime () {} |
| 2188 |
|
| 2189 |
/** |
| 2190 |
* Set the calendar time in milliseconds since the epoch |
| 2191 |
* @link http://www.php.net/manual/en/intlcalendar.settime.php |
| 2192 |
* @param date float <p> |
| 2193 |
* An instant represented by the number of number of milliseconds between |
| 2194 |
* such instant and the epoch, ignoring leap seconds. |
| 2195 |
* </p> |
| 2196 |
* @return bool true on success and false on failure. |
| 2197 |
*/ |
| 2198 |
public function setTime ($date) {} |
| 2199 |
|
| 2200 |
/** |
| 2201 |
* Add a (signed) amount of time to a field |
| 2202 |
* @link http://www.php.net/manual/en/intlcalendar.add.php |
| 2203 |
* @param field int &reference.intl.incfieldparam; |
| 2204 |
* @param amount int <p> |
| 2205 |
* The signed amount to add to the current field. If the amount is positive, |
| 2206 |
* the instant will be moved forward; if it is negative, the instant wil be |
| 2207 |
* moved into the past. The unit is implicit to the field type. For instance, |
| 2208 |
* hours for IntlCalendar::FIELD_HOUR_OF_DAY. |
| 2209 |
* </p> |
| 2210 |
* @return bool true on success&return.falseforfailure;. |
| 2211 |
*/ |
| 2212 |
public function add ($field, $amount) {} |
| 2213 |
|
| 2214 |
/** |
| 2215 |
* Set the timezone used by this calendar |
| 2216 |
* @link http://www.php.net/manual/en/intlcalendar.settimezone.php |
| 2217 |
* @param timeZone mixed <p> |
| 2218 |
* The new timezone to be used by this calendar. It can be specified in the |
| 2219 |
* following ways: |
| 2220 |
* &reference.intl.inctimezoneparam; |
| 2221 |
* </p> |
| 2222 |
* @return bool true on success and false on failure. |
| 2223 |
*/ |
| 2224 |
public function setTimeZone ($timeZone) {} |
| 2225 |
|
| 2226 |
/** |
| 2227 |
* Whether this objectʼs time is after that of the passed object |
| 2228 |
* @link http://www.php.net/manual/en/intlcalendar.after.php |
| 2229 |
* @param other IntlCalendar <p> |
| 2230 |
* The calendar whose time will be checked against the primary objectʼs time. |
| 2231 |
* </p> |
| 2232 |
* @return bool true if this objectʼs current time is after that of the |
| 2233 |
* calendar argumentʼs time. Returns false otherwise. |
| 2234 |
* Also returns false on failure. You can use exceptions or |
| 2235 |
* intl_get_error_code to detect error conditions. |
| 2236 |
*/ |
| 2237 |
public function after (IntlCalendar $other) {} |
| 2238 |
|
| 2239 |
/** |
| 2240 |
* Whether this objectʼs time is before that of the passed object |
| 2241 |
* @link http://www.php.net/manual/en/intlcalendar.before.php |
| 2242 |
* @param other IntlCalendar <p> |
| 2243 |
* The calendar whose time will be checked against the primary objectʼs time. |
| 2244 |
* </p> |
| 2245 |
* @return bool true if this objectʼs current time is before that of the |
| 2246 |
* calendar argumentʼs time. Returns false otherwise. |
| 2247 |
* Also returns false on failure. You can use exceptions or |
| 2248 |
* intl_get_error_code to detect error conditions. |
| 2249 |
*/ |
| 2250 |
public function before (IntlCalendar $other) {} |
| 2251 |
|
| 2252 |
/** |
| 2253 |
* Set a time field or several common fields at once |
| 2254 |
* @link http://www.php.net/manual/en/intlcalendar.set.php |
| 2255 |
* @param field int &reference.intl.incfieldparam; |
| 2256 |
* @param value int <p> |
| 2257 |
* The new value of the given field. |
| 2258 |
* </p> |
| 2259 |
* @return bool true on success and false on failure. |
| 2260 |
*/ |
| 2261 |
public function set ($field, $value) {} |
| 2262 |
|
| 2263 |
/** |
| 2264 |
* Add value to field without carrying into more significant fields |
| 2265 |
* @link http://www.php.net/manual/en/intlcalendar.roll.php |
| 2266 |
* @param field int &reference.intl.incfieldparam; |
| 2267 |
* @param amountOrUpOrDown mixed <p> |
| 2268 |
* The (signed) amount to add to the field, true for rolling up (adding |
| 2269 |
* 1), or false for rolling down (subtracting |
| 2270 |
* 1). |
| 2271 |
* </p> |
| 2272 |
* @return bool true on success or false on failure. |
| 2273 |
*/ |
| 2274 |
public function roll ($field, $amountOrUpOrDown) {} |
| 2275 |
|
| 2276 |
/** |
| 2277 |
* Clear a field or all fields |
| 2278 |
* @link http://www.php.net/manual/en/intlcalendar.clear.php |
| 2279 |
* @param field int[optional] &reference.intl.incfieldparam; |
| 2280 |
* @return bool true on success&return.falseforfailure;. Failure can only occur is |
| 2281 |
* invalid arguments are provided. |
| 2282 |
*/ |
| 2283 |
public function clear ($field = null) {} |
| 2284 |
|
| 2285 |
/** |
| 2286 |
* Calculate difference between given time and this objectʼs time |
| 2287 |
* @link http://www.php.net/manual/en/intlcalendar.fielddifference.php |
| 2288 |
* @param when float <p> |
| 2289 |
* The time against which to compare the quantity represented by the |
| 2290 |
* field. For the result to be positive, the time |
| 2291 |
* given for this parameter must be ahead of the time of the object the |
| 2292 |
* method is being invoked on. |
| 2293 |
* </p> |
| 2294 |
* @param field int <p> |
| 2295 |
* The field that represents the quantity being compared. |
| 2296 |
* </p> |
| 2297 |
* &reference.intl.incfieldparam; |
| 2298 |
* @return int a (signed) difference of time in the unit associated with the |
| 2299 |
* specified field&return.falseforfailure;. |
| 2300 |
*/ |
| 2301 |
public function fieldDifference ($when, $field) {} |
| 2302 |
|
| 2303 |
/** |
| 2304 |
* The maximum value for a field, considering the objectʼs current time |
| 2305 |
* @link http://www.php.net/manual/en/intlcalendar.getactualmaximum.php |
| 2306 |
* @param field int &reference.intl.incfieldparam; |
| 2307 |
* @return int An int representing the maximum value in the units associated |
| 2308 |
* with the given field&return.falseforfailure;. |
| 2309 |
*/ |
| 2310 |
public function getActualMaximum ($field) {} |
| 2311 |
|
| 2312 |
/** |
| 2313 |
* The minimum value for a field, considering the objectʼs current time |
| 2314 |
* @link http://www.php.net/manual/en/intlcalendar.getactualminimum.php |
| 2315 |
* @param field int &reference.intl.incfieldparam; |
| 2316 |
* @return int An int representing the minimum value in the fieldʼs |
| 2317 |
* unit&return.falseforfailure;. |
| 2318 |
*/ |
| 2319 |
public function getActualMinimum ($field) {} |
| 2320 |
|
| 2321 |
/** |
| 2322 |
* Tell whether a day is a weekday, weekend or a day that has a transition between the two |
| 2323 |
* @link http://www.php.net/manual/en/intlcalendar.getdayofweektype.php |
| 2324 |
* @param dayOfWeek int <p> |
| 2325 |
* One of the constants IntlCalendar::DOW_SUNDAY, |
| 2326 |
* IntlCalendar::DOW_MONDAY, …, |
| 2327 |
* IntlCalendar::DOW_SATURDAY. |
| 2328 |
* </p> |
| 2329 |
* @return int one of the constants |
| 2330 |
* IntlCalendar::DOW_TYPE_WEEKDAY, |
| 2331 |
* IntlCalendar::DOW_TYPE_WEEKEND, |
| 2332 |
* IntlCalendar::DOW_TYPE_WEEKEND_OFFSET or |
| 2333 |
* IntlCalendar::DOW_TYPE_WEEKEND_CEASE&return.falseforfailure;. |
| 2334 |
*/ |
| 2335 |
public function getDayOfWeekType ($dayOfWeek) {} |
| 2336 |
|
| 2337 |
/** |
| 2338 |
* Get the first day of the week for the calendarʼs locale |
| 2339 |
* @link http://www.php.net/manual/en/intlcalendar.getfirstdayofweek.php |
| 2340 |
* @return int One of the constants IntlCalendar::DOW_SUNDAY, |
| 2341 |
* IntlCalendar::DOW_MONDAY, …, |
| 2342 |
* IntlCalendar::DOW_SATURDAY&return.falseforfailure;. |
| 2343 |
*/ |
| 2344 |
public function getFirstDayOfWeek () {} |
| 2345 |
|
| 2346 |
/** |
| 2347 |
* Get the largest local minimum value for a field |
| 2348 |
* @link http://www.php.net/manual/en/intlcalendar.getgreatestminimum.php |
| 2349 |
* @param field int &reference.intl.incfieldparam; |
| 2350 |
* @return int An int representing a field value, in the fieldʼs |
| 2351 |
* unit,&return.falseforfailure;. |
| 2352 |
*/ |
| 2353 |
public function getGreatestMinimum ($field) {} |
| 2354 |
|
| 2355 |
/** |
| 2356 |
* Get the smallest local maximum for a field |
| 2357 |
* @link http://www.php.net/manual/en/intlcalendar.getleastmaximum.php |
| 2358 |
* @param field int &reference.intl.incfieldparam; |
| 2359 |
* @return int An int representing a field value in the fieldʼs |
| 2360 |
* unit&return.falseforfailure;. |
| 2361 |
*/ |
| 2362 |
public function getLeastMaximum ($field) {} |
| 2363 |
|
| 2364 |
/** |
| 2365 |
* Get the locale associated with the object |
| 2366 |
* @link http://www.php.net/manual/en/intlcalendar.getlocale.php |
| 2367 |
* @param localeType int <p> |
| 2368 |
* Whether to fetch the actual locale (the locale from which the calendar |
| 2369 |
* data originates, with Locale::ACTUAL_LOCALE) or the |
| 2370 |
* valid locale, i.e., the most specific locale supported by ICU relatively |
| 2371 |
* to the requested locale – see Locale::VALID_LOCALE. |
| 2372 |
* From the most general to the most specific, the locales are ordered in |
| 2373 |
* this fashion – actual locale, valid locale, requested locale. |
| 2374 |
* </p> |
| 2375 |
* @return string A locale string&return.falseforfailure;. |
| 2376 |
*/ |
| 2377 |
public function getLocale ($localeType) {} |
| 2378 |
|
| 2379 |
/** |
| 2380 |
* Get the global maximum value for a field |
| 2381 |
* @link http://www.php.net/manual/en/intlcalendar.getmaximum.php |
| 2382 |
* @param field int &reference.intl.incfieldparam; |
| 2383 |
* @return int An int representing a field value in the fieldʼs |
| 2384 |
* unit&return.falseforfailure;. |
| 2385 |
*/ |
| 2386 |
public function getMaximum ($field) {} |
| 2387 |
|
| 2388 |
/** |
| 2389 |
* Get minimal number of days the first week in a year or month can have |
| 2390 |
* @link http://www.php.net/manual/en/intlcalendar.getminimaldaysinfirstweek.php |
| 2391 |
* @return int An int representing a number of days&return.falseforfailure;. |
| 2392 |
*/ |
| 2393 |
public function getMinimalDaysInFirstWeek () {} |
| 2394 |
|
| 2395 |
/** |
| 2396 |
* Get the global minimum value for a field |
| 2397 |
* @link http://www.php.net/manual/en/intlcalendar.getminimum.php |
| 2398 |
* @param field int &reference.intl.incfieldparam; |
| 2399 |
* @return int An int representing a value for the given |
| 2400 |
* field in the fieldʼs unit&return.falseforfailure;. |
| 2401 |
*/ |
| 2402 |
public function getMinimum ($field) {} |
| 2403 |
|
| 2404 |
/** |
| 2405 |
* Get the objectʼs timezone |
| 2406 |
* @link http://www.php.net/manual/en/intlcalendar.gettimezone.php |
| 2407 |
* @return IntlTimeZone An IntlTimeZone object corresponding to the one used |
| 2408 |
* internally in this object. |
| 2409 |
*/ |
| 2410 |
public function getTimeZone () {} |
| 2411 |
|
| 2412 |
/** |
| 2413 |
* Get the calendar type |
| 2414 |
* @link http://www.php.net/manual/en/intlcalendar.gettype.php |
| 2415 |
* @return string A string representing the calendar type, such as |
| 2416 |
* 'gregorian', 'islamic', etc. |
| 2417 |
*/ |
| 2418 |
public function getType () {} |
| 2419 |
|
| 2420 |
/** |
| 2421 |
* Get time of the day at which weekend begins or ends |
| 2422 |
* @link http://www.php.net/manual/en/intlcalendar.getweekendtransition.php |
| 2423 |
* @param dayOfWeek string <p> |
| 2424 |
* One of the constants IntlCalendar::DOW_SUNDAY, |
| 2425 |
* IntlCalendar::DOW_MONDAY, …, |
| 2426 |
* IntlCalendar::DOW_SATURDAY. |
| 2427 |
* </p> |
| 2428 |
* @return int The number of milliseconds into the day at which the weekend begins or |
| 2429 |
* ends&return.falseforfailure;. |
| 2430 |
*/ |
| 2431 |
public function getWeekendTransition ($dayOfWeek) {} |
| 2432 |
|
| 2433 |
/** |
| 2434 |
* Whether the objectʼs time is in Daylight Savings Time |
| 2435 |
* @link http://www.php.net/manual/en/intlcalendar.indaylighttime.php |
| 2436 |
* @return bool true if the date is in Daylight Savings Time, false otherwise. |
| 2437 |
* The value false may also be returned on failure, for instance after |
| 2438 |
* specifying invalid field values on non-lenient mode; use exceptions or query |
| 2439 |
* intl_get_error_code to disambiguate. |
| 2440 |
*/ |
| 2441 |
public function inDaylightTime () {} |
| 2442 |
|
| 2443 |
/** |
| 2444 |
* Whether another calendar is equal but for a different time |
| 2445 |
* @link http://www.php.net/manual/en/intlcalendar.isequivalentto.php |
| 2446 |
* @param other IntlCalendar <p> |
| 2447 |
* The other calendar against which the comparison is to be made. |
| 2448 |
* </p> |
| 2449 |
* @return bool Assuming there are no argument errors, returns true iif the calendars are |
| 2450 |
* equivalent except possibly for their set time. |
| 2451 |
*/ |
| 2452 |
public function isEquivalentTo (IntlCalendar $other) {} |
| 2453 |
|
| 2454 |
/** |
| 2455 |
* Whether date/time interpretation is in lenient mode |
| 2456 |
* @link http://www.php.net/manual/en/intlcalendar.islenient.php |
| 2457 |
* @return bool A bool representing whether the calendar is set to lenient mode. |
| 2458 |
*/ |
| 2459 |
public function isLenient () {} |
| 2460 |
|
| 2461 |
/** |
| 2462 |
* Whether a field is set |
| 2463 |
* @link http://www.php.net/manual/en/intlcalendar.isset.php |
| 2464 |
* @param field int &reference.intl.incfieldparam; |
| 2465 |
* @return bool Assuming there are no argument errors, returns true iif the field is set. |
| 2466 |
*/ |
| 2467 |
public function isSet ($field) {} |
| 2468 |
|
| 2469 |
/** |
| 2470 |
* Whether a certain date/time is in the weekend |
| 2471 |
* @link http://www.php.net/manual/en/intlcalendar.isweekend.php |
| 2472 |
* @param date float[optional] <p> |
| 2473 |
* An optional timestamp representing the number of milliseconds since the |
| 2474 |
* epoch, excluding leap seconds. If &null;, this objectʼs current time is |
| 2475 |
* used instead. |
| 2476 |
* </p> |
| 2477 |
* @return bool A bool indicating whether the given or this objectʼs time occurs |
| 2478 |
* in a weekend. |
| 2479 |
* </p> |
| 2480 |
* <p> |
| 2481 |
* The value false may also be returned on failure, for instance after giving |
| 2482 |
* a date out of bounds on non-lenient mode; use exceptions or query |
| 2483 |
* intl_get_error_code to disambiguate. |
| 2484 |
*/ |
| 2485 |
public function isWeekend ($date = null) {} |
| 2486 |
|
| 2487 |
/** |
| 2488 |
* Set the day on which the week is deemed to start |
| 2489 |
* @link http://www.php.net/manual/en/intlcalendar.setfirstdayofweek.php |
| 2490 |
* @param dayOfWeek int <p> |
| 2491 |
* One of the constants IntlCalendar::DOW_SUNDAY, |
| 2492 |
* IntlCalendar::DOW_MONDAY, …, |
| 2493 |
* IntlCalendar::DOW_SATURDAY. |
| 2494 |
* </p> |
| 2495 |
* @return bool true on success. Failure can only happen due to invalid parameters. |
| 2496 |
*/ |
| 2497 |
public function setFirstDayOfWeek ($dayOfWeek) {} |
| 2498 |
|
| 2499 |
/** |
| 2500 |
* Set whether date/time interpretation is to be lenient |
| 2501 |
* @link http://www.php.net/manual/en/intlcalendar.setlenient.php |
| 2502 |
* @param isLenient string <p> |
| 2503 |
* Use true to activate the lenient mode; false otherwise. |
| 2504 |
* </p> |
| 2505 |
* @return ReturnType true on success. Failure can only happen due to invalid parameters. |
| 2506 |
*/ |
| 2507 |
public function setLenient ($isLenient) {} |
| 2508 |
|
| 2509 |
/** |
| 2510 |
* Set minimal number of days the first week in a year or month can have |
| 2511 |
* @link http://www.php.net/manual/en/intlcalendar.setminimaldaysinfirstweek.php |
| 2512 |
* @param minimalDays int <p> |
| 2513 |
* The number of minimal days to set. |
| 2514 |
* </p> |
| 2515 |
* @return bool true on success, false on failure. |
| 2516 |
*/ |
| 2517 |
public function setMinimalDaysInFirstWeek ($minimalDays) {} |
| 2518 |
|
| 2519 |
/** |
| 2520 |
* Compare time of two IntlCalendar objects for equality |
| 2521 |
* @link http://www.php.net/manual/en/intlcalendar.equals.php |
| 2522 |
* @param other IntlCalendar <p> |
| 2523 |
* The calendar to compare with the primary object. |
| 2524 |
* </p> |
| 2525 |
* @return bool true if the current time of both this and the passed in |
| 2526 |
* IntlCalendar object are the same, or false |
| 2527 |
* otherwise. The value false can also be returned on failure. This can only |
| 2528 |
* happen if bad arguments are passed in. In any case, the two cases can be |
| 2529 |
* distinguished by calling intl_get_error_code. |
| 2530 |
*/ |
| 2531 |
public function equals (IntlCalendar $other) {} |
| 2532 |
|
| 2533 |
/** |
| 2534 |
* Create an IntlCalendar from a DateTime object or string |
| 2535 |
* @link http://www.php.net/manual/en/intlcalendar.fromdatetime.php |
| 2536 |
* @param dateTime mixed <p> |
| 2537 |
* A DateTime object or a string that |
| 2538 |
* can be passed to DateTime::__construct. |
| 2539 |
* </p> |
| 2540 |
* @return IntlCalendar The created IntlCalendar object or &null; in case of |
| 2541 |
* failure. If a string is passed, any exception that occurs |
| 2542 |
* inside the DateTime constructor is propagated. |
| 2543 |
*/ |
| 2544 |
public static function fromDateTime ($dateTime) {} |
| 2545 |
|
| 2546 |
/** |
| 2547 |
* Convert an IntlCalendar into a DateTime object |
| 2548 |
* @link http://www.php.net/manual/en/intlcalendar.todatetime.php |
| 2549 |
* @return DateTime A DateTime object with the same timezone as this |
| 2550 |
* object (though using PHPʼs database instead of ICUʼs) and the same time, |
| 2551 |
* except for the smaller precision (second precision instead of millisecond). |
| 2552 |
* Returns false on failure. |
| 2553 |
*/ |
| 2554 |
public function toDateTime () {} |
| 2555 |
|
| 2556 |
/** |
| 2557 |
* Get last error code on the object |
| 2558 |
* @link http://www.php.net/manual/en/intlcalendar.geterrorcode.php |
| 2559 |
* @return int An ICU error code indicating either success, failure or a warning. |
| 2560 |
*/ |
| 2561 |
public function getErrorCode () {} |
| 2562 |
|
| 2563 |
/** |
| 2564 |
* Get last error message on the object |
| 2565 |
* @link http://www.php.net/manual/en/intlcalendar.geterrormessage.php |
| 2566 |
* @return string The error message associated with last error that occurred in a function call |
| 2567 |
* on this object, or a string indicating the non-existance of an error. |
| 2568 |
*/ |
| 2569 |
public function getErrorMessage () {} |
| 2570 |
|
| 2571 |
} |
| 2572 |
|
| 2573 |
class Spoofchecker { |
| 2574 |
const SINGLE_SCRIPT_CONFUSABLE = 1; |
| 2575 |
const MIXED_SCRIPT_CONFUSABLE = 2; |
| 2576 |
const WHOLE_SCRIPT_CONFUSABLE = 4; |
| 2577 |
const ANY_CASE = 8; |
| 2578 |
const SINGLE_SCRIPT = 16; |
| 2579 |
const INVISIBLE = 32; |
| 2580 |
const CHAR_LIMIT = 64; |
| 2581 |
|
| 2582 |
|
| 2583 |
/** |
| 2584 |
* Constructor |
| 2585 |
* @link http://www.php.net/manual/en/spoofchecker.construct.php |
| 2586 |
*/ |
| 2587 |
public function __construct () {} |
| 2588 |
|
| 2589 |
/** |
| 2590 |
* Checks if a given text contains any suspicious characters |
| 2591 |
* @link http://www.php.net/manual/en/spoofchecker.issuspicious.php |
| 2592 |
* @param text string <p> |
| 2593 |
* |
| 2594 |
* </p> |
| 2595 |
* @param error string[optional] <p> |
| 2596 |
* |
| 2597 |
* </p> |
| 2598 |
* @return bool |
| 2599 |
*/ |
| 2600 |
public function isSuspicious ($text, &$error = null) {} |
| 2601 |
|
| 2602 |
/** |
| 2603 |
* Checks if a given text contains any confusable characters |
| 2604 |
* @link http://www.php.net/manual/en/spoofchecker.areconfusable.php |
| 2605 |
* @param s1 string <p> |
| 2606 |
* |
| 2607 |
* </p> |
| 2608 |
* @param s2 string <p> |
| 2609 |
* |
| 2610 |
* </p> |
| 2611 |
* @param error string[optional] <p> |
| 2612 |
* |
| 2613 |
* </p> |
| 2614 |
* @return bool |
| 2615 |
*/ |
| 2616 |
public function areConfusable ($s1, $s2, &$error = null) {} |
| 2617 |
|
| 2618 |
/** |
| 2619 |
* Locales to use when running checks |
| 2620 |
* @link http://www.php.net/manual/en/spoofchecker.setallowedlocales.php |
| 2621 |
* @param locale_list string <p> |
| 2622 |
* |
| 2623 |
* </p> |
| 2624 |
* @return void |
| 2625 |
*/ |
| 2626 |
public function setAllowedLocales ($locale_list) {} |
| 2627 |
|
| 2628 |
/** |
| 2629 |
* Set the checks to run |
| 2630 |
* @link http://www.php.net/manual/en/spoofchecker.setchecks.php |
| 2631 |
* @param checks long <p> |
| 2632 |
* |
| 2633 |
* </p> |
| 2634 |
* @return void |
| 2635 |
*/ |
| 2636 |
public function setChecks ($checks) {} |
| 2637 |
|
| 2638 |
} |
| 2639 |
|
| 2640 |
class IntlException extends Exception { |
| 2641 |
protected $message; |
| 2642 |
protected $code; |
| 2643 |
protected $file; |
| 2644 |
protected $line; |
| 2645 |
|
| 2646 |
|
| 2647 |
final private function __clone () {} |
| 2648 |
|
| 2649 |
/** |
| 2650 |
* @param message[optional] |
| 2651 |
* @param code[optional] |
| 2652 |
* @param previous[optional] |
| 2653 |
*/ |
| 2654 |
public function __construct ($message, $code, $previous) {} |
| 2655 |
|
| 2656 |
final public function getMessage () {} |
| 2657 |
|
| 2658 |
final public function getCode () {} |
| 2659 |
|
| 2660 |
final public function getFile () {} |
| 2661 |
|
| 2662 |
final public function getLine () {} |
| 2663 |
|
| 2664 |
final public function getTrace () {} |
| 2665 |
|
| 2666 |
final public function getPrevious () {} |
| 2667 |
|
| 2668 |
final public function getTraceAsString () {} |
| 2669 |
|
| 2670 |
public function __toString () {} |
| 2671 |
|
| 2672 |
} |
| 2673 |
|
| 2674 |
class IntlIterator implements Iterator, Traversable { |
| 2675 |
|
| 2676 |
/** |
| 2677 |
* Get the current element |
| 2678 |
* @link http://www.php.net/manual/en/intliterator.current.php |
| 2679 |
* @return ReturnType |
| 2680 |
*/ |
| 2681 |
public function current () {} |
| 2682 |
|
| 2683 |
/** |
| 2684 |
* Get the current key |
| 2685 |
* @link http://www.php.net/manual/en/intliterator.key.php |
| 2686 |
* @return ReturnType |
| 2687 |
*/ |
| 2688 |
public function key () {} |
| 2689 |
|
| 2690 |
/** |
| 2691 |
* Move forward to the next element |
| 2692 |
* @link http://www.php.net/manual/en/intliterator.next.php |
| 2693 |
* @return ReturnType |
| 2694 |
*/ |
| 2695 |
public function next () {} |
| 2696 |
|
| 2697 |
/** |
| 2698 |
* Rewind the iterator to the first element |
| 2699 |
* @link http://www.php.net/manual/en/intliterator.rewind.php |
| 2700 |
* @return ReturnType |
| 2701 |
*/ |
| 2702 |
public function rewind () {} |
| 2703 |
|
| 2704 |
/** |
| 2705 |
* Check if current position is valid |
| 2706 |
* @link http://www.php.net/manual/en/intliterator.valid.php |
| 2707 |
* @return ReturnType |
| 2708 |
*/ |
| 2709 |
public function valid () {} |
| 2710 |
|
| 2711 |
} |
| 2712 |
|
| 2713 |
class IntlBreakIterator implements Traversable { |
| 2714 |
const DONE = -1; |
| 2715 |
const WORD_NONE = 0; |
| 2716 |
const WORD_NONE_LIMIT = 100; |
| 2717 |
const WORD_NUMBER = 100; |
| 2718 |
const WORD_NUMBER_LIMIT = 200; |
| 2719 |
const WORD_LETTER = 200; |
| 2720 |
const WORD_LETTER_LIMIT = 300; |
| 2721 |
const WORD_KANA = 300; |
| 2722 |
const WORD_KANA_LIMIT = 400; |
| 2723 |
const WORD_IDEO = 400; |
| 2724 |
const WORD_IDEO_LIMIT = 500; |
| 2725 |
const LINE_SOFT = 0; |
| 2726 |
const LINE_SOFT_LIMIT = 100; |
| 2727 |
const LINE_HARD = 100; |
| 2728 |
const LINE_HARD_LIMIT = 200; |
| 2729 |
const SENTENCE_TERM = 0; |
| 2730 |
const SENTENCE_TERM_LIMIT = 100; |
| 2731 |
const SENTENCE_SEP = 100; |
| 2732 |
const SENTENCE_SEP_LIMIT = 200; |
| 2733 |
|
| 2734 |
|
| 2735 |
/** |
| 2736 |
* Private constructor for disallowing instantiation |
| 2737 |
* @link http://www.php.net/manual/en/intlbreakiterator.construct.php |
| 2738 |
*/ |
| 2739 |
private function __construct () {} |
| 2740 |
|
| 2741 |
/** |
| 2742 |
* Create break iterator for word breaks |
| 2743 |
* @link http://www.php.net/manual/en/intlbreakiterator.createwordinstance.php |
| 2744 |
* @param _locale_ string[optional] |
| 2745 |
* @return ReturnType |
| 2746 |
*/ |
| 2747 |
public static function createWordInstance ($_locale_ = null) {} |
| 2748 |
|
| 2749 |
/** |
| 2750 |
* Create break iterator for logically possible line breaks |
| 2751 |
* @link http://www.php.net/manual/en/intlbreakiterator.createlineinstance.php |
| 2752 |
* @param _locale_ string[optional] |
| 2753 |
* @return ReturnType |
| 2754 |
*/ |
| 2755 |
public static function createLineInstance ($_locale_ = null) {} |
| 2756 |
|
| 2757 |
/** |
| 2758 |
* Create break iterator for boundaries of combining character sequences |
| 2759 |
* @link http://www.php.net/manual/en/intlbreakiterator.createcharacterinstance.php |
| 2760 |
* @param _locale_ string[optional] |
| 2761 |
* @return ReturnType |
| 2762 |
*/ |
| 2763 |
public static function createCharacterInstance ($_locale_ = null) {} |
| 2764 |
|
| 2765 |
/** |
| 2766 |
* Create break iterator for sentence breaks |
| 2767 |
* @link http://www.php.net/manual/en/intlbreakiterator.createsentenceinstance.php |
| 2768 |
* @param _locale_ string[optional] |
| 2769 |
* @return ReturnType |
| 2770 |
*/ |
| 2771 |
public static function createSentenceInstance ($_locale_ = null) {} |
| 2772 |
|
| 2773 |
/** |
| 2774 |
* Create break iterator for title-casing breaks |
| 2775 |
* @link http://www.php.net/manual/en/intlbreakiterator.createtitleinstance.php |
| 2776 |
* @param _locale_ string[optional] |
| 2777 |
* @return ReturnType |
| 2778 |
*/ |
| 2779 |
public static function createTitleInstance ($_locale_ = null) {} |
| 2780 |
|
| 2781 |
/** |
| 2782 |
* Create break iterator for boundaries of code points |
| 2783 |
* @link http://www.php.net/manual/en/intlbreakiterator.createcodepointinstance.php |
| 2784 |
* @return ReturnType |
| 2785 |
*/ |
| 2786 |
public static function createCodePointInstance () {} |
| 2787 |
|
| 2788 |
/** |
| 2789 |
* Get the text being scanned |
| 2790 |
* @link http://www.php.net/manual/en/intlbreakiterator.gettext.php |
| 2791 |
* @return ReturnType |
| 2792 |
*/ |
| 2793 |
public function getText () {} |
| 2794 |
|
| 2795 |
/** |
| 2796 |
* Set the text being scanned |
| 2797 |
* @link http://www.php.net/manual/en/intlbreakiterator.settext.php |
| 2798 |
* @param _text_ string |
| 2799 |
* @return ReturnType |
| 2800 |
*/ |
| 2801 |
public function setText ($_text_) {} |
| 2802 |
|
| 2803 |
/** |
| 2804 |
* Set position to the first character in the text |
| 2805 |
* @link http://www.php.net/manual/en/intlbreakiterator.first.php |
| 2806 |
* @return ReturnType |
| 2807 |
*/ |
| 2808 |
public function first () {} |
| 2809 |
|
| 2810 |
/** |
| 2811 |
* Set the iterator position to index beyond the last character |
| 2812 |
* @link http://www.php.net/manual/en/intlbreakiterator.last.php |
| 2813 |
* @return ReturnType |
| 2814 |
*/ |
| 2815 |
public function last () {} |
| 2816 |
|
| 2817 |
/** |
| 2818 |
* Set the iterator position to the boundary immediately before the current |
| 2819 |
* @link http://www.php.net/manual/en/intlbreakiterator.previous.php |
| 2820 |
* @return ReturnType |
| 2821 |
*/ |
| 2822 |
public function previous () {} |
| 2823 |
|
| 2824 |
/** |
| 2825 |
* Advance the iterator the next boundary |
| 2826 |
* @link http://www.php.net/manual/en/intlbreakiterator.next.php |
| 2827 |
* @param _offset_ string[optional] |
| 2828 |
* @return ReturnType |
| 2829 |
*/ |
| 2830 |
public function next ($_offset_ = null) {} |
| 2831 |
|
| 2832 |
/** |
| 2833 |
* Get index of current position |
| 2834 |
* @link http://www.php.net/manual/en/intlbreakiterator.current.php |
| 2835 |
* @return ReturnType |
| 2836 |
*/ |
| 2837 |
public function current () {} |
| 2838 |
|
| 2839 |
/** |
| 2840 |
* Advance the iterator to the first boundary following specified offset |
| 2841 |
* @link http://www.php.net/manual/en/intlbreakiterator.following.php |
| 2842 |
* @param _offset_ string |
| 2843 |
* @return ReturnType |
| 2844 |
*/ |
| 2845 |
public function following ($_offset_) {} |
| 2846 |
|
| 2847 |
/** |
| 2848 |
* Set the iterator position to the first boundary before an offset |
| 2849 |
* @link http://www.php.net/manual/en/intlbreakiterator.preceding.php |
| 2850 |
* @param _offset_ string |
| 2851 |
* @return ReturnType |
| 2852 |
*/ |
| 2853 |
public function preceding ($_offset_) {} |
| 2854 |
|
| 2855 |
/** |
| 2856 |
* Tell whether an offset is a boundaryʼs offset |
| 2857 |
* @link http://www.php.net/manual/en/intlbreakiterator.isboundary.php |
| 2858 |
* @param _offset_ string |
| 2859 |
* @return ReturnType |
| 2860 |
*/ |
| 2861 |
public function isBoundary ($_offset_) {} |
| 2862 |
|
| 2863 |
/** |
| 2864 |
* Get the locale associated with the object |
| 2865 |
* @link http://www.php.net/manual/en/intlbreakiterator.getlocale.php |
| 2866 |
* @param _locale_type_ string |
| 2867 |
* @return ReturnType |
| 2868 |
*/ |
| 2869 |
public function getLocale ($_locale_type_) {} |
| 2870 |
|
| 2871 |
/** |
| 2872 |
* Create iterator for navigating fragments between boundaries |
| 2873 |
* @link http://www.php.net/manual/en/intlbreakiterator.getpartsiterator.php |
| 2874 |
* @param _key_type_ string[optional] |
| 2875 |
* @return ReturnType |
| 2876 |
*/ |
| 2877 |
public function getPartsIterator ($_key_type_ = null) {} |
| 2878 |
|
| 2879 |
/** |
| 2880 |
* Get last error code on the object |
| 2881 |
* @link http://www.php.net/manual/en/intlbreakiterator.geterrorcode.php |
| 2882 |
* @return ReturnType |
| 2883 |
*/ |
| 2884 |
public function getErrorCode () {} |
| 2885 |
|
| 2886 |
/** |
| 2887 |
* Get last error message on the object |
| 2888 |
* @link http://www.php.net/manual/en/intlbreakiterator.geterrormessage.php |
| 2889 |
* @return ReturnType |
| 2890 |
*/ |
| 2891 |
public function getErrorMessage () {} |
| 2892 |
|
| 2893 |
} |
| 2894 |
|
| 2895 |
class IntlRuleBasedBreakIterator extends IntlBreakIterator implements Traversable { |
| 2896 |
const DONE = -1; |
| 2897 |
const WORD_NONE = 0; |
| 2898 |
const WORD_NONE_LIMIT = 100; |
| 2899 |
const WORD_NUMBER = 100; |
| 2900 |
const WORD_NUMBER_LIMIT = 200; |
| 2901 |
const WORD_LETTER = 200; |
| 2902 |
const WORD_LETTER_LIMIT = 300; |
| 2903 |
const WORD_KANA = 300; |
| 2904 |
const WORD_KANA_LIMIT = 400; |
| 2905 |
const WORD_IDEO = 400; |
| 2906 |
const WORD_IDEO_LIMIT = 500; |
| 2907 |
const LINE_SOFT = 0; |
| 2908 |
const LINE_SOFT_LIMIT = 100; |
| 2909 |
const LINE_HARD = 100; |
| 2910 |
const LINE_HARD_LIMIT = 200; |
| 2911 |
const SENTENCE_TERM = 0; |
| 2912 |
const SENTENCE_TERM_LIMIT = 100; |
| 2913 |
const SENTENCE_SEP = 100; |
| 2914 |
const SENTENCE_SEP_LIMIT = 200; |
| 2915 |
|
| 2916 |
|
| 2917 |
/** |
| 2918 |
* Create iterator from ruleset |
| 2919 |
* @link http://www.php.net/manual/en/intlrulebasedbreakiterator.construct.php |
| 2920 |
* @param rules |
| 2921 |
* @param areCompiled[optional] |
| 2922 |
*/ |
| 2923 |
public function __construct ($rules, $areCompiled) {} |
| 2924 |
|
| 2925 |
/** |
| 2926 |
* Get the rule set used to create this object |
| 2927 |
* @link http://www.php.net/manual/en/intlrulebasedbreakiterator.getrules.php |
| 2928 |
* @return ReturnType |
| 2929 |
*/ |
| 2930 |
public function getRules () {} |
| 2931 |
|
| 2932 |
/** |
| 2933 |
* Get the largest status value from the break rules that determined the current break position |
| 2934 |
* @link http://www.php.net/manual/en/intlrulebasedbreakiterator.getrulestatus.php |
| 2935 |
* @return ReturnType |
| 2936 |
*/ |
| 2937 |
public function getRuleStatus () {} |
| 2938 |
|
| 2939 |
/** |
| 2940 |
* Get the status values from the break rules that determined the current break position |
| 2941 |
* @link http://www.php.net/manual/en/intlrulebasedbreakiterator.getrulestatusvec.php |
| 2942 |
* @return ReturnType |
| 2943 |
*/ |
| 2944 |
public function getRuleStatusVec () {} |
| 2945 |
|
| 2946 |
/** |
| 2947 |
* Create break iterator for word breaks |
| 2948 |
* @link http://www.php.net/manual/en/intlbreakiterator.createwordinstance.php |
| 2949 |
* @param _locale_ string[optional] |
| 2950 |
* @return ReturnType |
| 2951 |
*/ |
| 2952 |
public static function createWordInstance ($_locale_ = null) {} |
| 2953 |
|
| 2954 |
/** |
| 2955 |
* Create break iterator for logically possible line breaks |
| 2956 |
* @link http://www.php.net/manual/en/intlbreakiterator.createlineinstance.php |
| 2957 |
* @param _locale_ string[optional] |
| 2958 |
* @return ReturnType |
| 2959 |
*/ |
| 2960 |
public static function createLineInstance ($_locale_ = null) {} |
| 2961 |
|
| 2962 |
/** |
| 2963 |
* Create break iterator for boundaries of combining character sequences |
| 2964 |
* @link http://www.php.net/manual/en/intlbreakiterator.createcharacterinstance.php |
| 2965 |
* @param _locale_ string[optional] |
| 2966 |
* @return ReturnType |
| 2967 |
*/ |
| 2968 |
public static function createCharacterInstance ($_locale_ = null) {} |
| 2969 |
|
| 2970 |
/** |
| 2971 |
* Create break iterator for sentence breaks |
| 2972 |
* @link http://www.php.net/manual/en/intlbreakiterator.createsentenceinstance.php |
| 2973 |
* @param _locale_ string[optional] |
| 2974 |
* @return ReturnType |
| 2975 |
*/ |
| 2976 |
public static function createSentenceInstance ($_locale_ = null) {} |
| 2977 |
|
| 2978 |
/** |
| 2979 |
* Create break iterator for title-casing breaks |
| 2980 |
* @link http://www.php.net/manual/en/intlbreakiterator.createtitleinstance.php |
| 2981 |
* @param _locale_ string[optional] |
| 2982 |
* @return ReturnType |
| 2983 |
*/ |
| 2984 |
public static function createTitleInstance ($_locale_ = null) {} |
| 2985 |
|
| 2986 |
/** |
| 2987 |
* Create break iterator for boundaries of code points |
| 2988 |
* @link http://www.php.net/manual/en/intlbreakiterator.createcodepointinstance.php |
| 2989 |
* @return ReturnType |
| 2990 |
*/ |
| 2991 |
public static function createCodePointInstance () {} |
| 2992 |
|
| 2993 |
/** |
| 2994 |
* Get the text being scanned |
| 2995 |
* @link http://www.php.net/manual/en/intlbreakiterator.gettext.php |
| 2996 |
* @return ReturnType |
| 2997 |
*/ |
| 2998 |
public function getText () {} |
| 2999 |
|
| 3000 |
/** |
| 3001 |
* Set the text being scanned |
| 3002 |
* @link http://www.php.net/manual/en/intlbreakiterator.settext.php |
| 3003 |
* @param _text_ string |
| 3004 |
* @return ReturnType |
| 3005 |
*/ |
| 3006 |
public function setText ($_text_) {} |
| 3007 |
|
| 3008 |
/** |
| 3009 |
* Set position to the first character in the text |
| 3010 |
* @link http://www.php.net/manual/en/intlbreakiterator.first.php |
| 3011 |
* @return ReturnType |
| 3012 |
*/ |
| 3013 |
public function first () {} |
| 3014 |
|
| 3015 |
/** |
| 3016 |
* Set the iterator position to index beyond the last character |
| 3017 |
* @link http://www.php.net/manual/en/intlbreakiterator.last.php |
| 3018 |
* @return ReturnType |
| 3019 |
*/ |
| 3020 |
public function last () {} |
| 3021 |
|
| 3022 |
/** |
| 3023 |
* Set the iterator position to the boundary immediately before the current |
| 3024 |
* @link http://www.php.net/manual/en/intlbreakiterator.previous.php |
| 3025 |
* @return ReturnType |
| 3026 |
*/ |
| 3027 |
public function previous () {} |
| 3028 |
|
| 3029 |
/** |
| 3030 |
* Advance the iterator the next boundary |
| 3031 |
* @link http://www.php.net/manual/en/intlbreakiterator.next.php |
| 3032 |
* @param _offset_ string[optional] |
| 3033 |
* @return ReturnType |
| 3034 |
*/ |
| 3035 |
public function next ($_offset_ = null) {} |
| 3036 |
|
| 3037 |
/** |
| 3038 |
* Get index of current position |
| 3039 |
* @link http://www.php.net/manual/en/intlbreakiterator.current.php |
| 3040 |
* @return ReturnType |
| 3041 |
*/ |
| 3042 |
public function current () {} |
| 3043 |
|
| 3044 |
/** |
| 3045 |
* Advance the iterator to the first boundary following specified offset |
| 3046 |
* @link http://www.php.net/manual/en/intlbreakiterator.following.php |
| 3047 |
* @param _offset_ string |
| 3048 |
* @return ReturnType |
| 3049 |
*/ |
| 3050 |
public function following ($_offset_) {} |
| 3051 |
|
| 3052 |
/** |
| 3053 |
* Set the iterator position to the first boundary before an offset |
| 3054 |
* @link http://www.php.net/manual/en/intlbreakiterator.preceding.php |
| 3055 |
* @param _offset_ string |
| 3056 |
* @return ReturnType |
| 3057 |
*/ |
| 3058 |
public function preceding ($_offset_) {} |
| 3059 |
|
| 3060 |
/** |
| 3061 |
* Tell whether an offset is a boundaryʼs offset |
| 3062 |
* @link http://www.php.net/manual/en/intlbreakiterator.isboundary.php |
| 3063 |
* @param _offset_ string |
| 3064 |
* @return ReturnType |
| 3065 |
*/ |
| 3066 |
public function isBoundary ($_offset_) {} |
| 3067 |
|
| 3068 |
/** |
| 3069 |
* Get the locale associated with the object |
| 3070 |
* @link http://www.php.net/manual/en/intlbreakiterator.getlocale.php |
| 3071 |
* @param _locale_type_ string |
| 3072 |
* @return ReturnType |
| 3073 |
*/ |
| 3074 |
public function getLocale ($_locale_type_) {} |
| 3075 |
|
| 3076 |
/** |
| 3077 |
* Create iterator for navigating fragments between boundaries |
| 3078 |
* @link http://www.php.net/manual/en/intlbreakiterator.getpartsiterator.php |
| 3079 |
* @param _key_type_ string[optional] |
| 3080 |
* @return ReturnType |
| 3081 |
*/ |
| 3082 |
public function getPartsIterator ($_key_type_ = null) {} |
| 3083 |
|
| 3084 |
/** |
| 3085 |
* Get last error code on the object |
| 3086 |
* @link http://www.php.net/manual/en/intlbreakiterator.geterrorcode.php |
| 3087 |
* @return ReturnType |
| 3088 |
*/ |
| 3089 |
public function getErrorCode () {} |
| 3090 |
|
| 3091 |
/** |
| 3092 |
* Get last error message on the object |
| 3093 |
* @link http://www.php.net/manual/en/intlbreakiterator.geterrormessage.php |
| 3094 |
* @return ReturnType |
| 3095 |
*/ |
| 3096 |
public function getErrorMessage () {} |
| 3097 |
|
| 3098 |
} |
| 3099 |
|
| 3100 |
class IntlCodePointBreakIterator extends IntlBreakIterator implements Traversable { |
| 3101 |
const DONE = -1; |
| 3102 |
const WORD_NONE = 0; |
| 3103 |
const WORD_NONE_LIMIT = 100; |
| 3104 |
const WORD_NUMBER = 100; |
| 3105 |
const WORD_NUMBER_LIMIT = 200; |
| 3106 |
const WORD_LETTER = 200; |
| 3107 |
const WORD_LETTER_LIMIT = 300; |
| 3108 |
const WORD_KANA = 300; |
| 3109 |
const WORD_KANA_LIMIT = 400; |
| 3110 |
const WORD_IDEO = 400; |
| 3111 |
const WORD_IDEO_LIMIT = 500; |
| 3112 |
const LINE_SOFT = 0; |
| 3113 |
const LINE_SOFT_LIMIT = 100; |
| 3114 |
const LINE_HARD = 100; |
| 3115 |
const LINE_HARD_LIMIT = 200; |
| 3116 |
const SENTENCE_TERM = 0; |
| 3117 |
const SENTENCE_TERM_LIMIT = 100; |
| 3118 |
const SENTENCE_SEP = 100; |
| 3119 |
const SENTENCE_SEP_LIMIT = 200; |
| 3120 |
|
| 3121 |
|
| 3122 |
/** |
| 3123 |
* Get last code point passed over after advancing or receding the iterator |
| 3124 |
* @link http://www.php.net/manual/en/intlcodepointbreakiterator.getlastcodepoint.php |
| 3125 |
* @return ReturnType |
| 3126 |
*/ |
| 3127 |
public function getLastCodePoint () {} |
| 3128 |
|
| 3129 |
/** |
| 3130 |
* Private constructor for disallowing instantiation |
| 3131 |
* @link http://www.php.net/manual/en/intlbreakiterator.construct.php |
| 3132 |
*/ |
| 3133 |
private function __construct () {} |
| 3134 |
|
| 3135 |
/** |
| 3136 |
* Create break iterator for word breaks |
| 3137 |
* @link http://www.php.net/manual/en/intlbreakiterator.createwordinstance.php |
| 3138 |
* @param _locale_ string[optional] |
| 3139 |
* @return ReturnType |
| 3140 |
*/ |
| 3141 |
public static function createWordInstance ($_locale_ = null) {} |
| 3142 |
|
| 3143 |
/** |
| 3144 |
* Create break iterator for logically possible line breaks |
| 3145 |
* @link http://www.php.net/manual/en/intlbreakiterator.createlineinstance.php |
| 3146 |
* @param _locale_ string[optional] |
| 3147 |
* @return ReturnType |
| 3148 |
*/ |
| 3149 |
public static function createLineInstance ($_locale_ = null) {} |
| 3150 |
|
| 3151 |
/** |
| 3152 |
* Create break iterator for boundaries of combining character sequences |
| 3153 |
* @link http://www.php.net/manual/en/intlbreakiterator.createcharacterinstance.php |
| 3154 |
* @param _locale_ string[optional] |
| 3155 |
* @return ReturnType |
| 3156 |
*/ |
| 3157 |
public static function createCharacterInstance ($_locale_ = null) {} |
| 3158 |
|
| 3159 |
/** |
| 3160 |
* Create break iterator for sentence breaks |
| 3161 |
* @link http://www.php.net/manual/en/intlbreakiterator.createsentenceinstance.php |
| 3162 |
* @param _locale_ string[optional] |
| 3163 |
* @return ReturnType |
| 3164 |
*/ |
| 3165 |
public static function createSentenceInstance ($_locale_ = null) {} |
| 3166 |
|
| 3167 |
/** |
| 3168 |
* Create break iterator for title-casing breaks |
| 3169 |
* @link http://www.php.net/manual/en/intlbreakiterator.createtitleinstance.php |
| 3170 |
* @param _locale_ string[optional] |
| 3171 |
* @return ReturnType |
| 3172 |
*/ |
| 3173 |
public static function createTitleInstance ($_locale_ = null) {} |
| 3174 |
|
| 3175 |
/** |
| 3176 |
* Create break iterator for boundaries of code points |
| 3177 |
* @link http://www.php.net/manual/en/intlbreakiterator.createcodepointinstance.php |
| 3178 |
* @return ReturnType |
| 3179 |
*/ |
| 3180 |
public static function createCodePointInstance () {} |
| 3181 |
|
| 3182 |
/** |
| 3183 |
* Get the text being scanned |
| 3184 |
* @link http://www.php.net/manual/en/intlbreakiterator.gettext.php |
| 3185 |
* @return ReturnType |
| 3186 |
*/ |
| 3187 |
public function getText () {} |
| 3188 |
|
| 3189 |
/** |
| 3190 |
* Set the text being scanned |
| 3191 |
* @link http://www.php.net/manual/en/intlbreakiterator.settext.php |
| 3192 |
* @param _text_ string |
| 3193 |
* @return ReturnType |
| 3194 |
*/ |
| 3195 |
public function setText ($_text_) {} |
| 3196 |
|
| 3197 |
/** |
| 3198 |
* Set position to the first character in the text |
| 3199 |
* @link http://www.php.net/manual/en/intlbreakiterator.first.php |
| 3200 |
* @return ReturnType |
| 3201 |
*/ |
| 3202 |
public function first () {} |
| 3203 |
|
| 3204 |
/** |
| 3205 |
* Set the iterator position to index beyond the last character |
| 3206 |
* @link http://www.php.net/manual/en/intlbreakiterator.last.php |
| 3207 |
* @return ReturnType |
| 3208 |
*/ |
| 3209 |
public function last () {} |
| 3210 |
|
| 3211 |
/** |
| 3212 |
* Set the iterator position to the boundary immediately before the current |
| 3213 |
* @link http://www.php.net/manual/en/intlbreakiterator.previous.php |
| 3214 |
* @return ReturnType |
| 3215 |
*/ |
| 3216 |
public function previous () {} |
| 3217 |
|
| 3218 |
/** |
| 3219 |
* Advance the iterator the next boundary |
| 3220 |
* @link http://www.php.net/manual/en/intlbreakiterator.next.php |
| 3221 |
* @param _offset_ string[optional] |
| 3222 |
* @return ReturnType |
| 3223 |
*/ |
| 3224 |
public function next ($_offset_ = null) {} |
| 3225 |
|
| 3226 |
/** |
| 3227 |
* Get index of current position |
| 3228 |
* @link http://www.php.net/manual/en/intlbreakiterator.current.php |
| 3229 |
* @return ReturnType |
| 3230 |
*/ |
| 3231 |
public function current () {} |
| 3232 |
|
| 3233 |
/** |
| 3234 |
* Advance the iterator to the first boundary following specified offset |
| 3235 |
* @link http://www.php.net/manual/en/intlbreakiterator.following.php |
| 3236 |
* @param _offset_ string |
| 3237 |
* @return ReturnType |
| 3238 |
*/ |
| 3239 |
public function following ($_offset_) {} |
| 3240 |
|
| 3241 |
/** |
| 3242 |
* Set the iterator position to the first boundary before an offset |
| 3243 |
* @link http://www.php.net/manual/en/intlbreakiterator.preceding.php |
| 3244 |
* @param _offset_ string |
| 3245 |
* @return ReturnType |
| 3246 |
*/ |
| 3247 |
public function preceding ($_offset_) {} |
| 3248 |
|
| 3249 |
/** |
| 3250 |
* Tell whether an offset is a boundaryʼs offset |
| 3251 |
* @link http://www.php.net/manual/en/intlbreakiterator.isboundary.php |
| 3252 |
* @param _offset_ string |
| 3253 |
* @return ReturnType |
| 3254 |
*/ |
| 3255 |
public function isBoundary ($_offset_) {} |
| 3256 |
|
| 3257 |
/** |
| 3258 |
* Get the locale associated with the object |
| 3259 |
* @link http://www.php.net/manual/en/intlbreakiterator.getlocale.php |
| 3260 |
* @param _locale_type_ string |
| 3261 |
* @return ReturnType |
| 3262 |
*/ |
| 3263 |
public function getLocale ($_locale_type_) {} |
| 3264 |
|
| 3265 |
/** |
| 3266 |
* Create iterator for navigating fragments between boundaries |
| 3267 |
* @link http://www.php.net/manual/en/intlbreakiterator.getpartsiterator.php |
| 3268 |
* @param _key_type_ string[optional] |
| 3269 |
* @return ReturnType |
| 3270 |
*/ |
| 3271 |
public function getPartsIterator ($_key_type_ = null) {} |
| 3272 |
|
| 3273 |
/** |
| 3274 |
* Get last error code on the object |
| 3275 |
* @link http://www.php.net/manual/en/intlbreakiterator.geterrorcode.php |
| 3276 |
* @return ReturnType |
| 3277 |
*/ |
| 3278 |
public function getErrorCode () {} |
| 3279 |
|
| 3280 |
/** |
| 3281 |
* Get last error message on the object |
| 3282 |
* @link http://www.php.net/manual/en/intlbreakiterator.geterrormessage.php |
| 3283 |
* @return ReturnType |
| 3284 |
*/ |
| 3285 |
public function getErrorMessage () {} |
| 3286 |
|
| 3287 |
} |
| 3288 |
|
| 3289 |
class IntlPartsIterator extends IntlIterator implements Traversable, Iterator { |
| 3290 |
const KEY_SEQUENTIAL = 0; |
| 3291 |
const KEY_LEFT = 1; |
| 3292 |
const KEY_RIGHT = 2; |
| 3293 |
|
| 3294 |
|
| 3295 |
/** |
| 3296 |
* Get IntlBreakIterator backing this parts iterator |
| 3297 |
* @link http://www.php.net/manual/en/intlpartsiterator.getbreakiterator.php |
| 3298 |
* @return ReturnType |
| 3299 |
*/ |
| 3300 |
public function getBreakIterator () {} |
| 3301 |
|
| 3302 |
/** |
| 3303 |
* Get the current element |
| 3304 |
* @link http://www.php.net/manual/en/intliterator.current.php |
| 3305 |
* @return ReturnType |
| 3306 |
*/ |
| 3307 |
public function current () {} |
| 3308 |
|
| 3309 |
/** |
| 3310 |
* Get the current key |
| 3311 |
* @link http://www.php.net/manual/en/intliterator.key.php |
| 3312 |
* @return ReturnType |
| 3313 |
*/ |
| 3314 |
public function key () {} |
| 3315 |
|
| 3316 |
/** |
| 3317 |
* Move forward to the next element |
| 3318 |
* @link http://www.php.net/manual/en/intliterator.next.php |
| 3319 |
* @return ReturnType |
| 3320 |
*/ |
| 3321 |
public function next () {} |
| 3322 |
|
| 3323 |
/** |
| 3324 |
* Rewind the iterator to the first element |
| 3325 |
* @link http://www.php.net/manual/en/intliterator.rewind.php |
| 3326 |
* @return ReturnType |
| 3327 |
*/ |
| 3328 |
public function rewind () {} |
| 3329 |
|
| 3330 |
/** |
| 3331 |
* Check if current position is valid |
| 3332 |
* @link http://www.php.net/manual/en/intliterator.valid.php |
| 3333 |
* @return ReturnType |
| 3334 |
*/ |
| 3335 |
public function valid () {} |
| 3336 |
|
| 3337 |
} |
| 3338 |
|
| 3339 |
class UConverter { |
| 3340 |
const REASON_UNASSIGNED = 0; |
| 3341 |
const REASON_ILLEGAL = 1; |
| 3342 |
const REASON_IRREGULAR = 2; |
| 3343 |
const REASON_RESET = 3; |
| 3344 |
const REASON_CLOSE = 4; |
| 3345 |
const REASON_CLONE = 5; |
| 3346 |
const UNSUPPORTED_CONVERTER = -1; |
| 3347 |
const SBCS = 0; |
| 3348 |
const DBCS = 1; |
| 3349 |
const MBCS = 2; |
| 3350 |
const LATIN_1 = 3; |
| 3351 |
const UTF8 = 4; |
| 3352 |
const UTF16_BigEndian = 5; |
| 3353 |
const UTF16_LittleEndian = 6; |
| 3354 |
const UTF32_BigEndian = 7; |
| 3355 |
const UTF32_LittleEndian = 8; |
| 3356 |
const EBCDIC_STATEFUL = 9; |
| 3357 |
const ISO_2022 = 10; |
| 3358 |
const LMBCS_1 = 11; |
| 3359 |
const LMBCS_2 = 12; |
| 3360 |
const LMBCS_3 = 13; |
| 3361 |
const LMBCS_4 = 14; |
| 3362 |
const LMBCS_5 = 15; |
| 3363 |
const LMBCS_6 = 16; |
| 3364 |
const LMBCS_8 = 17; |
| 3365 |
const LMBCS_11 = 18; |
| 3366 |
const LMBCS_16 = 19; |
| 3367 |
const LMBCS_17 = 20; |
| 3368 |
const LMBCS_18 = 21; |
| 3369 |
const LMBCS_19 = 22; |
| 3370 |
const LMBCS_LAST = 22; |
| 3371 |
const HZ = 23; |
| 3372 |
const SCSU = 24; |
| 3373 |
const ISCII = 25; |
| 3374 |
const US_ASCII = 26; |
| 3375 |
const UTF7 = 27; |
| 3376 |
const BOCU1 = 28; |
| 3377 |
const UTF16 = 29; |
| 3378 |
const UTF32 = 30; |
| 3379 |
const CESU8 = 31; |
| 3380 |
const IMAP_MAILBOX = 32; |
| 3381 |
|
| 3382 |
|
| 3383 |
/** |
| 3384 |
* Create UConverter object |
| 3385 |
* @link http://www.php.net/manual/en/uconverter.construct.php |
| 3386 |
* @param destination_encoding[optional] |
| 3387 |
* @param source_encoding[optional] |
| 3388 |
*/ |
| 3389 |
public function __construct ($destination_encoding, $source_encoding) {} |
| 3390 |
|
| 3391 |
/** |
| 3392 |
* Set the source encoding |
| 3393 |
* @link http://www.php.net/manual/en/uconverter.setsourceencoding.php |
| 3394 |
* @param encoding string <p> |
| 3395 |
* |
| 3396 |
* </p> |
| 3397 |
* @return void |
| 3398 |
*/ |
| 3399 |
public function setSourceEncoding ($encoding) {} |
| 3400 |
|
| 3401 |
/** |
| 3402 |
* Set the destination encoding |
| 3403 |
* @link http://www.php.net/manual/en/uconverter.setdestinationencoding.php |
| 3404 |
* @param encoding string <p> |
| 3405 |
* |
| 3406 |
* </p> |
| 3407 |
* @return void |
| 3408 |
*/ |
| 3409 |
public function setDestinationEncoding ($encoding) {} |
| 3410 |
|
| 3411 |
/** |
| 3412 |
* Get the source encoding |
| 3413 |
* @link http://www.php.net/manual/en/uconverter.getsourceencoding.php |
| 3414 |
* @return string |
| 3415 |
*/ |
| 3416 |
public function getSourceEncoding () {} |
| 3417 |
|
| 3418 |
/** |
| 3419 |
* Get the destination encoding |
| 3420 |
* @link http://www.php.net/manual/en/uconverter.getdestinationencoding.php |
| 3421 |
* @return string |
| 3422 |
*/ |
| 3423 |
public function getDestinationEncoding () {} |
| 3424 |
|
| 3425 |
/** |
| 3426 |
* Get the source convertor type |
| 3427 |
* @link http://www.php.net/manual/en/uconverter.getsourcetype.php |
| 3428 |
* @return integer |
| 3429 |
*/ |
| 3430 |
public function getSourceType () {} |
| 3431 |
|
| 3432 |
/** |
| 3433 |
* Get the destination converter type |
| 3434 |
* @link http://www.php.net/manual/en/uconverter.getdestinationtype.php |
| 3435 |
* @return integer |
| 3436 |
*/ |
| 3437 |
public function getDestinationType () {} |
| 3438 |
|
| 3439 |
/** |
| 3440 |
* Get substitution chars |
| 3441 |
* @link http://www.php.net/manual/en/uconverter.getsubstchars.php |
| 3442 |
* @return string |
| 3443 |
*/ |
| 3444 |
public function getSubstChars () {} |
| 3445 |
|
| 3446 |
/** |
| 3447 |
* Set the substitution chars |
| 3448 |
* @link http://www.php.net/manual/en/uconverter.setsubstchars.php |
| 3449 |
* @param chars string <p> |
| 3450 |
* |
| 3451 |
* </p> |
| 3452 |
* @return void |
| 3453 |
*/ |
| 3454 |
public function setSubstChars ($chars) {} |
| 3455 |
|
| 3456 |
/** |
| 3457 |
* Default "to" callback function |
| 3458 |
* @link http://www.php.net/manual/en/uconverter.toucallback.php |
| 3459 |
* @param reason integer <p> |
| 3460 |
* |
| 3461 |
* </p> |
| 3462 |
* @param source string <p> |
| 3463 |
* |
| 3464 |
* </p> |
| 3465 |
* @param codeUnits string <p> |
| 3466 |
* |
| 3467 |
* </p> |
| 3468 |
* @param error integer <p> |
| 3469 |
* |
| 3470 |
* </p> |
| 3471 |
* @return mixed |
| 3472 |
*/ |
| 3473 |
public function toUCallback ($reason, $source, $codeUnits, &$error) {} |
| 3474 |
|
| 3475 |
/** |
| 3476 |
* Default "from" callback function |
| 3477 |
* @link http://www.php.net/manual/en/uconverter.fromucallback.php |
| 3478 |
* @param reason integer <p> |
| 3479 |
* |
| 3480 |
* </p> |
| 3481 |
* @param source string <p> |
| 3482 |
* |
| 3483 |
* </p> |
| 3484 |
* @param codePoint string <p> |
| 3485 |
* |
| 3486 |
* </p> |
| 3487 |
* @param error integer <p> |
| 3488 |
* |
| 3489 |
* </p> |
| 3490 |
* @return mixed |
| 3491 |
*/ |
| 3492 |
public function fromUCallback ($reason, $source, $codePoint, &$error) {} |
| 3493 |
|
| 3494 |
/** |
| 3495 |
* Convert string from one charset to another |
| 3496 |
* @link http://www.php.net/manual/en/uconverter.convert.php |
| 3497 |
* @param str string <p> |
| 3498 |
* |
| 3499 |
* </p> |
| 3500 |
* @param reverse bool[optional] <p> |
| 3501 |
* |
| 3502 |
* </p> |
| 3503 |
* @return string |
| 3504 |
*/ |
| 3505 |
public function convert ($str, $reverse = null) {} |
| 3506 |
|
| 3507 |
/** |
| 3508 |
* Convert string from one charset to another |
| 3509 |
* @link http://www.php.net/manual/en/uconverter.transcode.php |
| 3510 |
* @param str string <p> |
| 3511 |
* |
| 3512 |
* </p> |
| 3513 |
* @param toEncoding string <p> |
| 3514 |
* |
| 3515 |
* </p> |
| 3516 |
* @param fromEncoding string <p> |
| 3517 |
* |
| 3518 |
* </p> |
| 3519 |
* @param options array[optional] <p> |
| 3520 |
* |
| 3521 |
* </p> |
| 3522 |
* @return string |
| 3523 |
*/ |
| 3524 |
public static function transcode ($str, $toEncoding, $fromEncoding, array $options = null) {} |
| 3525 |
|
| 3526 |
/** |
| 3527 |
* Get last error code on the object |
| 3528 |
* @link http://www.php.net/manual/en/uconverter.geterrorcode.php |
| 3529 |
* @return integer |
| 3530 |
*/ |
| 3531 |
public function getErrorCode () {} |
| 3532 |
|
| 3533 |
/** |
| 3534 |
* Get last error message on the object |
| 3535 |
* @link http://www.php.net/manual/en/uconverter.geterrormessage.php |
| 3536 |
* @return string |
| 3537 |
*/ |
| 3538 |
public function getErrorMessage () {} |
| 3539 |
|
| 3540 |
/** |
| 3541 |
* Get string representation of the callback reason |
| 3542 |
* @link http://www.php.net/manual/en/uconverter.reasontext.php |
| 3543 |
* @param reason integer[optional] <p> |
| 3544 |
* |
| 3545 |
* </p> |
| 3546 |
* @return string |
| 3547 |
*/ |
| 3548 |
public static function reasonText ($reason = null) {} |
| 3549 |
|
| 3550 |
/** |
| 3551 |
* Get the available canonical converter names |
| 3552 |
* @link http://www.php.net/manual/en/uconverter.getavailable.php |
| 3553 |
* @return array |
| 3554 |
*/ |
| 3555 |
public static function getAvailable () {} |
| 3556 |
|
| 3557 |
/** |
| 3558 |
* Get the aliases of the given name |
| 3559 |
* @link http://www.php.net/manual/en/uconverter.getaliases.php |
| 3560 |
* @param name string[optional] <p> |
| 3561 |
* |
| 3562 |
* </p> |
| 3563 |
* @return array |
| 3564 |
*/ |
| 3565 |
public static function getAliases ($name = null) {} |
| 3566 |
|
| 3567 |
/** |
| 3568 |
* Get standards associated to converter names |
| 3569 |
* @link http://www.php.net/manual/en/uconverter.getstandards.php |
| 3570 |
* @return array |
| 3571 |
*/ |
| 3572 |
public static function getStandards () {} |
| 3573 |
|
| 3574 |
} |
| 3575 |
|
| 3576 |
/** |
| 3577 |
* @param arg1 |
| 3578 |
*/ |
| 3579 |
function collator_create ($arg1) {} |
| 3580 |
|
| 3581 |
/** |
| 3582 |
* @param object Collator |
| 3583 |
* @param arg1 |
| 3584 |
* @param arg2 |
| 3585 |
*/ |
| 3586 |
function collator_compare (Collator $object, $arg1, $arg2) {} |
| 3587 |
|
| 3588 |
/** |
| 3589 |
* @param object Collator |
| 3590 |
* @param arg1 |
| 3591 |
*/ |
| 3592 |
function collator_get_attribute (Collator $object, $arg1) {} |
| 3593 |
|
| 3594 |
/** |
| 3595 |
* @param object Collator |
| 3596 |
* @param arg1 |
| 3597 |
* @param arg2 |
| 3598 |
*/ |
| 3599 |
function collator_set_attribute (Collator $object, $arg1, $arg2) {} |
| 3600 |
|
| 3601 |
/** |
| 3602 |
* @param object Collator |
| 3603 |
*/ |
| 3604 |
function collator_get_strength (Collator $object) {} |
| 3605 |
|
| 3606 |
/** |
| 3607 |
* @param object Collator |
| 3608 |
* @param arg1 |
| 3609 |
*/ |
| 3610 |
function collator_set_strength (Collator $object, $arg1) {} |
| 3611 |
|
| 3612 |
/** |
| 3613 |
* @param object Collator |
| 3614 |
* @param arr |
| 3615 |
* @param sort_flags[optional] |
| 3616 |
*/ |
| 3617 |
function collator_sort (Collator $objectarray , &$arr, $sort_flags) {} |
| 3618 |
|
| 3619 |
/** |
| 3620 |
* @param object Collator |
| 3621 |
* @param arr |
| 3622 |
* @param sort_flags[optional] |
| 3623 |
*/ |
| 3624 |
function collator_sort_with_sort_keys (Collator $objectarray , &$arr, $sort_flags) {} |
| 3625 |
|
| 3626 |
/** |
| 3627 |
* @param object Collator |
| 3628 |
* @param arr |
| 3629 |
* @param sort_flags[optional] |
| 3630 |
*/ |
| 3631 |
function collator_asort (Collator $objectarray , &$arr, $sort_flags) {} |
| 3632 |
|
| 3633 |
/** |
| 3634 |
* @param object Collator |
| 3635 |
* @param arg1 |
| 3636 |
*/ |
| 3637 |
function collator_get_locale (Collator $object, $arg1) {} |
| 3638 |
|
| 3639 |
/** |
| 3640 |
* @param object Collator |
| 3641 |
*/ |
| 3642 |
function collator_get_error_code (Collator $object) {} |
| 3643 |
|
| 3644 |
/** |
| 3645 |
* @param object Collator |
| 3646 |
*/ |
| 3647 |
function collator_get_error_message (Collator $object) {} |
| 3648 |
|
| 3649 |
/** |
| 3650 |
* @param object Collator |
| 3651 |
* @param arg1 |
| 3652 |
* @param arg2 |
| 3653 |
*/ |
| 3654 |
function collator_get_sort_key (Collator $object, $arg1, $arg2) {} |
| 3655 |
|
| 3656 |
/** |
| 3657 |
* @param locale |
| 3658 |
* @param style |
| 3659 |
* @param pattern[optional] |
| 3660 |
*/ |
| 3661 |
function numfmt_create ($locale, $style, $pattern) {} |
| 3662 |
|
| 3663 |
/** |
| 3664 |
* @param nf |
| 3665 |
* @param num |
| 3666 |
* @param type[optional] |
| 3667 |
*/ |
| 3668 |
function numfmt_format ($nf, $num, $type) {} |
| 3669 |
|
| 3670 |
/** |
| 3671 |
* @param formatter |
| 3672 |
* @param string |
| 3673 |
* @param type[optional] |
| 3674 |
* @param position[optional] |
| 3675 |
*/ |
| 3676 |
function numfmt_parse ($formatter, $string, $type, &$position) {} |
| 3677 |
|
| 3678 |
/** |
| 3679 |
* @param nf |
| 3680 |
* @param num |
| 3681 |
* @param currency |
| 3682 |
*/ |
| 3683 |
function numfmt_format_currency ($nf, $num, $currency) {} |
| 3684 |
|
| 3685 |
/** |
| 3686 |
* @param formatter |
| 3687 |
* @param string |
| 3688 |
* @param currency |
| 3689 |
* @param position[optional] |
| 3690 |
*/ |
| 3691 |
function numfmt_parse_currency ($formatter, $string, &$currency, &$position) {} |
| 3692 |
|
| 3693 |
/** |
| 3694 |
* @param nf |
| 3695 |
* @param attr |
| 3696 |
* @param value |
| 3697 |
*/ |
| 3698 |
function numfmt_set_attribute ($nf, $attr, $value) {} |
| 3699 |
|
| 3700 |
/** |
| 3701 |
* @param nf |
| 3702 |
* @param attr |
| 3703 |
*/ |
| 3704 |
function numfmt_get_attribute ($nf, $attr) {} |
| 3705 |
|
| 3706 |
/** |
| 3707 |
* @param nf |
| 3708 |
* @param attr |
| 3709 |
* @param value |
| 3710 |
*/ |
| 3711 |
function numfmt_set_text_attribute ($nf, $attr, $value) {} |
| 3712 |
|
| 3713 |
/** |
| 3714 |
* @param nf |
| 3715 |
* @param attr |
| 3716 |
*/ |
| 3717 |
function numfmt_get_text_attribute ($nf, $attr) {} |
| 3718 |
|
| 3719 |
/** |
| 3720 |
* @param nf |
| 3721 |
* @param attr |
| 3722 |
* @param symbol |
| 3723 |
*/ |
| 3724 |
function numfmt_set_symbol ($nf, $attr, $symbol) {} |
| 3725 |
|
| 3726 |
/** |
| 3727 |
* @param nf |
| 3728 |
* @param attr |
| 3729 |
*/ |
| 3730 |
function numfmt_get_symbol ($nf, $attr) {} |
| 3731 |
|
| 3732 |
/** |
| 3733 |
* @param nf |
| 3734 |
* @param pattern |
| 3735 |
*/ |
| 3736 |
function numfmt_set_pattern ($nf, $pattern) {} |
| 3737 |
|
| 3738 |
/** |
| 3739 |
* @param nf |
| 3740 |
*/ |
| 3741 |
function numfmt_get_pattern ($nf) {} |
| 3742 |
|
| 3743 |
/** |
| 3744 |
* @param nf |
| 3745 |
* @param type[optional] |
| 3746 |
*/ |
| 3747 |
function numfmt_get_locale ($nf, $type) {} |
| 3748 |
|
| 3749 |
/** |
| 3750 |
* @param nf |
| 3751 |
*/ |
| 3752 |
function numfmt_get_error_code ($nf) {} |
| 3753 |
|
| 3754 |
/** |
| 3755 |
* @param nf |
| 3756 |
*/ |
| 3757 |
function numfmt_get_error_message ($nf) {} |
| 3758 |
|
| 3759 |
/** |
| 3760 |
* @param input |
| 3761 |
* @param form[optional] |
| 3762 |
*/ |
| 3763 |
function normalizer_normalize ($input, $form) {} |
| 3764 |
|
| 3765 |
/** |
| 3766 |
* @param input |
| 3767 |
* @param form[optional] |
| 3768 |
*/ |
| 3769 |
function normalizer_is_normalized ($input, $form) {} |
| 3770 |
|
| 3771 |
function locale_get_default () {} |
| 3772 |
|
| 3773 |
/** |
| 3774 |
* @param arg1 |
| 3775 |
*/ |
| 3776 |
function locale_set_default ($arg1) {} |
| 3777 |
|
| 3778 |
/** |
| 3779 |
* @param arg1 |
| 3780 |
*/ |
| 3781 |
function locale_get_primary_language ($arg1) {} |
| 3782 |
|
| 3783 |
/** |
| 3784 |
* @param arg1 |
| 3785 |
*/ |
| 3786 |
function locale_get_script ($arg1) {} |
| 3787 |
|
| 3788 |
/** |
| 3789 |
* @param arg1 |
| 3790 |
*/ |
| 3791 |
function locale_get_region ($arg1) {} |
| 3792 |
|
| 3793 |
/** |
| 3794 |
* @param arg1 |
| 3795 |
*/ |
| 3796 |
function locale_get_keywords ($arg1) {} |
| 3797 |
|
| 3798 |
/** |
| 3799 |
* @param arg1 |
| 3800 |
* @param arg2 |
| 3801 |
*/ |
| 3802 |
function locale_get_display_script ($arg1, $arg2) {} |
| 3803 |
|
| 3804 |
/** |
| 3805 |
* @param arg1 |
| 3806 |
* @param arg2 |
| 3807 |
*/ |
| 3808 |
function locale_get_display_region ($arg1, $arg2) {} |
| 3809 |
|
| 3810 |
/** |
| 3811 |
* @param arg1 |
| 3812 |
* @param arg2 |
| 3813 |
*/ |
| 3814 |
function locale_get_display_name ($arg1, $arg2) {} |
| 3815 |
|
| 3816 |
/** |
| 3817 |
* @param arg1 |
| 3818 |
* @param arg2 |
| 3819 |
*/ |
| 3820 |
function locale_get_display_language ($arg1, $arg2) {} |
| 3821 |
|
| 3822 |
/** |
| 3823 |
* @param arg1 |
| 3824 |
* @param arg2 |
| 3825 |
*/ |
| 3826 |
function locale_get_display_variant ($arg1, $arg2) {} |
| 3827 |
|
| 3828 |
/** |
| 3829 |
* @param arg1 |
| 3830 |
*/ |
| 3831 |
function locale_compose ($arg1) {} |
| 3832 |
|
| 3833 |
/** |
| 3834 |
* @param arg1 |
| 3835 |
*/ |
| 3836 |
function locale_parse ($arg1) {} |
| 3837 |
|
| 3838 |
/** |
| 3839 |
* @param arg1 |
| 3840 |
*/ |
| 3841 |
function locale_get_all_variants ($arg1) {} |
| 3842 |
|
| 3843 |
/** |
| 3844 |
* @param arg1 |
| 3845 |
* @param arg2 |
| 3846 |
* @param arg3 |
| 3847 |
*/ |
| 3848 |
function locale_filter_matches ($arg1, $arg2, $arg3) {} |
| 3849 |
|
| 3850 |
/** |
| 3851 |
* @param arg1 |
| 3852 |
*/ |
| 3853 |
function locale_canonicalize ($arg1) {} |
| 3854 |
|
| 3855 |
/** |
| 3856 |
* @param arg1 |
| 3857 |
* @param arg2 |
| 3858 |
* @param arg3 |
| 3859 |
* @param arg4 |
| 3860 |
*/ |
| 3861 |
function locale_lookup ($arg1, $arg2, $arg3, $arg4) {} |
| 3862 |
|
| 3863 |
/** |
| 3864 |
* @param arg1 |
| 3865 |
*/ |
| 3866 |
function locale_accept_from_http ($arg1) {} |
| 3867 |
|
| 3868 |
/** |
| 3869 |
* @param locale |
| 3870 |
* @param pattern |
| 3871 |
*/ |
| 3872 |
function msgfmt_create ($locale, $pattern) {} |
| 3873 |
|
| 3874 |
/** |
| 3875 |
* @param nf |
| 3876 |
* @param args |
| 3877 |
*/ |
| 3878 |
function msgfmt_format ($nf, $args) {} |
| 3879 |
|
| 3880 |
/** |
| 3881 |
* @param locale |
| 3882 |
* @param pattern |
| 3883 |
* @param args |
| 3884 |
*/ |
| 3885 |
function msgfmt_format_message ($locale, $pattern, $args) {} |
| 3886 |
|
| 3887 |
/** |
| 3888 |
* @param nf |
| 3889 |
* @param source |
| 3890 |
*/ |
| 3891 |
function msgfmt_parse ($nf, $source) {} |
| 3892 |
|
| 3893 |
/** |
| 3894 |
* @param locale |
| 3895 |
* @param pattern |
| 3896 |
* @param source |
| 3897 |
*/ |
| 3898 |
function msgfmt_parse_message ($locale, $pattern, $source) {} |
| 3899 |
|
| 3900 |
/** |
| 3901 |
* @param mf |
| 3902 |
* @param pattern |
| 3903 |
*/ |
| 3904 |
function msgfmt_set_pattern ($mf, $pattern) {} |
| 3905 |
|
| 3906 |
/** |
| 3907 |
* @param mf |
| 3908 |
*/ |
| 3909 |
function msgfmt_get_pattern ($mf) {} |
| 3910 |
|
| 3911 |
/** |
| 3912 |
* @param mf |
| 3913 |
*/ |
| 3914 |
function msgfmt_get_locale ($mf) {} |
| 3915 |
|
| 3916 |
/** |
| 3917 |
* @param nf |
| 3918 |
*/ |
| 3919 |
function msgfmt_get_error_code ($nf) {} |
| 3920 |
|
| 3921 |
/** |
| 3922 |
* @param coll |
| 3923 |
*/ |
| 3924 |
function msgfmt_get_error_message ($coll) {} |
| 3925 |
|
| 3926 |
/** |
| 3927 |
* @param locale |
| 3928 |
* @param date_type |
| 3929 |
* @param time_type |
| 3930 |
* @param timezone_str[optional] |
| 3931 |
* @param calendar[optional] |
| 3932 |
* @param pattern[optional] |
| 3933 |
*/ |
| 3934 |
function datefmt_create ($locale, $date_type, $time_type, $timezone_str, $calendar, $pattern) {} |
| 3935 |
|
| 3936 |
/** |
| 3937 |
* @param mf |
| 3938 |
*/ |
| 3939 |
function datefmt_get_datetype ($mf) {} |
| 3940 |
|
| 3941 |
/** |
| 3942 |
* @param mf |
| 3943 |
*/ |
| 3944 |
function datefmt_get_timetype ($mf) {} |
| 3945 |
|
| 3946 |
/** |
| 3947 |
* @param mf |
| 3948 |
*/ |
| 3949 |
function datefmt_get_calendar ($mf) {} |
| 3950 |
|
| 3951 |
/** |
| 3952 |
* @param mf |
| 3953 |
*/ |
| 3954 |
function datefmt_get_calendar_object ($mf) {} |
| 3955 |
|
| 3956 |
/** |
| 3957 |
* @param mf |
| 3958 |
* @param calendar |
| 3959 |
*/ |
| 3960 |
function datefmt_set_calendar ($mf, $calendar) {} |
| 3961 |
|
| 3962 |
/** |
| 3963 |
* @param mf |
| 3964 |
*/ |
| 3965 |
function datefmt_get_locale ($mf) {} |
| 3966 |
|
| 3967 |
/** |
| 3968 |
* @param mf |
| 3969 |
*/ |
| 3970 |
function datefmt_get_timezone_id ($mf) {} |
| 3971 |
|
| 3972 |
/** |
| 3973 |
* @param mf |
| 3974 |
* @param timezone |
| 3975 |
*/ |
| 3976 |
function datefmt_set_timezone_id ($mf, $timezone) {} |
| 3977 |
|
| 3978 |
/** |
| 3979 |
* @param mf |
| 3980 |
*/ |
| 3981 |
function datefmt_get_timezone ($mf) {} |
| 3982 |
|
| 3983 |
/** |
| 3984 |
* @param mf |
| 3985 |
* @param timezone |
| 3986 |
*/ |
| 3987 |
function datefmt_set_timezone ($mf, $timezone) {} |
| 3988 |
|
| 3989 |
/** |
| 3990 |
* @param mf |
| 3991 |
*/ |
| 3992 |
function datefmt_get_pattern ($mf) {} |
| 3993 |
|
| 3994 |
/** |
| 3995 |
* @param mf |
| 3996 |
* @param pattern |
| 3997 |
*/ |
| 3998 |
function datefmt_set_pattern ($mf, $pattern) {} |
| 3999 |
|
| 4000 |
/** |
| 4001 |
* @param mf |
| 4002 |
*/ |
| 4003 |
function datefmt_is_lenient ($mf) {} |
| 4004 |
|
| 4005 |
/** |
| 4006 |
* @param mf |
| 4007 |
*/ |
| 4008 |
function datefmt_set_lenient ($mf) {} |
| 4009 |
|
| 4010 |
/** |
| 4011 |
* @param args[optional] |
| 4012 |
* @param array[optional] |
| 4013 |
*/ |
| 4014 |
function datefmt_format ($args, $array) {} |
| 4015 |
|
| 4016 |
/** |
| 4017 |
* @param object |
| 4018 |
* @param format[optional] |
| 4019 |
* @param locale[optional] |
| 4020 |
*/ |
| 4021 |
function datefmt_format_object ($object, $format, $locale) {} |
| 4022 |
|
| 4023 |
/** |
| 4024 |
* @param formatter |
| 4025 |
* @param string |
| 4026 |
* @param position[optional] |
| 4027 |
*/ |
| 4028 |
function datefmt_parse ($formatter, $string, &$position) {} |
| 4029 |
|
| 4030 |
/** |
| 4031 |
* @param formatter |
| 4032 |
* @param string |
| 4033 |
* @param position[optional] |
| 4034 |
*/ |
| 4035 |
function datefmt_localtime ($formatter, $string, &$position) {} |
| 4036 |
|
| 4037 |
/** |
| 4038 |
* @param nf |
| 4039 |
*/ |
| 4040 |
function datefmt_get_error_code ($nf) {} |
| 4041 |
|
| 4042 |
/** |
| 4043 |
* @param coll |
| 4044 |
*/ |
| 4045 |
function datefmt_get_error_message ($coll) {} |
| 4046 |
|
| 4047 |
/** |
| 4048 |
* Get string length in grapheme units |
| 4049 |
* @link http://www.php.net/manual/en/function.grapheme-strlen.php |
| 4050 |
* @param input string <p> |
| 4051 |
* The string being measured for length. It must be a valid UTF-8 string. |
| 4052 |
* </p> |
| 4053 |
* @return int The length of the string on success, and 0 if the string is empty. |
| 4054 |
*/ |
| 4055 |
function grapheme_strlen ($input) {} |
| 4056 |
|
| 4057 |
/** |
| 4058 |
* Find position (in grapheme units) of first occurrence of a string |
| 4059 |
* @link http://www.php.net/manual/en/function.grapheme-strpos.php |
| 4060 |
* @param haystack string <p> |
| 4061 |
* The string to look in. Must be valid UTF-8. |
| 4062 |
* </p> |
| 4063 |
* @param needle string <p> |
| 4064 |
* The string to look for. Must be valid UTF-8. |
| 4065 |
* </p> |
| 4066 |
* @param offset int[optional] <p> |
| 4067 |
* The optional $offset parameter allows you to specify where in $haystack to |
| 4068 |
* start searching as an offset in grapheme units (not bytes or characters). |
| 4069 |
* The position returned is still relative to the beginning of haystack |
| 4070 |
* regardless of the value of $offset. |
| 4071 |
* </p> |
| 4072 |
* @return int the position as an integer. If needle is not found, strpos() will return boolean FALSE. |
| 4073 |
*/ |
| 4074 |
function grapheme_strpos ($haystack, $needle, $offset = null) {} |
| 4075 |
|
| 4076 |
/** |
| 4077 |
* Find position (in grapheme units) of first occurrence of a case-insensitive string |
| 4078 |
* @link http://www.php.net/manual/en/function.grapheme-stripos.php |
| 4079 |
* @param haystack string <p> |
| 4080 |
* The string to look in. Must be valid UTF-8. |
| 4081 |
* </p> |
| 4082 |
* @param needle string <p> |
| 4083 |
* The string to look for. Must be valid UTF-8. |
| 4084 |
* </p> |
| 4085 |
* @param offset int[optional] <p> |
| 4086 |
* The optional $offset parameter allows you to specify where in haystack to |
| 4087 |
* start searching as an offset in grapheme units (not bytes or characters). |
| 4088 |
* The position returned is still relative to the beginning of haystack |
| 4089 |
* regardless of the value of $offset. |
| 4090 |
* </p> |
| 4091 |
* @return int the position as an integer. If needle is not found, grapheme_stripos() will return boolean FALSE. |
| 4092 |
*/ |
| 4093 |
function grapheme_stripos ($haystack, $needle, $offset = null) {} |
| 4094 |
|
| 4095 |
/** |
| 4096 |
* Find position (in grapheme units) of last occurrence of a string |
| 4097 |
* @link http://www.php.net/manual/en/function.grapheme-strrpos.php |
| 4098 |
* @param haystack string <p> |
| 4099 |
* The string to look in. Must be valid UTF-8. |
| 4100 |
* </p> |
| 4101 |
* @param needle string <p> |
| 4102 |
* The string to look for. Must be valid UTF-8. |
| 4103 |
* </p> |
| 4104 |
* @param offset int[optional] <p> |
| 4105 |
* The optional $offset parameter allows you to specify where in $haystack to |
| 4106 |
* start searching as an offset in grapheme units (not bytes or characters). |
| 4107 |
* The position returned is still relative to the beginning of haystack |
| 4108 |
* regardless of the value of $offset. |
| 4109 |
* </p> |
| 4110 |
* @return int the position as an integer. If needle is not found, grapheme_strrpos() will return boolean FALSE. |
| 4111 |
*/ |
| 4112 |
function grapheme_strrpos ($haystack, $needle, $offset = null) {} |
| 4113 |
|
| 4114 |
/** |
| 4115 |
* Find position (in grapheme units) of last occurrence of a case-insensitive string |
| 4116 |
* @link http://www.php.net/manual/en/function.grapheme-strripos.php |
| 4117 |
* @param haystack string <p> |
| 4118 |
* The string to look in. Must be valid UTF-8. |
| 4119 |
* </p> |
| 4120 |
* @param needle string <p> |
| 4121 |
* The string to look for. Must be valid UTF-8. |
| 4122 |
* </p> |
| 4123 |
* @param offset int[optional] <p> |
| 4124 |
* The optional $offset parameter allows you to specify where in $haystack to |
| 4125 |
* start searching as an offset in grapheme units (not bytes or characters). |
| 4126 |
* The position returned is still relative to the beginning of haystack |
| 4127 |
* regardless of the value of $offset. |
| 4128 |
* </p> |
| 4129 |
* @return int the position as an integer. If needle is not found, grapheme_strripos() will return boolean FALSE. |
| 4130 |
*/ |
| 4131 |
function grapheme_strripos ($haystack, $needle, $offset = null) {} |
| 4132 |
|
| 4133 |
/** |
| 4134 |
* Return part of a string |
| 4135 |
* @link http://www.php.net/manual/en/function.grapheme-substr.php |
| 4136 |
* @param string string <p> |
| 4137 |
* The input string. Must be valid UTF-8. |
| 4138 |
* </p> |
| 4139 |
* @param start int <p> |
| 4140 |
* Start position in default grapheme units. |
| 4141 |
* If $start is non-negative, the returned string will start at the |
| 4142 |
* $start'th position in $string, counting from zero. If $start is negative, |
| 4143 |
* the returned string will start at the $start'th grapheme unit from the |
| 4144 |
* end of string. |
| 4145 |
* </p> |
| 4146 |
* @param length int[optional] <p> |
| 4147 |
* Length in grapheme units. |
| 4148 |
* If $length is given and is positive, the string returned will contain |
| 4149 |
* at most $length grapheme units beginning from $start (depending on the |
| 4150 |
* length of string). If $length is given and is negative, then |
| 4151 |
* that many grapheme units will be omitted from the end of string (after the |
| 4152 |
* start position has been calculated when a start is negative). If $start |
| 4153 |
* denotes a position beyond this truncation, false will be returned. |
| 4154 |
* </p> |
| 4155 |
* @return int the extracted part of $string. |
| 4156 |
*/ |
| 4157 |
function grapheme_substr ($string, $start, $length = null) {} |
| 4158 |
|
| 4159 |
/** |
| 4160 |
* Returns part of haystack string from the first occurrence of needle to the end of haystack. |
| 4161 |
* @link http://www.php.net/manual/en/function.grapheme-strstr.php |
| 4162 |
* @param haystack string <p> |
| 4163 |
* The input string. Must be valid UTF-8. |
| 4164 |
* </p> |
| 4165 |
* @param needle string <p> |
| 4166 |
* The string to look for. Must be valid UTF-8. |
| 4167 |
* </p> |
| 4168 |
* @param before_needle bool[optional] <p> |
| 4169 |
* If true, grapheme_strstr() returns the part of the |
| 4170 |
* haystack before the first occurrence of the needle (excluding the needle). |
| 4171 |
* </p> |
| 4172 |
* @return string the portion of string, or FALSE if needle is not found. |
| 4173 |
*/ |
| 4174 |
function grapheme_strstr ($haystack, $needle, $before_needle = null) {} |
| 4175 |
|
| 4176 |
/** |
| 4177 |
* Returns part of haystack string from the first occurrence of case-insensitive needle to the end of haystack. |
| 4178 |
* @link http://www.php.net/manual/en/function.grapheme-stristr.php |
| 4179 |
* @param haystack string <p> |
| 4180 |
* The input string. Must be valid UTF-8. |
| 4181 |
* </p> |
| 4182 |
* @param needle string <p> |
| 4183 |
* The string to look for. Must be valid UTF-8. |
| 4184 |
* </p> |
| 4185 |
* @param before_needle bool[optional] <p> |
| 4186 |
* If true, grapheme_strstr() returns the part of the |
| 4187 |
* haystack before the first occurrence of the needle (excluding needle). |
| 4188 |
* </p> |
| 4189 |
* @return string the portion of $haystack, or FALSE if $needle is not found. |
| 4190 |
*/ |
| 4191 |
function grapheme_stristr ($haystack, $needle, $before_needle = null) {} |
| 4192 |
|
| 4193 |
/** |
| 4194 |
* Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8. |
| 4195 |
* @link http://www.php.net/manual/en/function.grapheme-extract.php |
| 4196 |
* @param haystack string <p> |
| 4197 |
* String to search. |
| 4198 |
* </p> |
| 4199 |
* @param size int <p> |
| 4200 |
* Maximum number items - based on the $extract_type - to return. |
| 4201 |
* </p> |
| 4202 |
* @param extract_type int[optional] <p> |
| 4203 |
* Defines the type of units referred to by the $size parameter: |
| 4204 |
* </p> |
| 4205 |
* <p> |
| 4206 |
* |
| 4207 |
* GRAPHEME_EXTR_COUNT (default) - $size is the number of default |
| 4208 |
* grapheme clusters to extract. |
| 4209 |
* GRAPHEME_EXTR_MAXBYTES - $size is the maximum number of bytes |
| 4210 |
* returned. |
| 4211 |
* GRAPHEME_EXTR_MAXCHARS - $size is the maximum number of UTF-8 |
| 4212 |
* characters returned. |
| 4213 |
* |
| 4214 |
* </p> |
| 4215 |
* @param start int[optional] <p> |
| 4216 |
* Starting position in $haystack in bytes - if given, it must be zero or a |
| 4217 |
* positive value that is less than or equal to the length of $haystack in |
| 4218 |
* bytes. If $start does not point to the first byte of a UTF-8 |
| 4219 |
* character, the start position is moved to the next character boundary. |
| 4220 |
* </p> |
| 4221 |
* @param next int[optional] <p> |
| 4222 |
* Reference to a value that will be set to the next starting position. |
| 4223 |
* When the call returns, this may point to the first byte position past the end of the string. |
| 4224 |
* </p> |
| 4225 |
* @return string A string starting at offset $start and ending on a default grapheme cluster |
| 4226 |
* boundary that conforms to the $size and $extract_type specified. |
| 4227 |
*/ |
| 4228 |
function grapheme_extract ($haystack, $size, $extract_type = null, $start = null, &$next = null) {} |
| 4229 |
|
| 4230 |
/** |
| 4231 |
* Convert domain name to IDNA ASCII form. |
| 4232 |
* @link http://www.php.net/manual/en/function.idn-to-ascii.php |
| 4233 |
* @param utf8_domain string <p> |
| 4234 |
* The UTF-8 encoded domain name. |
| 4235 |
* |
| 4236 |
* <p> |
| 4237 |
* If e.g. an ISO-8859-1 (aka Western Europe latin1) encoded string is |
| 4238 |
* passed it will be converted into an ACE encoded "xn--" string. |
| 4239 |
* It will not be the one you expected though! |
| 4240 |
* </p> |
| 4241 |
* |
| 4242 |
* </p> |
| 4243 |
* @param errorcode int[optional] <p> |
| 4244 |
* Will be set to the IDNA error code. |
| 4245 |
* </p> |
| 4246 |
* @param domain string <p> |
| 4247 |
* Domain to convert. In PHP 5 must be UTF-8 encoded. |
| 4248 |
* </p> |
| 4249 |
* @param options int[optional] <p> |
| 4250 |
* Conversion options - combination of IDNA_* constants |
| 4251 |
* (except IDNA_ERROR_* constants). |
| 4252 |
* </p> |
| 4253 |
* @param variant int[optional] <p> |
| 4254 |
* Either INTL_IDNA_VARIANT_2003 for IDNA 2003 or |
| 4255 |
* INTL_IDNA_VARIANT_UTS46 for UTS #46. |
| 4256 |
* </p> |
| 4257 |
* @param idna_info array[optional] <p> |
| 4258 |
* This parameter can be used only if |
| 4259 |
* INTL_IDNA_VARIANT_UTS46 was used for |
| 4260 |
* variant. In that case, it will be filled with an |
| 4261 |
* array with the keys 'result', the possibly illegal |
| 4262 |
* result of the transformation, |
| 4263 |
* 'isTransitionalDifferent', a boolean indicating |
| 4264 |
* whether the usage of the transitional mechanisms of UTS #46 either has |
| 4265 |
* or would have changed the result and 'errors', |
| 4266 |
* which is an int representing a bitset of the error |
| 4267 |
* constants IDNA_ERROR_*. |
| 4268 |
* </p> |
| 4269 |
* @return string Domain name encoded in ASCII-compatible form. &return.falseforfailure; |
| 4270 |
*/ |
| 4271 |
function idn_to_ascii ($utf8_domain, &$errorcode = null, $domain, $options = null, $variant = null, array &$idna_info = null) {} |
| 4272 |
|
| 4273 |
/** |
| 4274 |
* Convert domain name from IDNA ASCII to Unicode. |
| 4275 |
* @link http://www.php.net/manual/en/function.idn-to-utf8.php |
| 4276 |
* @param ascii_domain string <p> |
| 4277 |
* The ASCII encoded domain name. Looks like "xn--..." if the it originally contained non-ASCII characters. |
| 4278 |
* </p> |
| 4279 |
* @param errorcode int[optional] <p> |
| 4280 |
* Will be set to the IDNA error code. |
| 4281 |
* </p> |
| 4282 |
* @param domain string <p> |
| 4283 |
* Domain to convert in IDNA ASCII-compatible format. |
| 4284 |
* </p> |
| 4285 |
* @param options int[optional] <p> |
| 4286 |
* Conversion options - combination of IDNA_* constants |
| 4287 |
* (except IDNA_ERROR_* constants). |
| 4288 |
* </p> |
| 4289 |
* @param variant int[optional] <p> |
| 4290 |
* Either INTL_IDNA_VARIANT_2003 for IDNA 2003 or |
| 4291 |
* INTL_IDNA_VARIANT_UTS46 for UTS #46. |
| 4292 |
* </p> |
| 4293 |
* @param idna_info array[optional] <p> |
| 4294 |
* This parameter can be used only if |
| 4295 |
* INTL_IDNA_VARIANT_UTS46 was used for |
| 4296 |
* variant. In that case, it will be filled with an |
| 4297 |
* array with the keys 'result', the possibly illegal |
| 4298 |
* result of the transformation, |
| 4299 |
* 'isTransitionalDifferent', a boolean indicating |
| 4300 |
* whether the usage of the transitional mechanisms of UTS #46 either has |
| 4301 |
* or would have changed the result and 'errors', |
| 4302 |
* which is an int representing a bitset of the error |
| 4303 |
* constants IDNA_ERROR_*. |
| 4304 |
* </p> |
| 4305 |
* @return string Domain name in Unicode, encoded in UTF-8. &return.falseforfailure; |
| 4306 |
*/ |
| 4307 |
function idn_to_utf8 ($ascii_domain, &$errorcode = null, $domain, $options = null, $variant = null, array &$idna_info = null) {} |
| 4308 |
|
| 4309 |
/** |
| 4310 |
* @param locale |
| 4311 |
* @param bundlename |
| 4312 |
* @param fallback[optional] |
| 4313 |
*/ |
| 4314 |
function resourcebundle_create ($locale, $bundlename, $fallback) {} |
| 4315 |
|
| 4316 |
/** |
| 4317 |
* @param bundle |
| 4318 |
* @param index |
| 4319 |
* @param fallback[optional] |
| 4320 |
*/ |
| 4321 |
function resourcebundle_get ($bundle, $index, $fallback) {} |
| 4322 |
|
| 4323 |
/** |
| 4324 |
* @param bundle |
| 4325 |
*/ |
| 4326 |
function resourcebundle_count ($bundle) {} |
| 4327 |
|
| 4328 |
/** |
| 4329 |
* @param bundlename |
| 4330 |
*/ |
| 4331 |
function resourcebundle_locales ($bundlename) {} |
| 4332 |
|
| 4333 |
/** |
| 4334 |
* @param bundle |
| 4335 |
*/ |
| 4336 |
function resourcebundle_get_error_code ($bundle) {} |
| 4337 |
|
| 4338 |
/** |
| 4339 |
* @param bundle |
| 4340 |
*/ |
| 4341 |
function resourcebundle_get_error_message ($bundle) {} |
| 4342 |
|
| 4343 |
/** |
| 4344 |
* @param id |
| 4345 |
* @param direction[optional] |
| 4346 |
*/ |
| 4347 |
function transliterator_create ($id, $direction) {} |
| 4348 |
|
| 4349 |
/** |
| 4350 |
* @param rules |
| 4351 |
* @param direction[optional] |
| 4352 |
*/ |
| 4353 |
function transliterator_create_from_rules ($rules, $direction) {} |
| 4354 |
|
| 4355 |
function transliterator_list_ids () {} |
| 4356 |
|
| 4357 |
/** |
| 4358 |
* @param orig_trans Transliterator |
| 4359 |
*/ |
| 4360 |
function transliterator_create_inverse (Transliterator $orig_trans) {} |
| 4361 |
|
| 4362 |
/** |
| 4363 |
* @param trans |
| 4364 |
* @param subject |
| 4365 |
* @param start[optional] |
| 4366 |
* @param end[optional] |
| 4367 |
*/ |
| 4368 |
function transliterator_transliterate ($trans, $subject, $start, $end) {} |
| 4369 |
|
| 4370 |
/** |
| 4371 |
* @param trans Transliterator |
| 4372 |
*/ |
| 4373 |
function transliterator_get_error_code (Transliterator $trans) {} |
| 4374 |
|
| 4375 |
/** |
| 4376 |
* @param trans Transliterator |
| 4377 |
*/ |
| 4378 |
function transliterator_get_error_message (Transliterator $trans) {} |
| 4379 |
|
| 4380 |
/** |
| 4381 |
* @param zoneId |
| 4382 |
*/ |
| 4383 |
function intltz_create_time_zone ($zoneId) {} |
| 4384 |
|
| 4385 |
/** |
| 4386 |
* @param dateTimeZone DateTimeZone |
| 4387 |
*/ |
| 4388 |
function intltz_from_date_time_zone (DateTimeZone $dateTimeZone) {} |
| 4389 |
|
| 4390 |
function intltz_create_default () {} |
| 4391 |
|
| 4392 |
/** |
| 4393 |
* @param timeZone IntlTimeZone |
| 4394 |
*/ |
| 4395 |
function intltz_get_id (IntlTimeZone $timeZone) {} |
| 4396 |
|
| 4397 |
function intltz_get_gmt () {} |
| 4398 |
|
| 4399 |
/** |
| 4400 |
* @param countryOrRawOffset[optional] |
| 4401 |
*/ |
| 4402 |
function intltz_create_enumeration ($countryOrRawOffset) {} |
| 4403 |
|
| 4404 |
/** |
| 4405 |
* @param zoneId |
| 4406 |
*/ |
| 4407 |
function intltz_count_equivalent_ids ($zoneId) {} |
| 4408 |
|
| 4409 |
/** |
| 4410 |
* @param zoneId |
| 4411 |
* @param isSystemID[optional] |
| 4412 |
*/ |
| 4413 |
function intltz_get_canonical_id ($zoneId, &$isSystemID) {} |
| 4414 |
|
| 4415 |
function intltz_get_tz_data_version () {} |
| 4416 |
|
| 4417 |
/** |
| 4418 |
* @param zoneId |
| 4419 |
* @param index |
| 4420 |
*/ |
| 4421 |
function intltz_get_equivalent_id ($zoneId, $index) {} |
| 4422 |
|
| 4423 |
/** |
| 4424 |
* @param timeZone IntlTimeZone |
| 4425 |
*/ |
| 4426 |
function intltz_use_daylight_time (IntlTimeZone $timeZone) {} |
| 4427 |
|
| 4428 |
/** |
| 4429 |
* @param timeZone IntlTimeZone |
| 4430 |
* @param date |
| 4431 |
* @param local |
| 4432 |
* @param rawOffset |
| 4433 |
* @param dstOffset |
| 4434 |
*/ |
| 4435 |
function intltz_get_offset (IntlTimeZone $timeZone, $date, $local, &$rawOffset, &$dstOffset) {} |
| 4436 |
|
| 4437 |
/** |
| 4438 |
* @param timeZone IntlTimeZone |
| 4439 |
*/ |
| 4440 |
function intltz_get_raw_offset (IntlTimeZone $timeZone) {} |
| 4441 |
|
| 4442 |
/** |
| 4443 |
* @param timeZone IntlTimeZone |
| 4444 |
* @param otherTimeZone IntlTimeZone[optional] |
| 4445 |
*/ |
| 4446 |
function intltz_has_same_rules (IntlTimeZone $timeZoneIntlTimeZone , $otherTimeZone) {} |
| 4447 |
|
| 4448 |
/** |
| 4449 |
* @param timeZone IntlTimeZone |
| 4450 |
* @param isDaylight[optional] |
| 4451 |
* @param style[optional] |
| 4452 |
* @param locale[optional] |
| 4453 |
*/ |
| 4454 |
function intltz_get_display_name (IntlTimeZone $timeZone, $isDaylight, $style, $locale) {} |
| 4455 |
|
| 4456 |
/** |
| 4457 |
* @param timeZone IntlTimeZone |
| 4458 |
*/ |
| 4459 |
function intltz_get_dst_savings (IntlTimeZone $timeZone) {} |
| 4460 |
|
| 4461 |
/** |
| 4462 |
* @param timeZone IntlTimeZone |
| 4463 |
*/ |
| 4464 |
function intltz_to_date_time_zone (IntlTimeZone $timeZone) {} |
| 4465 |
|
| 4466 |
/** |
| 4467 |
* @param timeZone IntlTimeZone |
| 4468 |
*/ |
| 4469 |
function intltz_get_error_code (IntlTimeZone $timeZone) {} |
| 4470 |
|
| 4471 |
/** |
| 4472 |
* @param timeZone IntlTimeZone |
| 4473 |
*/ |
| 4474 |
function intltz_get_error_message (IntlTimeZone $timeZone) {} |
| 4475 |
|
| 4476 |
/** |
| 4477 |
* @param timeZone[optional] |
| 4478 |
* @param locale[optional] |
| 4479 |
*/ |
| 4480 |
function intlcal_create_instance ($timeZone, $locale) {} |
| 4481 |
|
| 4482 |
/** |
| 4483 |
* @param key |
| 4484 |
* @param locale |
| 4485 |
* @param commonlyUsed |
| 4486 |
*/ |
| 4487 |
function intlcal_get_keyword_values_for_locale ($key, $locale, $commonlyUsed) {} |
| 4488 |
|
| 4489 |
function intlcal_get_now () {} |
| 4490 |
|
| 4491 |
function intlcal_get_available_locales () {} |
| 4492 |
|
| 4493 |
/** |
| 4494 |
* @param calendar IntlCalendar |
| 4495 |
* @param field |
| 4496 |
*/ |
| 4497 |
function intlcal_get (IntlCalendar $calendar, $field) {} |
| 4498 |
|
| 4499 |
/** |
| 4500 |
* @param calendar IntlCalendar |
| 4501 |
*/ |
| 4502 |
function intlcal_get_time (IntlCalendar $calendar) {} |
| 4503 |
|
| 4504 |
/** |
| 4505 |
* @param calendar IntlCalendar |
| 4506 |
* @param date |
| 4507 |
*/ |
| 4508 |
function intlcal_set_time (IntlCalendar $calendar, $date) {} |
| 4509 |
|
| 4510 |
/** |
| 4511 |
* @param calendar IntlCalendar |
| 4512 |
* @param field |
| 4513 |
* @param amount |
| 4514 |
*/ |
| 4515 |
function intlcal_add (IntlCalendar $calendar, $field, $amount) {} |
| 4516 |
|
| 4517 |
/** |
| 4518 |
* @param calendar IntlCalendar |
| 4519 |
* @param timeZone |
| 4520 |
*/ |
| 4521 |
function intlcal_set_time_zone (IntlCalendar $calendar, $timeZone) {} |
| 4522 |
|
| 4523 |
/** |
| 4524 |
* @param calendar IntlCalendar |
| 4525 |
* @param otherCalendar IntlCalendar |
| 4526 |
*/ |
| 4527 |
function intlcal_after (IntlCalendar $calendarIntlCalendar , $otherCalendar) {} |
| 4528 |
|
| 4529 |
/** |
| 4530 |
* @param calendar IntlCalendar |
| 4531 |
* @param otherCalendar IntlCalendar |
| 4532 |
*/ |
| 4533 |
function intlcal_before (IntlCalendar $calendarIntlCalendar , $otherCalendar) {} |
| 4534 |
|
| 4535 |
/** |
| 4536 |
* @param calendar IntlCalendar |
| 4537 |
* @param fieldOrYear |
| 4538 |
* @param valueOrMonth |
| 4539 |
* @param dayOfMonth[optional] |
| 4540 |
* @param hour[optional] |
| 4541 |
* @param minute[optional] |
| 4542 |
* @param second[optional] |
| 4543 |
*/ |
| 4544 |
function intlcal_set (IntlCalendar $calendar, $fieldOrYear, $valueOrMonth, $dayOfMonth, $hour, $minute, $second) {} |
| 4545 |
|
| 4546 |
/** |
| 4547 |
* @param calendar IntlCalendar |
| 4548 |
* @param field |
| 4549 |
* @param amountOrUpOrDown[optional] |
| 4550 |
*/ |
| 4551 |
function intlcal_roll (IntlCalendar $calendar, $field, $amountOrUpOrDown) {} |
| 4552 |
|
| 4553 |
/** |
| 4554 |
* @param calendar IntlCalendar |
| 4555 |
* @param field[optional] |
| 4556 |
*/ |
| 4557 |
function intlcal_clear (IntlCalendar $calendar, $field) {} |
| 4558 |
|
| 4559 |
/** |
| 4560 |
* @param calendar IntlCalendar |
| 4561 |
* @param when |
| 4562 |
* @param field |
| 4563 |
*/ |
| 4564 |
function intlcal_field_difference (IntlCalendar $calendar, $when, $field) {} |
| 4565 |
|
| 4566 |
/** |
| 4567 |
* @param calendar IntlCalendar |
| 4568 |
* @param field |
| 4569 |
*/ |
| 4570 |
function intlcal_get_actual_maximum (IntlCalendar $calendar, $field) {} |
| 4571 |
|
| 4572 |
/** |
| 4573 |
* @param calendar IntlCalendar |
| 4574 |
* @param field |
| 4575 |
*/ |
| 4576 |
function intlcal_get_actual_minimum (IntlCalendar $calendar, $field) {} |
| 4577 |
|
| 4578 |
/** |
| 4579 |
* @param calendar IntlCalendar |
| 4580 |
* @param dayOfWeek |
| 4581 |
*/ |
| 4582 |
function intlcal_get_day_of_week_type (IntlCalendar $calendar, $dayOfWeek) {} |
| 4583 |
|
| 4584 |
/** |
| 4585 |
* @param calendar IntlCalendar |
| 4586 |
*/ |
| 4587 |
function intlcal_get_first_day_of_week (IntlCalendar $calendar) {} |
| 4588 |
|
| 4589 |
/** |
| 4590 |
* @param calendar IntlCalendar |
| 4591 |
* @param field |
| 4592 |
*/ |
| 4593 |
function intlcal_get_greatest_minimum (IntlCalendar $calendar, $field) {} |
| 4594 |
|
| 4595 |
/** |
| 4596 |
* @param calendar IntlCalendar |
| 4597 |
* @param field |
| 4598 |
*/ |
| 4599 |
function intlcal_get_least_maximum (IntlCalendar $calendar, $field) {} |
| 4600 |
|
| 4601 |
/** |
| 4602 |
* @param calendar IntlCalendar |
| 4603 |
* @param localeType |
| 4604 |
*/ |
| 4605 |
function intlcal_get_locale (IntlCalendar $calendar, $localeType) {} |
| 4606 |
|
| 4607 |
/** |
| 4608 |
* @param calendar IntlCalendar |
| 4609 |
* @param field |
| 4610 |
*/ |
| 4611 |
function intlcal_get_maximum (IntlCalendar $calendar, $field) {} |
| 4612 |
|
| 4613 |
/** |
| 4614 |
* @param calendar IntlCalendar |
| 4615 |
*/ |
| 4616 |
function intlcal_get_minimal_days_in_first_week (IntlCalendar $calendar) {} |
| 4617 |
|
| 4618 |
/** |
| 4619 |
* @param calendar IntlCalendar |
| 4620 |
* @param field |
| 4621 |
*/ |
| 4622 |
function intlcal_get_minimum (IntlCalendar $calendar, $field) {} |
| 4623 |
|
| 4624 |
/** |
| 4625 |
* @param calendar IntlCalendar |
| 4626 |
*/ |
| 4627 |
function intlcal_get_time_zone (IntlCalendar $calendar) {} |
| 4628 |
|
| 4629 |
/** |
| 4630 |
* @param calendar IntlCalendar |
| 4631 |
*/ |
| 4632 |
function intlcal_get_type (IntlCalendar $calendar) {} |
| 4633 |
|
| 4634 |
/** |
| 4635 |
* @param calendar IntlCalendar |
| 4636 |
* @param dayOfWeek |
| 4637 |
*/ |
| 4638 |
function intlcal_get_weekend_transition (IntlCalendar $calendar, $dayOfWeek) {} |
| 4639 |
|
| 4640 |
/** |
| 4641 |
* @param calendar IntlCalendar |
| 4642 |
*/ |
| 4643 |
function intlcal_in_daylight_time (IntlCalendar $calendar) {} |
| 4644 |
|
| 4645 |
/** |
| 4646 |
* @param calendar IntlCalendar |
| 4647 |
* @param otherCalendar IntlCalendar |
| 4648 |
*/ |
| 4649 |
function intlcal_is_equivalent_to (IntlCalendar $calendarIntlCalendar , $otherCalendar) {} |
| 4650 |
|
| 4651 |
/** |
| 4652 |
* @param calendar IntlCalendar |
| 4653 |
*/ |
| 4654 |
function intlcal_is_lenient (IntlCalendar $calendar) {} |
| 4655 |
|
| 4656 |
/** |
| 4657 |
* @param calendar IntlCalendar |
| 4658 |
* @param field |
| 4659 |
*/ |
| 4660 |
function intlcal_is_set (IntlCalendar $calendar, $field) {} |
| 4661 |
|
| 4662 |
/** |
| 4663 |
* @param calendar IntlCalendar |
| 4664 |
* @param date[optional] |
| 4665 |
*/ |
| 4666 |
function intlcal_is_weekend (IntlCalendar $calendar, $date) {} |
| 4667 |
|
| 4668 |
/** |
| 4669 |
* @param calendar IntlCalendar |
| 4670 |
* @param dayOfWeek |
| 4671 |
*/ |
| 4672 |
function intlcal_set_first_day_of_week (IntlCalendar $calendar, $dayOfWeek) {} |
| 4673 |
|
| 4674 |
/** |
| 4675 |
* @param calendar IntlCalendar |
| 4676 |
* @param isLenient |
| 4677 |
*/ |
| 4678 |
function intlcal_set_lenient (IntlCalendar $calendar, $isLenient) {} |
| 4679 |
|
| 4680 |
/** |
| 4681 |
* @param calendar IntlCalendar |
| 4682 |
* @param numberOfDays |
| 4683 |
*/ |
| 4684 |
function intlcal_set_minimal_days_in_first_week (IntlCalendar $calendar, $numberOfDays) {} |
| 4685 |
|
| 4686 |
/** |
| 4687 |
* @param calendar IntlCalendar |
| 4688 |
* @param otherCalendar IntlCalendar |
| 4689 |
*/ |
| 4690 |
function intlcal_equals (IntlCalendar $calendarIntlCalendar , $otherCalendar) {} |
| 4691 |
|
| 4692 |
/** |
| 4693 |
* @param dateTime |
| 4694 |
*/ |
| 4695 |
function intlcal_from_date_time ($dateTime) {} |
| 4696 |
|
| 4697 |
/** |
| 4698 |
* @param calendar IntlCalendar |
| 4699 |
*/ |
| 4700 |
function intlcal_to_date_time (IntlCalendar $calendar) {} |
| 4701 |
|
| 4702 |
/** |
| 4703 |
* @param calendar IntlCalendar |
| 4704 |
*/ |
| 4705 |
function intlcal_get_error_code (IntlCalendar $calendar) {} |
| 4706 |
|
| 4707 |
/** |
| 4708 |
* @param calendar IntlCalendar |
| 4709 |
*/ |
| 4710 |
function intlcal_get_error_message (IntlCalendar $calendar) {} |
| 4711 |
|
| 4712 |
/** |
| 4713 |
* @param timeZoneOrYear[optional] |
| 4714 |
* @param localeOrMonth[optional] |
| 4715 |
* @param dayOfMonth[optional] |
| 4716 |
* @param hour[optional] |
| 4717 |
* @param minute[optional] |
| 4718 |
* @param second[optional] |
| 4719 |
*/ |
| 4720 |
function intlgregcal_create_instance ($timeZoneOrYear, $localeOrMonth, $dayOfMonth, $hour, $minute, $second) {} |
| 4721 |
|
| 4722 |
/** |
| 4723 |
* @param calendar IntlGregorianCalendar |
| 4724 |
* @param date |
| 4725 |
*/ |
| 4726 |
function intlgregcal_set_gregorian_change (IntlGregorianCalendar $calendar, $date) {} |
| 4727 |
|
| 4728 |
/** |
| 4729 |
* @param calendar IntlGregorianCalendar |
| 4730 |
*/ |
| 4731 |
function intlgregcal_get_gregorian_change (IntlGregorianCalendar $calendar) {} |
| 4732 |
|
| 4733 |
/** |
| 4734 |
* @param calendar IntlGregorianCalendar |
| 4735 |
* @param year |
| 4736 |
*/ |
| 4737 |
function intlgregcal_is_leap_year (IntlGregorianCalendar $calendar, $year) {} |
| 4738 |
|
| 4739 |
/** |
| 4740 |
* Get the last error code |
| 4741 |
* @link http://www.php.net/manual/en/function.intl-get-error-code.php |
| 4742 |
* @return int Error code returned by the last API function call. |
| 4743 |
*/ |
| 4744 |
function intl_get_error_code () {} |
| 4745 |
|
| 4746 |
/** |
| 4747 |
* Get description of the last error |
| 4748 |
* @link http://www.php.net/manual/en/function.intl-get-error-message.php |
| 4749 |
* @return string Description of an error occurred in the last API function call. |
| 4750 |
*/ |
| 4751 |
function intl_get_error_message () {} |
| 4752 |
|
| 4753 |
/** |
| 4754 |
* Check whether the given error code indicates failure |
| 4755 |
* @link http://www.php.net/manual/en/function.intl-is-failure.php |
| 4756 |
* @param error_code int <p> |
| 4757 |
* is a value that returned by functions: |
| 4758 |
* intl_get_error_code, |
| 4759 |
* collator_get_error_code . |
| 4760 |
* </p> |
| 4761 |
* @return bool true if it the code indicates some failure, and false |
| 4762 |
* in case of success or a warning. |
| 4763 |
*/ |
| 4764 |
function intl_is_failure ($error_code) {} |
| 4765 |
|
| 4766 |
/** |
| 4767 |
* Get symbolic name for a given error code |
| 4768 |
* @link http://www.php.net/manual/en/function.intl-error-name.php |
| 4769 |
* @param error_code int <p> |
| 4770 |
* ICU error code. |
| 4771 |
* </p> |
| 4772 |
* @return string The returned string will be the same as the name of the error code |
| 4773 |
* constant. |
| 4774 |
*/ |
| 4775 |
function intl_error_name ($error_code) {} |
| 4776 |
|
| 4777 |
|
| 4778 |
/** |
| 4779 |
* Limit on locale length, set to 80 in PHP code. Locale names longer |
| 4780 |
* than this limit will not be accepted. |
| 4781 |
* @link http://www.php.net/manual/en/intl.constants.php |
| 4782 |
*/ |
| 4783 |
define ('INTL_MAX_LOCALE_LEN', 80); |
| 4784 |
define ('INTL_ICU_VERSION', "4.4.1"); |
| 4785 |
define ('INTL_ICU_DATA_VERSION', "4.4.0.1"); |
| 4786 |
define ('ULOC_ACTUAL_LOCALE', 0); |
| 4787 |
define ('ULOC_VALID_LOCALE', 1); |
| 4788 |
define ('GRAPHEME_EXTR_COUNT', 0); |
| 4789 |
define ('GRAPHEME_EXTR_MAXBYTES', 1); |
| 4790 |
define ('GRAPHEME_EXTR_MAXCHARS', 2); |
| 4791 |
define ('U_USING_FALLBACK_WARNING', -128); |
| 4792 |
define ('U_ERROR_WARNING_START', -128); |
| 4793 |
define ('U_USING_DEFAULT_WARNING', -127); |
| 4794 |
define ('U_SAFECLONE_ALLOCATED_WARNING', -126); |
| 4795 |
define ('U_STATE_OLD_WARNING', -125); |
| 4796 |
define ('U_STRING_NOT_TERMINATED_WARNING', -124); |
| 4797 |
define ('U_SORT_KEY_TOO_SHORT_WARNING', -123); |
| 4798 |
define ('U_AMBIGUOUS_ALIAS_WARNING', -122); |
| 4799 |
define ('U_DIFFERENT_UCA_VERSION', -121); |
| 4800 |
define ('U_ERROR_WARNING_LIMIT', -119); |
| 4801 |
define ('U_ZERO_ERROR', 0); |
| 4802 |
define ('U_ILLEGAL_ARGUMENT_ERROR', 1); |
| 4803 |
define ('U_MISSING_RESOURCE_ERROR', 2); |
| 4804 |
define ('U_INVALID_FORMAT_ERROR', 3); |
| 4805 |
define ('U_FILE_ACCESS_ERROR', 4); |
| 4806 |
define ('U_INTERNAL_PROGRAM_ERROR', 5); |
| 4807 |
define ('U_MESSAGE_PARSE_ERROR', 6); |
| 4808 |
define ('U_MEMORY_ALLOCATION_ERROR', 7); |
| 4809 |
define ('U_INDEX_OUTOFBOUNDS_ERROR', 8); |
| 4810 |
define ('U_PARSE_ERROR', 9); |
| 4811 |
define ('U_INVALID_CHAR_FOUND', 10); |
| 4812 |
define ('U_TRUNCATED_CHAR_FOUND', 11); |
| 4813 |
define ('U_ILLEGAL_CHAR_FOUND', 12); |
| 4814 |
define ('U_INVALID_TABLE_FORMAT', 13); |
| 4815 |
define ('U_INVALID_TABLE_FILE', 14); |
| 4816 |
define ('U_BUFFER_OVERFLOW_ERROR', 15); |
| 4817 |
define ('U_UNSUPPORTED_ERROR', 16); |
| 4818 |
define ('U_RESOURCE_TYPE_MISMATCH', 17); |
| 4819 |
define ('U_ILLEGAL_ESCAPE_SEQUENCE', 18); |
| 4820 |
define ('U_UNSUPPORTED_ESCAPE_SEQUENCE', 19); |
| 4821 |
define ('U_NO_SPACE_AVAILABLE', 20); |
| 4822 |
define ('U_CE_NOT_FOUND_ERROR', 21); |
| 4823 |
define ('U_PRIMARY_TOO_LONG_ERROR', 22); |
| 4824 |
define ('U_STATE_TOO_OLD_ERROR', 23); |
| 4825 |
define ('U_TOO_MANY_ALIASES_ERROR', 24); |
| 4826 |
define ('U_ENUM_OUT_OF_SYNC_ERROR', 25); |
| 4827 |
define ('U_INVARIANT_CONVERSION_ERROR', 26); |
| 4828 |
define ('U_INVALID_STATE_ERROR', 27); |
| 4829 |
define ('U_COLLATOR_VERSION_MISMATCH', 28); |
| 4830 |
define ('U_USELESS_COLLATOR_ERROR', 29); |
| 4831 |
define ('U_NO_WRITE_PERMISSION', 30); |
| 4832 |
define ('U_STANDARD_ERROR_LIMIT', 31); |
| 4833 |
define ('U_BAD_VARIABLE_DEFINITION', 65536); |
| 4834 |
define ('U_PARSE_ERROR_START', 65536); |
| 4835 |
define ('U_MALFORMED_RULE', 65537); |
| 4836 |
define ('U_MALFORMED_SET', 65538); |
| 4837 |
define ('U_MALFORMED_SYMBOL_REFERENCE', 65539); |
| 4838 |
define ('U_MALFORMED_UNICODE_ESCAPE', 65540); |
| 4839 |
define ('U_MALFORMED_VARIABLE_DEFINITION', 65541); |
| 4840 |
define ('U_MALFORMED_VARIABLE_REFERENCE', 65542); |
| 4841 |
define ('U_MISMATCHED_SEGMENT_DELIMITERS', 65543); |
| 4842 |
define ('U_MISPLACED_ANCHOR_START', 65544); |
| 4843 |
define ('U_MISPLACED_CURSOR_OFFSET', 65545); |
| 4844 |
define ('U_MISPLACED_QUANTIFIER', 65546); |
| 4845 |
define ('U_MISSING_OPERATOR', 65547); |
| 4846 |
define ('U_MISSING_SEGMENT_CLOSE', 65548); |
| 4847 |
define ('U_MULTIPLE_ANTE_CONTEXTS', 65549); |
| 4848 |
define ('U_MULTIPLE_CURSORS', 65550); |
| 4849 |
define ('U_MULTIPLE_POST_CONTEXTS', 65551); |
| 4850 |
define ('U_TRAILING_BACKSLASH', 65552); |
| 4851 |
define ('U_UNDEFINED_SEGMENT_REFERENCE', 65553); |
| 4852 |
define ('U_UNDEFINED_VARIABLE', 65554); |
| 4853 |
define ('U_UNQUOTED_SPECIAL', 65555); |
| 4854 |
define ('U_UNTERMINATED_QUOTE', 65556); |
| 4855 |
define ('U_RULE_MASK_ERROR', 65557); |
| 4856 |
define ('U_MISPLACED_COMPOUND_FILTER', 65558); |
| 4857 |
define ('U_MULTIPLE_COMPOUND_FILTERS', 65559); |
| 4858 |
define ('U_INVALID_RBT_SYNTAX', 65560); |
| 4859 |
define ('U_INVALID_PROPERTY_PATTERN', 65561); |
| 4860 |
define ('U_MALFORMED_PRAGMA', 65562); |
| 4861 |
define ('U_UNCLOSED_SEGMENT', 65563); |
| 4862 |
define ('U_ILLEGAL_CHAR_IN_SEGMENT', 65564); |
| 4863 |
define ('U_VARIABLE_RANGE_EXHAUSTED', 65565); |
| 4864 |
define ('U_VARIABLE_RANGE_OVERLAP', 65566); |
| 4865 |
define ('U_ILLEGAL_CHARACTER', 65567); |
| 4866 |
define ('U_INTERNAL_TRANSLITERATOR_ERROR', 65568); |
| 4867 |
define ('U_INVALID_ID', 65569); |
| 4868 |
define ('U_INVALID_FUNCTION', 65570); |
| 4869 |
define ('U_PARSE_ERROR_LIMIT', 65571); |
| 4870 |
define ('U_UNEXPECTED_TOKEN', 65792); |
| 4871 |
define ('U_FMT_PARSE_ERROR_START', 65792); |
| 4872 |
define ('U_MULTIPLE_DECIMAL_SEPARATORS', 65793); |
| 4873 |
define ('U_MULTIPLE_DECIMAL_SEPERATORS', 65793); |
| 4874 |
define ('U_MULTIPLE_EXPONENTIAL_SYMBOLS', 65794); |
| 4875 |
define ('U_MALFORMED_EXPONENTIAL_PATTERN', 65795); |
| 4876 |
define ('U_MULTIPLE_PERCENT_SYMBOLS', 65796); |
| 4877 |
define ('U_MULTIPLE_PERMILL_SYMBOLS', 65797); |
| 4878 |
define ('U_MULTIPLE_PAD_SPECIFIERS', 65798); |
| 4879 |
define ('U_PATTERN_SYNTAX_ERROR', 65799); |
| 4880 |
define ('U_ILLEGAL_PAD_POSITION', 65800); |
| 4881 |
define ('U_UNMATCHED_BRACES', 65801); |
| 4882 |
define ('U_UNSUPPORTED_PROPERTY', 65802); |
| 4883 |
define ('U_UNSUPPORTED_ATTRIBUTE', 65803); |
| 4884 |
define ('U_FMT_PARSE_ERROR_LIMIT', 65809); |
| 4885 |
define ('U_BRK_INTERNAL_ERROR', 66048); |
| 4886 |
define ('U_BRK_ERROR_START', 66048); |
| 4887 |
define ('U_BRK_HEX_DIGITS_EXPECTED', 66049); |
| 4888 |
define ('U_BRK_SEMICOLON_EXPECTED', 66050); |
| 4889 |
define ('U_BRK_RULE_SYNTAX', 66051); |
| 4890 |
define ('U_BRK_UNCLOSED_SET', 66052); |
| 4891 |
define ('U_BRK_ASSIGN_ERROR', 66053); |
| 4892 |
define ('U_BRK_VARIABLE_REDFINITION', 66054); |
| 4893 |
define ('U_BRK_MISMATCHED_PAREN', 66055); |
| 4894 |
define ('U_BRK_NEW_LINE_IN_QUOTED_STRING', 66056); |
| 4895 |
define ('U_BRK_UNDEFINED_VARIABLE', 66057); |
| 4896 |
define ('U_BRK_INIT_ERROR', 66058); |
| 4897 |
define ('U_BRK_RULE_EMPTY_SET', 66059); |
| 4898 |
define ('U_BRK_UNRECOGNIZED_OPTION', 66060); |
| 4899 |
define ('U_BRK_MALFORMED_RULE_TAG', 66061); |
| 4900 |
define ('U_BRK_ERROR_LIMIT', 66062); |
| 4901 |
define ('U_REGEX_INTERNAL_ERROR', 66304); |
| 4902 |
define ('U_REGEX_ERROR_START', 66304); |
| 4903 |
define ('U_REGEX_RULE_SYNTAX', 66305); |
| 4904 |
define ('U_REGEX_INVALID_STATE', 66306); |
| 4905 |
define ('U_REGEX_BAD_ESCAPE_SEQUENCE', 66307); |
| 4906 |
define ('U_REGEX_PROPERTY_SYNTAX', 66308); |
| 4907 |
define ('U_REGEX_UNIMPLEMENTED', 66309); |
| 4908 |
define ('U_REGEX_MISMATCHED_PAREN', 66310); |
| 4909 |
define ('U_REGEX_NUMBER_TOO_BIG', 66311); |
| 4910 |
define ('U_REGEX_BAD_INTERVAL', 66312); |
| 4911 |
define ('U_REGEX_MAX_LT_MIN', 66313); |
| 4912 |
define ('U_REGEX_INVALID_BACK_REF', 66314); |
| 4913 |
define ('U_REGEX_INVALID_FLAG', 66315); |
| 4914 |
define ('U_REGEX_LOOK_BEHIND_LIMIT', 66316); |
| 4915 |
define ('U_REGEX_SET_CONTAINS_STRING', 66317); |
| 4916 |
define ('U_REGEX_ERROR_LIMIT', 66324); |
| 4917 |
define ('U_IDNA_PROHIBITED_ERROR', 66560); |
| 4918 |
define ('U_IDNA_ERROR_START', 66560); |
| 4919 |
define ('U_IDNA_UNASSIGNED_ERROR', 66561); |
| 4920 |
define ('U_IDNA_CHECK_BIDI_ERROR', 66562); |
| 4921 |
define ('U_IDNA_STD3_ASCII_RULES_ERROR', 66563); |
| 4922 |
define ('U_IDNA_ACE_PREFIX_ERROR', 66564); |
| 4923 |
define ('U_IDNA_VERIFICATION_ERROR', 66565); |
| 4924 |
define ('U_IDNA_LABEL_TOO_LONG_ERROR', 66566); |
| 4925 |
define ('U_IDNA_ZERO_LENGTH_LABEL_ERROR', 66567); |
| 4926 |
define ('U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR', 66568); |
| 4927 |
define ('U_IDNA_ERROR_LIMIT', 66569); |
| 4928 |
define ('U_STRINGPREP_PROHIBITED_ERROR', 66560); |
| 4929 |
define ('U_STRINGPREP_UNASSIGNED_ERROR', 66561); |
| 4930 |
define ('U_STRINGPREP_CHECK_BIDI_ERROR', 66562); |
| 4931 |
define ('U_ERROR_LIMIT', 66818); |
| 4932 |
|
| 4933 |
/** |
| 4934 |
* Prohibit processing of unassigned codepoints in the input for IDN |
| 4935 |
* functions and do not check if the input conforms to domain name ASCII rules. |
| 4936 |
* @link http://www.php.net/manual/en/intl.constants.php |
| 4937 |
*/ |
| 4938 |
define ('IDNA_DEFAULT', 0); |
| 4939 |
|
| 4940 |
/** |
| 4941 |
* Allow processing of unassigned codepoints in the input for IDN functions. |
| 4942 |
* @link http://www.php.net/manual/en/intl.constants.php |
| 4943 |
*/ |
| 4944 |
define ('IDNA_ALLOW_UNASSIGNED', 1); |
| 4945 |
|
| 4946 |
/** |
| 4947 |
* Check if the input for IDN functions conforms to domain name ASCII rules. |
| 4948 |
* @link http://www.php.net/manual/en/intl.constants.php |
| 4949 |
*/ |
| 4950 |
define ('IDNA_USE_STD3_RULES', 2); |
| 4951 |
|
| 4952 |
/** |
| 4953 |
* Use IDNA 2003 algorithm in idn_to_utf8 and |
| 4954 |
* idn_to_ascii. This is the default. |
| 4955 |
* @link http://www.php.net/manual/en/intl.constants.php |
| 4956 |
*/ |
| 4957 |
define ('INTL_IDNA_VARIANT_2003', 0); |
| 4958 |
|
| 4959 |
// End of intl v.1.1.0 |
| 4960 |
?> |