Pegmatite::Pattern::UnicodeRange
Inherits Pegmatite::Pattern < Pegmatite::DSL::Methods < Reference < Object
Pattern::UnicodeRange is used to consume a single character from within a specified contiguous range of acceptable codepoints.
Parsing will fail if a valid UTF-32 codepoint couldn't be parsed, or if the parsed codepoint didn't fall in the specified range. Otherwise, the pattern succeeds, consuming the matched bytes.
Constructors
Instance methods
_match(source, offset, state) : MatchResult
Sourcedescription
Sourcedsl_name
Sourceinspect(io)
Source