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.crEnum 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
-
#all_checks?
Returns
trueif this enum value containsAllChecks -
#any_case?
Returns
trueif this enum value containsAnyCase -
#aux_info?
Returns
trueif this enum value containsAuxInfo -
#char_limit?
Returns
trueif this enum value containsCharLimit -
#confusable?
Returns
trueif this enum value containsConfusable -
#hidden_overlay?
Returns
trueif this enum value containsHiddenOverlay -
#invisible?
Returns
trueif this enum value containsInvisible -
#mixed_numbers?
Returns
trueif this enum value containsMixedNumbers -
#mixed_script_confusable?
Returns
trueif this enum value containsMixedScriptConfusable - #none?
-
#restriction_level?
Returns
trueif this enum value containsRestrictionLevel -
#single_script?
Returns
trueif this enum value containsSingleScript -
#single_script_confusable?
Returns
trueif this enum value containsSingleScriptConfusable -
#whole_script_confusable?
Returns
trueif this enum value containsWholeScriptConfusable