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 Details

    • 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:
    • 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.
  • Constructor Details

    • CheckResult

      public CheckResult()
      Default constructor
  • Method Details