Initially I thought the `locale` parameter was missing from the signature. However, `grapheme_str_split()` actually accepts only 2 arguments in PHP 8.5.2 — meaning the parameter description was added to the documentation erroneously
added to global.ent via f8bdf4030e
Sorry translators for this extra work!
Note: Notes containing 'windows.php.net/downloads/pecl/releases' were
removed as the associated entity will disappear one day via https://github.com/php/doc-base/pull/143
* chr.xml: use more relevent a `method` instead a `function`
* Update reference/intl/intlchar/chr.xml
Move the function tag to the method tag
Co-authored-by: Gina Peter Banyard <girgias@php.net>
---------
Co-authored-by: Gina Peter Banyard <girgias@php.net>
The Intl extension exposes all the underlying ICU C++ constants, even if most of them make no sense in the context of a PHP script.
---------
Co-authored-by: haszi <haszika80@gmail.com>
* IntlDateFormatter::getErrorCode example needs correction
in: reference/intl/dateformatter/get-error-code.xml
IntlDateFormatter::getErrorCode example uses the function IntlDateFormatter::format with the wrong number of parameters, both in OO and procedural examples. Corrections made by this commit intend to generate the expected error code and message. Tested with PHP 8.3.1.
* Update get-error-code.xml
Rephrased synopsis removing redundant information.
Removed trailing ws.
Corrected identation.
* IntlDateFormatter::getErrorMessage example correction
in: reference/intl/dateformatter/get-error-code.xml
IntlDateFormatter::getErrorCode example uses the function IntlDateFormatter::format with the wrong number of parameters, both in OO and procedural examples. Corrections made by this commit intend to generate the expected error code and message. Tested with PHP 8.3.1.
* Corrections to IntlChar::istitle() example
The current example is incorrect and is identical to the example of islower.xml.
The ``istitle()`` method determines whether the character is a title case code point ("Lt" general category of Unicode).
Title case characters are digraphs (in one character) formed by a combination of two glyphs, one uppercase and the other lowercase.
The examples included in this commit were retrieved from the Unicode specification, also presented in https://www.compart.com/en/unicode/category/Lt
* Corrections to IntlChar::totitle() example
The current example is incorrect and is identical to the example of ``IntlChar::toupper()``.
The examples I included in this commit were retrieved from the Unicode specification, also presented in https://www.compart.com/en/unicode/category/Lt