runeset

package
v0.0.0-...-d977049 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package runeset implements a set of runes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuneSet

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

RuneSet holds a set of rune

func New

func New() *RuneSet

New returns a new RuneSet

func (*RuneSet) Add

func (rs *RuneSet) Add(r rune)

Add adds r to rs

func (*RuneSet) Contains

func (rs *RuneSet) Contains(r rune) bool

Contains returns true iff r is in rs

func (*RuneSet) Elements

func (rs *RuneSet) Elements() []rune

Elements returns the runes in rs sorted in ascending order

func (*RuneSet) Empty

func (rs *RuneSet) Empty() bool

Empty returns true iff rs has no elements

func (*RuneSet) Equal

func (rs *RuneSet) Equal(rs1 *RuneSet) bool

Equal returns true iff rs and rs1 have the same elements

func (*RuneSet) Intersection

func (rs *RuneSet) Intersection(rs1 *RuneSet) *RuneSet

Intersection contains all elements common to rs and rs1

func (*RuneSet) String

func (rs *RuneSet) String() string

func (*RuneSet) Subset

func (rs *RuneSet) Subset(rs1 *RuneSet) bool

Subset returns true iff every element of rs is in rs1

Jump to

Keyboard shortcuts

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