enum ICU::SpoofChecker::Check

Overview

FIXME should be present in LibICU (not parsed by Libgen)

Bitmask flags controlling which spoof checks are performed. Corresponds to ICU's USpoofChecks enum. Multiple flags can be combined with |.

Defined in:

icu/spoof_checker.cr

Enum Members

SingleScriptConfusable = 1

Check that a string is not confusable with another based on a single script (e.g. all-Latin lookalikes).

MixedScriptConfusable = 2

Check that a string is not confusable when comparing across scripts.

WholeScriptConfusable = 4

Check that a string is not whole-script confusable with another.

Confusable = 7

All three confusability checks combined.

AnyCase = 8

Apply confusability checks regardless of case.

RestrictionLevel = 16

Check that the string conforms to the configured restriction_level.

SingleScript = 16

Deprecated alias for RestrictionLevel.

Invisible = 32

Check for invisible characters (zero-width, etc.).

CharLimit = 64

Check that all characters are in the allowed character set.

MixedNumbers = 128

Check that all numeric characters are from the same decimal system.

HiddenOverlay = 256

Check for hidden overlay confusables (BiDi-related).

AllChecks = 65535

Enable all checks.

AuxInfo = 1073741824

Return auxiliary information about the check result.

None = 0
All = 1073807359

Instance Method Summary

Instance Method Detail

def all_checks? #

[View source]
def any_case? #

[View source]
def aux_info? #

[View source]
def char_limit? #

[View source]
def confusable? #

[View source]
def hidden_overlay? #

[View source]
def invisible? #

[View source]
def mixed_numbers? #

[View source]
def mixed_script_confusable? #

[View source]
def none? #

[View source]
def restriction_level? #

[View source]
def single_script? #

[View source]
def single_script_confusable? #

[View source]
def whole_script_confusable? #

[View source]