Christoph M. Becker
8a9c2ca098
Link to mb_encoding_aliases() from mb_list_encodings()
2022-04-06 12:51:55 +02:00
Rowan Tommins
99d758bd25
Improve documentation of string encoding conversion functions
...
- Move utf8_encode and utf8_decode into the strings chapter, since
they were moved out of the XML extension in 7.2
- Recommend mb_convert_encoding, iconv, and UConverter::transcode
when mentioning encoding in passing
- Document UConverter::transcode, based on examination of source
and upstream ICU docs
- Make the language used more consistent, e.g. "convert" rather
than "encode"/"decode", "encoding" rather than "charset"
Closes GH-1418.
2022-04-04 12:24:24 +02:00
divinity76
669c19f74e
MBString overloading was removed in 8.0.0
...
Closes GH-1149.
2021-11-26 15:38:33 +01:00
Christoph M. Becker
7fcb23ea98
Fix #76245 : mb_ereg_match matches at beginning of subject only
2021-11-11 11:59:13 +01:00
Christoph M. Becker
936691e744
Fix #81575 : Faulty mb_encode_mimeheader() example code
2021-11-02 17:57:21 +01:00
Kim Hallberg
f63aa0afcd
[80738] Update MB string functions ( #630 )
...
* Add new `mbstring.changelog.needle-empty` entity
* Update changelog with `mbstring.changelog.needle-empty` entity
The following functions now support an empty `needle` argument.
- mb_strpos
- mb_strrpos
- mb_stripos
- mb_strripos
- mb_strstr
- mb_stristr
- mb_strrchr
- mb_strrichr
2021-09-17 20:53:19 +01:00
Kamil Tekiela
d335ba69a1
Remove split() and ereg()
...
Closes GH-716.
2021-06-23 20:20:58 +02:00
Sergey Panteleev
b4afab59db
Re-added mb_* functions unicode section as notes
2021-06-13 12:34:28 +03:00
Sergey Panteleev
30c25e7d49
Fix issues in MbString directory
...
Part of #658
2021-06-10 15:02:51 +03:00
Sergey Panteleev
8cdc6621f9
Remove PHP 5, 7 references ( #563 )
...
- array functions
- datetime functions
- mbstring functions
- strings functions
- var functions
- xml functions
- json functions
2021-05-16 22:07:40 +03:00
Kim Hallberg
c9893954e1
Fix #80671 : Update mb_convert_encoding
...
* Update `mb_convert_encoding` changelog
Now throws `ValueError` if either $to_encoding or $from_encoding
are passed an invalid encoding, this change was introduced in PHP 8.0
* Add errors section to `mb_convert_encoding`
Co-authored-by: George Peter Banyard <girgias@php.net>
Closes GH-582.
2021-05-03 10:52:52 +02:00
Sergey Panteleev
a0ae28d3bc
Removed references to PHP 5, PHP 7.0 ( #545 )
2021-04-24 20:01:17 +03:00
Kamil Tekiela
16a1bdfd1c
Remove double words ( #540 )
2021-04-20 12:54:54 +02:00
Yoshinari Takaoka
220cd5030c
fixed typo
2021-04-18 00:04:31 +09:00
Rowan Tommins
b23076d969
Expand documentation for mb_detect_encoding ( #527 )
...
- People expect this function to work miracles. Add some examples
of why that's not possible. Hat tip to this FAQ for the cipher
comparison: https://chardet.readthedocs.io/en/latest/faq.html
- The strict parameter wasn't really explained at all. I *think*
this is what it actually does.
- General expansion and grammar fixes (I suspect the original
author didn't speak English as a first language, which makes
sense since the mbstring extension originated in Japan).
2021-04-14 14:05:39 +02:00
Rowan Tommins
4d3d1ebea1
Document and cross-reference mb_chr() and mb_ord() ( #524 )
2021-04-13 14:49:11 +02:00
Christoph M. Becker
6dfe076725
xi:include INI settings documented elsewhere in ini.list
...
We do not xi:include core INI settings, since we want to keep
alphabetic sort order (well, roughly at least).
We do add xi:fallback elements to all xi:includes, just in case.
2021-02-24 17:58:20 +01:00
Christoph M. Becker
64f2f1c70d
Revert "fixed broken [build|link]."
...
This reverts commit 8ef027f131
.
The proper fix in this case was <7301044b01
>.
2021-02-15 23:52:44 +01:00
Yoshinari Takaoka
8ef027f131
fixed broken [build|link].
2021-02-16 05:49:24 +09:00
Christoph M. Becker
a69f6cf5d2
Clarify what the 'width' in mb_strimwidth means
...
Co-authored-by: Alex Dowad <alexinbeijing@gmail.com>
Closes GH-124.
2021-02-15 17:12:04 +01:00
Yoshinari Takaoka
b5280065f5
In previous commit, we forgot to erase "func_overload", "func_overload_list".
...
c.f: http://git.php.net/?p=doc/en.git;a=commitdiff;h=51105156aac67e5fcb0670aef84a05da3330d8fb
2021-01-29 13:18:07 +09:00
Christoph M. Becker
51105156aa
mbstring.func_overload and related stuff is removed as of PHP 8.0.0
2021-01-28 19:54:40 +01:00
Christoph M. Becker
639380b506
Update mb_get_info() member list
2021-01-28 19:50:46 +01:00
Christoph M. Becker
6040e92853
Remove removed functions from versions.xml
...
These functions are removed as of PHP 5.2.7.
2021-01-17 12:16:08 +01:00
Yoshinari Takaoka
fa6d05b742
Added PHP 8 into versions.xml for mbstring based on stubs.
2021-01-17 12:14:10 +01:00
Yoshinari Takaoka
02177b182e
fixed example comment to be consistent with methodsynopses.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352042 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 19:06:45 +00:00
Christoph Michael Becker
a3db55f0df
Fix order of sections
...
Also, one example section is enough.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352035 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 18:11:57 +00:00
Yoshinari Takaoka
9240fafbb2
s/regs/matches/g
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352032 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 17:35:43 +00:00
Yoshinari Takaoka
1187e24a84
deleted duplicate changelog entry.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352031 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 17:17:34 +00:00
Christoph Michael Becker
92f1b8b177
Generate ext/mbstring methodsynopses based on stubs
...
Closes GH-190.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352028 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 16:32:35 +00:00
Christoph Michael Becker
e41806c30b
Revert revision(s) 351724 from phpdoc/en/trunk:
...
Document false and null return types
Cf. <https://news-web.php.net/php.doc.cvs/17645 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Christoph Michael Becker
4754397753
Revert revision 351727 from phpdoc/en/trunk:
...
Document false and null return types
Cf. <https://news-web.php.net/php.doc.cvs/17645 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b
Document false and null return types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00:00
Jakub Vrana
c80da7c04a
Document false and null return types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
3e6615fced
Fix #69559 : mb_language() default is "neutral", and the possible languages are more broad
...
We replace the general "notes" column (which only has obsolete PHP 5 specific
info) with an "alias" column, and document all available aliases.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351198 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-03 17:40:55 +00:00
Christoph Michael Becker
b95d28e6ec
Fix return types
...
Functions which return false on failure should state that in their
signature as well.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +00:00
Christoph Michael Becker
86e6094e86
Use canonical type names
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
Christoph Michael Becker
9e0f03ac35
Proper variadics instead of pseudo variadics
...
We markup variadic parameters with the `rep=repeat` standard DocBook
attribute of `<methodparam>`, and use proper variable names instead of
using the old pseudo variable name `...`.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351129 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 11:17:26 +00:00
Christoph Michael Becker
e4f3cc7f4c
Fix #78142 : Function prototype return value does not contain type in case of failure
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351059 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-29 16:26:49 +00:00
Christoph Michael Becker
4df3260b89
Fix #80293 : oniguruma not bundled in mbstring extension per docs
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351034 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-29 11:32:21 +00:00
Christoph Michael Becker
ac83c2c7d8
Return value of mb_regex_set_options() has changed
...
Cf. <https://github.com/php/php-src/pull/5264 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350810 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-07 17:28:26 +00:00
Christoph Michael Becker
80872147aa
Get rid of "callback" types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350788 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-06 09:11:05 +00:00
Christoph Michael Becker
3e15d2894f
Remove more changelog entries, mostly from PHP 5.4 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350656 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:15:17 +00:00
Christoph Michael Becker
9af43469f4
Remove more changelog entries, mostly from PHP 5.2 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Christoph Michael Becker
be5b0f33a1
Remove more changelog entries, mostly from PHP 5.1 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350653 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:45:57 +00:00
Christoph Michael Becker
3211df4680
The 2nd argument to mb_parse_str is not optional
...
Using mb_parse_str without the 2nd argument was deprecated in PHP 7.2. Nikita
Popov made it a required argument in ff780feca4f1b2dd5c1b7cf692781070d49df7cb.
Patch contributed by Alex Dowad <alexinbeijing@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350280 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-04 06:49:52 +00:00
Christoph Michael Becker
488b11037f
Fully document behavior of negative arguments to mb_strcut
...
When reading the source code, I noticed there is some special handling of
negative 'start' and 'length' arguments which is not mentioned in the
manual.
Patch contributed by Alex Dowad.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350143 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-12 10:09:21 +00:00
Nikita Popov
8ca69ba3fb
Update flag --with-onig information
...
Patch by demiurge-ash.
Closes php/doc-en#80 .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349764 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-10 08:37:01 +00:00
Christoph Michael Becker
9e4c917c09
Fix other miscellaneous typos
...
Detected by codespell
Patch provided by tandre@php.net .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349709 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-27 06:50:00 +00:00
George Peter Banyard
ce86a92f2a
Add some explanations to the MB_CASE_* constants.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349616 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-05 01:22:37 +00:00