class ICU::SpoofChecker::CheckResult
- ICU::SpoofChecker::CheckResult
- Reference
- Object
Overview
Holds the detailed outcome of a #check call.
result = ICU::SpoofChecker::CheckResult.new
sc.check("hello", result)
result.restriction_level # => ICU::SpoofChecker::RestrictionLevel::Ascii
Defined in:
icu/spoof_checker.crConstructors
Instance Method Summary
-
#checks : Int32
Returns the bitmask of failed checks from the last
SpoofChecker#checkcall. - #finalize
-
#numerics : Set(Char)
Returns the set of numerics from different decimal systems found in the identifier from the last
SpoofChecker#checkcall. -
#restriction_level : RestrictionLevel
Returns the restriction level of the identifier from the last
SpoofChecker#checkcall. - #to_unsafe : LibICU::USpoofCheckResult
Constructor Detail
Instance Method Detail
Returns the set of numerics from different decimal systems found in the
identifier from the last SpoofChecker#check call.
The returned USet is borrowed (not owned); do not hold onto it beyond
the lifetime of this CheckResult.
def restriction_level : RestrictionLevel
#
Returns the restriction level of the identifier from the last SpoofChecker#check call.