class ICU::SpoofChecker::CheckResult

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def checks : Int32 #

Returns the bitmask of failed checks from the last SpoofChecker#check call.


[View source]
def finalize #

[View source]
def numerics : Set(Char) #

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.


[View source]
def restriction_level : RestrictionLevel #

Returns the restriction level of the identifier from the last SpoofChecker#check call.


[View source]
def to_unsafe : LibICU::USpoofCheckResult #

[View source]