forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspoofchecker.stub.php
79 lines (70 loc) · 2.67 KB
/
spoofchecker.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?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 {}
}