utf8

package
v0.0.0-...-e02543e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Range

type Range struct {
	Start byte
	End   byte
}

Range describes a single range of byte values

func (Range) String

func (u Range) String() string

type Sequence

type Sequence []*Range

Sequence is a collection of *Range

func SequenceFromEncodedRange

func SequenceFromEncodedRange(start, end []byte) (Sequence, error)

SequenceFromEncodedRange creates sequence from the encoded bytes

func (Sequence) Matches

func (u Sequence) Matches(bytes []byte) bool

Matches checks to see if the provided byte slice matches the Sequence

func (Sequence) String

func (u Sequence) String() string

type Sequences

type Sequences []Sequence

Sequences is a collection of Sequence

func NewSequences

func NewSequences(start, end rune) (Sequences, error)

NewSequences constructs a collection of Sequence which describe the byte ranges covered between the start and end runes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL