Package com.ibm.icu.text
Class SpoofChecker.CheckResult
- java.lang.Object
-
- com.ibm.icu.text.SpoofChecker.CheckResult
-
- Enclosing class:
- SpoofChecker
public static class SpoofChecker.CheckResult extends Object
A struct-like class to hold the results of a Spoof Check operation. Tells which check(s) have failed.
-
-
Field Summary
Fields Modifier and Type Field Description int
checks
Indicates which of the spoof check(s) have failed.UnicodeSet
numerics
The numerics found in the string, if MIXED_NUMBERS was set; otherwise null.int
position
Deprecated.ICU 51.SpoofChecker.RestrictionLevel
restrictionLevel
The restriction level that the text meets, if RESTRICTION_LEVEL is set; otherwise null.
-
Constructor Summary
Constructors Constructor Description CheckResult()
Default constructor
-
-
-
Field Detail
-
checks
public int checks
Indicates which of the spoof check(s) have failed. The value is a bitwise OR of the constants for the tests in question: RESTRICTION_LEVEL, CHAR_LIMIT, and so on.- See Also:
SpoofChecker.Builder.setChecks(int)
-
position
@Deprecated public int position
Deprecated.ICU 51. No longer supported. Always set to zero.The index of the first string position that failed a check.
-
numerics
public UnicodeSet numerics
The numerics found in the string, if MIXED_NUMBERS was set; otherwise null. The set will contain the zero digit from each decimal number system found in the input string.
-
restrictionLevel
public SpoofChecker.RestrictionLevel restrictionLevel
The restriction level that the text meets, if RESTRICTION_LEVEL is set; otherwise null.
-
-