Mangler.Validate (mangler v0.1.0) View Source

functions to validate the character sets of input string

Link to this section Summary

Functions

Determines whether the given string is considered ASCII printable.

Determines whether the given string is a valid unicode letter. It also returns true for any characters provided to the allowlist.

Link to this section Types

Specs

opts() :: [{:allow, [String.t()]}]

Link to this section Functions

Link to this function

ascii_printable?(string)

View Source

Specs

ascii_printable?(String.t()) :: boolean()

Determines whether the given string is considered ASCII printable.

Link to this function

unicode_letters?(string, opts \\ [])

View Source

Specs

unicode_letters?(String.t(), opts()) :: boolean()

Determines whether the given string is a valid unicode letter. It also returns true for any characters provided to the allowlist.