mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

To limit the acceptable range of acceptable unicode chars via individual ones or via a pattern.
79 lines
2.7 KiB
PHP
79 lines
2.7 KiB
PHP
<?php
|
|
|
|
/** @generate-class-entries */
|
|
|
|
/** @not-serializable */
|
|
class Spoofchecker
|
|
{
|
|
/** @cvalue USPOOF_SINGLE_SCRIPT_CONFUSABLE */
|
|
public const int SINGLE_SCRIPT_CONFUSABLE = UNKNOWN;
|
|
/** @cvalue USPOOF_MIXED_SCRIPT_CONFUSABLE */
|
|
public const int MIXED_SCRIPT_CONFUSABLE = UNKNOWN;
|
|
/** @cvalue USPOOF_WHOLE_SCRIPT_CONFUSABLE */
|
|
public const int WHOLE_SCRIPT_CONFUSABLE = UNKNOWN;
|
|
/** @cvalue USPOOF_ANY_CASE */
|
|
public const int ANY_CASE = UNKNOWN;
|
|
/** @cvalue USPOOF_SINGLE_SCRIPT */
|
|
public const int SINGLE_SCRIPT = UNKNOWN;
|
|
/** @cvalue USPOOF_INVISIBLE */
|
|
public const int INVISIBLE = UNKNOWN;
|
|
/** @cvalue USPOOF_CHAR_LIMIT */
|
|
public const int CHAR_LIMIT = UNKNOWN;
|
|
#if U_ICU_VERSION_MAJOR_NUM >= 58
|
|
/** @cvalue USPOOF_ASCII */
|
|
public const int ASCII = UNKNOWN;
|
|
/** @cvalue USPOOF_HIGHLY_RESTRICTIVE */
|
|
public const int HIGHLY_RESTRICTIVE = UNKNOWN;
|
|
/** @cvalue USPOOF_MODERATELY_RESTRICTIVE */
|
|
public const int MODERATELY_RESTRICTIVE = UNKNOWN;
|
|
/** @cvalue USPOOF_MINIMALLY_RESTRICTIVE */
|
|
public const int MINIMALLY_RESTRICTIVE = UNKNOWN;
|
|
/** @cvalue USPOOF_UNRESTRICTIVE */
|
|
public const int UNRESTRICTIVE = UNKNOWN;
|
|
/** @cvalue USPOOF_SINGLE_SCRIPT_RESTRICTIVE */
|
|
public const int SINGLE_SCRIPT_RESTRICTIVE = UNKNOWN;
|
|
/** @cvalue USPOOF_MIXED_NUMBERS */
|
|
public const int MIXED_NUMBERS = UNKNOWN;
|
|
#endif
|
|
#if U_ICU_VERSION_MAJOR_NUM >= 62
|
|
/** @cvalue USPOOF_HIDDEN_OVERLAY */
|
|
public const int HIDDEN_OVERLAY = UNKNOWN;
|
|
#endif
|
|
|
|
/** @cvalue USET_IGNORE_SPACE */
|
|
public const int IGNORE_SPACE = UNKNOWN;
|
|
/** @cvalue USET_CASE_INSENSITIVE */
|
|
public const int CASE_INSENSITIVE = UNKNOWN;
|
|
/** @cvalue USET_ADD_CASE_MAPPINGS */
|
|
public const int ADD_CASE_MAPPINGS = UNKNOWN;
|
|
#if U_ICU_VERSION_MAJOR_NUM >= 73
|
|
/** @cvalue USET_SIMPLE_CASE_INSENSITIVE */
|
|
public const int SIMPLE_CASE_INSENSITIVE = UNKNOWN;
|
|
#endif
|
|
|
|
public function __construct() {}
|
|
|
|
/**
|
|
* @param int $errorCode
|
|
* @tentative-return-type
|
|
*/
|
|
public function isSuspicious(string $string, &$errorCode = null): bool {}
|
|
|
|
/**
|
|
* @param int $errorCode
|
|
* @tentative-return-type
|
|
*/
|
|
public function areConfusable(string $string1, string $string2, &$errorCode = null): bool {}
|
|
|
|
/** @tentative-return-type */
|
|
public function setAllowedLocales(string $locales): void {}
|
|
|
|
/** @tentative-return-type */
|
|
public function setChecks(int $checks): void {}
|
|
|
|
#if U_ICU_VERSION_MAJOR_NUM >= 58
|
|
/** @tentative-return-type */
|
|
public function setRestrictionLevel(int $level): void {}
|
|
#endif
|
|
public function setAllowedChars(string $pattern, int $patternOptions = 0): void {}
|
|
}
|