diff --git a/reference/intl/book.xml b/reference/intl/book.xml index 6c616267c2..672b47e2ea 100644 --- a/reference/intl/book.xml +++ b/reference/intl/book.xml @@ -95,6 +95,7 @@ &reference.intl.messageformatter; &reference.intl.dateformatter; &reference.intl.resourcebundle; + &reference.intl.spoofchecker; &reference.intl.transliterator; &reference.intl.grapheme; diff --git a/reference/intl/spoofchecker.xml b/reference/intl/spoofchecker.xml new file mode 100644 index 0000000000..8a75949674 --- /dev/null +++ b/reference/intl/spoofchecker.xml @@ -0,0 +1,172 @@ + + + + + + The Spoofchecker class + Spoofchecker + + + + +
+ &reftitle.intro; + + + +
+ + +
+ &reftitle.classsynopsis; + + + + Spoofchecker + + + + + Spoofchecker + + + + Constants + + const + integer + Spoofchecker::SINGLE_SCRIPT_CONFUSABLE + 1 + + + const + integer + Spoofchecker::MIXED_SCRIPT_CONFUSABLE + 2 + + + const + integer + Spoofchecker::WHOLE_SCRIPT_CONFUSABLE + 4 + + + const + integer + Spoofchecker::ANY_CASE + 8 + + + const + integer + Spoofchecker::SINGLE_SCRIPT + 16 + + + const + integer + Spoofchecker::INVISIBLE + 32 + + + const + integer + Spoofchecker::CHAR_LIMIT + 64 + + + &Methods; + + + + +
+ + +
+ &reftitle.constants; +
+ Spoofchecker Node Types + + + + Spoofchecker::SINGLE_SCRIPT_CONFUSABLE + + + + + + + Spoofchecker::MIXED_SCRIPT_CONFUSABLE + + + + + + + Spoofchecker::WHOLE_SCRIPT_CONFUSABLE + + + + + + + Spoofchecker::ANY_CASE + + + + + + + Spoofchecker::SINGLE_SCRIPT + + + + + + + Spoofchecker::INVISIBLE + + + + + + + Spoofchecker::CHAR_LIMIT + + + + + + +
+
+ + + +
+ + &reference.intl.entities.spoofchecker; + +
+ + diff --git a/reference/intl/spoofchecker/areconfusable.xml b/reference/intl/spoofchecker/areconfusable.xml new file mode 100644 index 0000000000..ff267bc24f --- /dev/null +++ b/reference/intl/spoofchecker/areconfusable.xml @@ -0,0 +1,85 @@ + + + + + + Spoofchecker::areConfusable + Checks if a given text contains any confusable characters + + + + &reftitle.description; + + public boolSpoofchecker::areConfusable + strings1 + strings2 + stringerror + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + s1 + + + + + + + + s2 + + + + + + + + error + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/reference/intl/spoofchecker/construct.xml b/reference/intl/spoofchecker/construct.xml new file mode 100644 index 0000000000..d4ccae472c --- /dev/null +++ b/reference/intl/spoofchecker/construct.xml @@ -0,0 +1,58 @@ + + + + + + Spoofchecker::__construct + Constructor + + + + &reftitle.description; + + Spoofchecker::__construct + + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/reference/intl/spoofchecker/issuspicious.xml b/reference/intl/spoofchecker/issuspicious.xml new file mode 100644 index 0000000000..9e2e85f3d2 --- /dev/null +++ b/reference/intl/spoofchecker/issuspicious.xml @@ -0,0 +1,76 @@ + + + + + + Spoofchecker::isSuspicious + Checks if a given text contains any suspicious characters + + + + &reftitle.description; + + public boolSpoofchecker::isSuspicious + stringtext + stringerror + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + text + + + + + + + + error + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/reference/intl/spoofchecker/setallowedlocales.xml b/reference/intl/spoofchecker/setallowedlocales.xml new file mode 100644 index 0000000000..a601ab8a43 --- /dev/null +++ b/reference/intl/spoofchecker/setallowedlocales.xml @@ -0,0 +1,67 @@ + + + + + + Spoofchecker::setAllowedLocales + Locales to use when running checks + + + + &reftitle.description; + + public voidSpoofchecker::setAllowedLocales + stringlocale_list + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + locale_list + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + + diff --git a/reference/intl/spoofchecker/setchecks.xml b/reference/intl/spoofchecker/setchecks.xml new file mode 100644 index 0000000000..a6fe8b5b16 --- /dev/null +++ b/reference/intl/spoofchecker/setchecks.xml @@ -0,0 +1,67 @@ + + + + + + Spoofchecker::setChecks + Set the checks to run + + + + &reftitle.description; + + public voidSpoofchecker::setChecks + stringchecks + + + + + + &warn.undocumented.func; + + + + + &reftitle.parameters; + + + checks + + + + + + + + + + + &reftitle.returnvalues; + + + + + + + + +