rangetableh

package
v0.0.0-...-61d31b1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MinR32 = 1 << 16 // Minimal possible value for R32 (all smaller value should be in R16).

Variables

This section is empty.

Functions

func Copy

func DeleteRunes

func DeleteRunes(t *unicode.RangeTable, r ...rune) *unicode.RangeTable

returns copy of past RangeTable

func FromRuneRange

func FromRuneRange(lo, hi rune) *unicode.RangeTable

func GoString

func GoString(r *unicode.RangeTable) (str string)

func Hi

func Hi(rt *unicode.RangeTable) rune

-1 if no runes

func Intersect

func Intersect(rts ...*unicode.RangeTable) *unicode.RangeTable

func Invert

func Invert(b ...*unicode.RangeTable) *unicode.RangeTable

=Sub(0, MaxRune, b)

func Lo

func Lo(rt *unicode.RangeTable) rune

-1 if no runes

func RangesCount

func RangesCount(rt *unicode.RangeTable) int

TODO may be hide this general-useless function???

func RawRangesCount

func RawRangesCount(rt *unicode.RangeTable) int

func RuneCount

func RuneCount(rt *unicode.RangeTable) (count int)

func RuneCount16

func RuneCount16(range16 unicode.Range16) int

func RuneCount32

func RuneCount32(range32 unicode.Range32) int

func Runes

func Runes(t *unicode.RangeTable) []rune

func Sub

func Sub(lo, hi rune, b ...*unicode.RangeTable) *unicode.RangeTable

={lo,hi}-b0..-bi

Types

type Iterator

type Iterator struct {
	// contains filtered or unexported fields
}

func Start

func Start(rt *unicode.RangeTable) *Iterator

func (*Iterator) End

func (iter *Iterator) End() bool

func (*Iterator) Next

func (iter *Iterator) Next()

func (*Iterator) Value

func (iter *Iterator) Value() rune

-1 if end

Jump to

Keyboard shortcuts

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