1<?php
2
3/** @generate-class-entries */
4
5/** @not-serializable */
6class Spoofchecker
7{
8    /** @cvalue USPOOF_SINGLE_SCRIPT_CONFUSABLE */
9    public const int SINGLE_SCRIPT_CONFUSABLE = UNKNOWN;
10    /** @cvalue USPOOF_MIXED_SCRIPT_CONFUSABLE */
11    public const int MIXED_SCRIPT_CONFUSABLE = UNKNOWN;
12    /** @cvalue USPOOF_WHOLE_SCRIPT_CONFUSABLE */
13    public const int WHOLE_SCRIPT_CONFUSABLE = UNKNOWN;
14    /** @cvalue USPOOF_ANY_CASE */
15    public const int ANY_CASE = UNKNOWN;
16    /** @cvalue USPOOF_SINGLE_SCRIPT */
17    public const int SINGLE_SCRIPT = UNKNOWN;
18    /** @cvalue USPOOF_INVISIBLE */
19    public const int INVISIBLE = UNKNOWN;
20    /** @cvalue USPOOF_CHAR_LIMIT */
21    public const int CHAR_LIMIT = UNKNOWN;
22#if U_ICU_VERSION_MAJOR_NUM >= 58
23    /** @cvalue USPOOF_ASCII */
24    public const int ASCII = UNKNOWN;
25    /** @cvalue USPOOF_HIGHLY_RESTRICTIVE */
26    public const int HIGHLY_RESTRICTIVE = UNKNOWN;
27    /** @cvalue USPOOF_MODERATELY_RESTRICTIVE */
28    public const int MODERATELY_RESTRICTIVE = UNKNOWN;
29    /** @cvalue USPOOF_MINIMALLY_RESTRICTIVE */
30    public const int MINIMALLY_RESTRICTIVE = UNKNOWN;
31    /** @cvalue USPOOF_UNRESTRICTIVE */
32    public const int UNRESTRICTIVE = UNKNOWN;
33    /** @cvalue USPOOF_SINGLE_SCRIPT_RESTRICTIVE */
34    public const int SINGLE_SCRIPT_RESTRICTIVE = UNKNOWN;
35    /** @cvalue USPOOF_MIXED_NUMBERS */
36    public const int MIXED_NUMBERS = UNKNOWN;
37#endif
38#if U_ICU_VERSION_MAJOR_NUM >= 62
39    /** @cvalue USPOOF_HIDDEN_OVERLAY */
40    public const int HIDDEN_OVERLAY = UNKNOWN;
41#endif
42
43    /** @cvalue USET_IGNORE_SPACE */
44    public const int IGNORE_SPACE = UNKNOWN;
45    /** @cvalue USET_CASE_INSENSITIVE */
46    public const int CASE_INSENSITIVE = UNKNOWN;
47    /** @cvalue USET_ADD_CASE_MAPPINGS */
48    public const int ADD_CASE_MAPPINGS = UNKNOWN;
49#if U_ICU_VERSION_MAJOR_NUM >= 73
50    /** @cvalue USET_SIMPLE_CASE_INSENSITIVE */
51    public const int SIMPLE_CASE_INSENSITIVE = UNKNOWN;
52#endif
53
54    public function __construct() {}
55
56    /**
57     * @param int $errorCode
58     * @tentative-return-type
59     */
60    public function isSuspicious(string $string, &$errorCode = null): bool {}
61
62    /**
63     * @param int $errorCode
64     * @tentative-return-type
65     */
66    public function areConfusable(string $string1, string $string2, &$errorCode = null): bool {}
67
68    /** @tentative-return-type */
69    public function setAllowedLocales(string $locales): void {}
70
71    /** @tentative-return-type */
72    public function setChecks(int $checks): void {}
73
74#if U_ICU_VERSION_MAJOR_NUM >= 58
75    /** @tentative-return-type */
76    public function setRestrictionLevel(int $level): void {}
77#endif
78    public function setAllowedChars(string $pattern, int $patternOptions = 0): void {}
79}
80