From 92f1b8b177eb5730382abf9f27bae868f1bb636f Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Sat, 12 Dec 2020 16:32:35 +0000 Subject: [PATCH] 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 --- .../mbstring/functions/mb-check-encoding.xml | 17 ++++--- reference/mbstring/functions/mb-chr.xml | 25 ++++++++--- .../mbstring/functions/mb-convert-case.xml | 7 ++- .../functions/mb-convert-encoding.xml | 25 ++++++----- .../mbstring/functions/mb-convert-kana.xml | 30 ++++++++++--- .../functions/mb-convert-variables.xml | 5 +-- .../functions/mb-decode-mimeheader.xml | 7 ++- .../functions/mb-decode-numericentity.xml | 37 +++++++++++----- .../mbstring/functions/mb-detect-encoding.xml | 17 ++++--- .../mbstring/functions/mb-detect-order.xml | 30 ++++++++++--- .../functions/mb-encode-mimeheader.xml | 44 ++++++++++++++----- .../functions/mb-encode-numericentity.xml | 38 +++++++++++----- .../functions/mb-encoding-aliases.xml | 4 +- .../mbstring/functions/mb-ereg-match.xml | 27 ++++++++++-- .../functions/mb-ereg-replace-callback.xml | 40 +++++++++++++++-- .../mbstring/functions/mb-ereg-replace.xml | 29 ++++++++++-- .../functions/mb-ereg-search-getregs.xml | 5 +-- .../functions/mb-ereg-search-init.xml | 31 +++++++++++-- .../mbstring/functions/mb-ereg-search-pos.xml | 33 +++++++++++--- .../functions/mb-ereg-search-regs.xml | 33 +++++++++++--- .../functions/mb-ereg-search-setpos.xml | 7 ++- .../mbstring/functions/mb-ereg-search.xml | 31 +++++++++++-- reference/mbstring/functions/mb-ereg.xml | 35 ++++++++------- .../mbstring/functions/mb-eregi-replace.xml | 26 ++++++++--- reference/mbstring/functions/mb-eregi.xml | 35 ++++++++------- reference/mbstring/functions/mb-get-info.xml | 6 +-- .../mbstring/functions/mb-http-input.xml | 34 +++++++++++--- .../mbstring/functions/mb-http-output.xml | 22 ++++++++-- .../functions/mb-internal-encoding.xml | 24 ++++++++-- reference/mbstring/functions/mb-language.xml | 33 ++++++++++---- reference/mbstring/functions/mb-ord.xml | 25 ++++++++--- .../mbstring/functions/mb-output-handler.xml | 5 +-- reference/mbstring/functions/mb-parse-str.xml | 5 +-- .../functions/mb-preferred-mime-name.xml | 6 +-- .../mbstring/functions/mb-regex-encoding.xml | 6 +-- .../functions/mb-regex-set-options.xml | 13 ++++-- reference/mbstring/functions/mb-scrub.xml | 25 ++++++++--- reference/mbstring/functions/mb-send-mail.xml | 15 ++++--- reference/mbstring/functions/mb-str-split.xml | 36 ++++++++++++--- reference/mbstring/functions/mb-strcut.xml | 36 ++++++++++----- .../mbstring/functions/mb-strimwidth.xml | 18 ++++---- reference/mbstring/functions/mb-stripos.xml | 6 +-- reference/mbstring/functions/mb-stristr.xml | 40 +++++++---------- reference/mbstring/functions/mb-strlen.xml | 26 ++++++++--- reference/mbstring/functions/mb-strpos.xml | 4 +- reference/mbstring/functions/mb-strrchr.xml | 26 ++++++++--- reference/mbstring/functions/mb-strrichr.xml | 44 +++++++------------ reference/mbstring/functions/mb-strripos.xml | 40 +++++++---------- reference/mbstring/functions/mb-strrpos.xml | 22 ++++++++-- reference/mbstring/functions/mb-strstr.xml | 40 +++++++---------- .../mbstring/functions/mb-strtolower.xml | 11 +++-- .../mbstring/functions/mb-strtoupper.xml | 11 +++-- reference/mbstring/functions/mb-strwidth.xml | 28 +++++++++--- .../functions/mb-substitute-character.xml | 37 +++++++++++++--- .../mbstring/functions/mb-substr-count.xml | 20 ++++++++- reference/mbstring/functions/mb-substr.xml | 36 ++++++++++----- 56 files changed, 915 insertions(+), 403 deletions(-) diff --git a/reference/mbstring/functions/mb-check-encoding.xml b/reference/mbstring/functions/mb-check-encoding.xml index 9b810df6c4..c4095c6bd4 100644 --- a/reference/mbstring/functions/mb-check-encoding.xml +++ b/reference/mbstring/functions/mb-check-encoding.xml @@ -10,12 +10,12 @@ &reftitle.description; boolmb_check_encoding - mixedvar&null; - stringencodingmb_internal_encoding() + arraystringnullvalue&null; + stringnullencoding&null; Checks if the specified byte stream is valid for the specified encoding. - If var is of type &array;, all keys and values are + If value is of type &array;, all keys and values are validated recursively. It is useful to prevent so-called "Invalid Encoding Attack". @@ -28,7 +28,7 @@ - var + value The byte stream or &array; to check. If it is omitted, this function checks @@ -66,10 +66,16 @@ + + 8.0.0 + + value and encoding are nullable now. + + 7.2.0 - This function now also accepts an &array; as var. + This function now also accepts an &array; as value. Formerly, only &string;s have been supported. @@ -79,7 +85,6 @@ - - mb_chr @@ -11,8 +10,8 @@ &reftitle.description; stringfalsemb_chr - intcp - stringencoding + intcodepoint + stringnullencoding&null; @@ -26,7 +25,7 @@ &reftitle.parameters; - cp + codepoint @@ -51,6 +50,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &mbstring.changelog.encoding-nullable; + + + + + &reftitle.seealso; @@ -62,7 +78,6 @@ - - diff --git a/reference/mbstring/functions/mb-ereg-match.xml b/reference/mbstring/functions/mb-ereg-match.xml index 5f272ed9b7..31635aa5d0 100644 --- a/reference/mbstring/functions/mb-ereg-match.xml +++ b/reference/mbstring/functions/mb-ereg-match.xml @@ -12,7 +12,7 @@ boolmb_ereg_match stringpattern stringstring - stringoption"msr" + stringnulloptions&null; A regular expression match for a multibyte string @@ -40,7 +40,7 @@ - option + options The search option. See mb_regex_set_options for explanation. @@ -60,6 +60,28 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + options is nullable now. + + + + + + + &reftitle.notes; @@ -77,7 +99,6 @@ - - mb_ord @@ -11,8 +10,8 @@ &reftitle.description; intfalsemb_ord - stringstr - stringencoding + stringstring + stringnullencoding&null; @@ -26,7 +25,7 @@ &reftitle.parameters; - str + string @@ -51,6 +50,23 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &mbstring.changelog.encoding-nullable; + + + + + &reftitle.seealso; @@ -62,7 +78,6 @@ - - mb_scrub @@ -11,8 +10,8 @@ &reftitle.description; stringmb_scrub - stringstr - stringencoding + stringstring + stringnullencoding&null; @@ -26,7 +25,7 @@ &reftitle.parameters; - str + string @@ -51,8 +50,24 @@ - + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + &mbstring.changelog.encoding-nullable; + + + + + - - - - - - - - - - - -