class

Crowbar::Selectors::CharacterClass

Inherits Crowbar::Selector < Reference < Object

Selects contiguous byte sequences matching specified character classes: :digits, :hex, :alpha, :alphanumeric, :printable, :whitespace, :high_bytes.

Constructors

new(kind : Kind | Symbol, min_length : Int32 = 1, weight : Float64 = 1.0)
Source

Instance methods

kind
Source
min_length
Source
select(buffer : Buffer) : Array(Tuple(Int32, Int32))

Returns an array of target ranges {start_index, end_index_exclusive}

Source

Nested types