From c67537e2d465eba71540107966fab3607d057fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sun, 5 Sep 2021 13:14:59 +0200 Subject: [PATCH] Generate ext/intl methodsynopses from stubs (Spoofchecker, Transliterator) Co-authored-by: Christoph M. Becker Closes GH-907. --- reference/intl/spoofchecker.xml | 1 + reference/intl/spoofchecker/areconfusable.xml | 18 +++++++------- reference/intl/spoofchecker/construct.xml | 8 +++---- reference/intl/spoofchecker/issuspicious.xml | 14 +++++------ .../intl/spoofchecker/setallowedlocales.xml | 6 ++--- reference/intl/transliterator/construct.xml | 6 ++--- reference/intl/transliterator/create.xml | 14 +++++------ .../intl/transliterator/createfromrules.xml | 18 +++++++------- .../intl/transliterator/createinverse.xml | 14 +++++------ .../intl/transliterator/geterrorcode.xml | 18 +++++++------- .../intl/transliterator/geterrormessage.xml | 18 +++++++------- reference/intl/transliterator/listids.xml | 10 ++++---- .../intl/transliterator/transliterate.xml | 24 +++++++++---------- 13 files changed, 73 insertions(+), 96 deletions(-) diff --git a/reference/intl/spoofchecker.xml b/reference/intl/spoofchecker.xml index 2cc199c50b..82ebaef920 100644 --- a/reference/intl/spoofchecker.xml +++ b/reference/intl/spoofchecker.xml @@ -120,6 +120,7 @@ &Methods; + diff --git a/reference/intl/spoofchecker/areconfusable.xml b/reference/intl/spoofchecker/areconfusable.xml index 5b807c25b6..51abce3c4f 100644 --- a/reference/intl/spoofchecker/areconfusable.xml +++ b/reference/intl/spoofchecker/areconfusable.xml @@ -1,6 +1,5 @@ - Spoofchecker::areConfusable @@ -11,9 +10,9 @@ &reftitle.description; public boolSpoofchecker::areConfusable - stringstr1 - stringstr2 - stringerror + stringstring1 + stringstring2 + interrorCode&null; Checks whether two given strings can easily be mistaken. @@ -24,7 +23,7 @@ &reftitle.parameters; - str1 + string1 First string to check. @@ -32,7 +31,7 @@ - str2 + string2 Second string to check. @@ -40,11 +39,11 @@ - error + errorCode - This variable is set by-reference to string containing an error, if there - were any. + This variable is set by-reference to &integer; containing an error, if there + was any. @@ -79,7 +78,6 @@ $checker->areConfusable('google.com', 'g00g1e.com'); // false - - Spoofchecker::__construct @@ -9,10 +8,10 @@ &reftitle.description; - + public Spoofchecker::__construct - - + + Creates new instance of Spoofchecker. @@ -30,7 +29,6 @@ - - Spoofchecker::isSuspicious @@ -11,8 +10,8 @@ &reftitle.description; public boolSpoofchecker::isSuspicious - stringtext - stringerror + stringstring + interrorCode&null; Checks if given string contains any suspicious characters like letters which @@ -24,7 +23,7 @@ &reftitle.parameters; - text + string String to test. @@ -32,11 +31,11 @@ - error + errorCode - This variable is set by-reference to string containing an error, if there - were any. + This variable is set by-reference to &integer; containing an error, if there + was any. @@ -70,7 +69,6 @@ $checker->isSuspicious('Рaypal.com'); // TRUE - - Spoofchecker::setAllowedLocales @@ -11,7 +10,7 @@ &reftitle.description; public voidSpoofchecker::setAllowedLocales - stringlocale_list + stringlocales @@ -25,7 +24,7 @@ &reftitle.parameters; - locale_list + locales @@ -44,7 +43,6 @@ - - Transliterator::__construct @@ -10,8 +9,8 @@ &reftitle.description; - private Transliterator::__construct - + final private Transliterator::__construct + This method should not be called. Its only purpose is to deny instantiation @@ -48,7 +47,6 @@ - - Transliterator::create @@ -11,16 +10,16 @@ &reftitle.description; &style.oop; - - public static TransliteratorTransliterator::create + + public static TransliteratornullTransliterator::create stringid - intdirection + intdirectionTransliterator::FORWARD &style.procedural; - - Transliteratortransliterator_create + + Transliteratornulltransliterator_create stringid - intdirection + intdirectionTransliterator::FORWARD Opens a Transliterator by ID. @@ -75,7 +74,6 @@ - - Transliterator::createFromRules @@ -11,16 +10,16 @@ &reftitle.description; &style.oop; - - public static TransliteratorTransliterator::createFromRules + + public static TransliteratornullTransliterator::createFromRules stringrules - stringdirection + intdirectionTransliterator::FORWARD &style.procedural; - - Transliteratortransliterator_create_from_rules - stringid - intdirection + + Transliteratornulltransliterator_create_from_rules + stringrules + intdirectionTransliterator::FORWARD Creates a Transliterator from rules. @@ -46,7 +45,7 @@ The direction, defaults to - >Transliterator::FORWARD. + >Transliterator::FORWARD. May also be set to Transliterator::REVERSE. @@ -74,7 +73,6 @@ - - Transliterator::createInverse @@ -11,14 +10,14 @@ &reftitle.description; &style.oop; - - public TransliteratorTransliterator::createInverse - + + public TransliteratornullTransliterator::createInverse + &style.procedural; - - Transliteratortransliterator_create_inverse - + + Transliteratornulltransliterator_create_inverse + Transliteratortransliterator Opens the inverse transliterator. @@ -52,7 +51,6 @@ - - Transliterator::getErrorCode @@ -11,14 +10,14 @@ &reftitle.description; &style.oop; - - public intTransliterator::getErrorCode - - + + public intfalseTransliterator::getErrorCode + + &style.procedural; - - inttransliterator_get_error_code - Transliteratortrans + + intfalsetransliterator_get_error_code + Transliteratortransliterator Gets the last error code for this transliterator. @@ -32,7 +31,7 @@ &reftitle.parameters; - trans + transliterator @@ -60,7 +59,6 @@ - - Transliterator::getErrorMessage @@ -11,14 +10,14 @@ &reftitle.description; &style.oop; - - public stringTransliterator::getErrorMessage - - + + public stringfalseTransliterator::getErrorMessage + + &style.procedural; - - stringtransliterator_get_error_message - Transliteratortrans + + stringfalsetransliterator_get_error_message + Transliteratortransliterator Gets the last error message for this transliterator. @@ -32,7 +31,7 @@ &reftitle.parameters; - trans + transliterator @@ -60,7 +59,6 @@ - - Transliterator::listIDs @@ -11,14 +10,14 @@ &reftitle.description; &style.oop; - + public static arrayfalseTransliterator::listIDs - + &style.procedural; - + arrayfalsetransliterator_list_ids - + Returns an array with the registered transliterator IDs. @@ -82,7 +81,6 @@ Array - - Transliterator::transliterate @@ -11,19 +10,19 @@ &reftitle.description; &style.oop; - + public stringfalseTransliterator::transliterate - stringsubject - intstart - intend + stringstring + intstart0 + intend-1 &style.procedural; - - transliterator_transliterate - mixedtransliterator - stringsubject - intstart - intend + + stringfalsetransliterator_transliterate + Transliteratorstringtransliterator + stringstring + intstart0 + intend-1 Transforms a string or part thereof using an ICU transliterator. @@ -44,7 +43,7 @@ - subject + string The string to be transformed. @@ -128,7 +127,6 @@ echo transliterator_transliterate("Hex-Any/Java", $encSupplChar), "\n"; -