Documentation
¶
Overview ¶
Package util provides various things used by other packages in this module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteLowercase ¶
ByteLowercase returns a byte-lowercase version of ASCII string str.
func ByteUppercase ¶ added in v0.5.0
ByteUppercase returns a byte-uppercase version of ASCII string str.
Types ¶
type ASCIISet ¶ added in v0.3.0
type ASCIISet [8]uint32
An ASCIISet represents a set of ASCII bytes.
func MakeASCIISet ¶ added in v0.3.0
MakeASCIISet creates a set of ASCII characters and reports whether all characters in chars are ASCII. All bytes in chars are assumed to be less < utf8.RuneSelf. This implementation is adapted from that of the strings package.
type Set ¶
type Set SortedSet
A Set represents a set of strings.
type SortedSet ¶
type SortedSet struct {
// contains filtered or unexported fields
}
A SortedSet represents a set of strings sorted in lexicographical order. Each element has a unique position ranging from 0 (inclusive) to the set's cardinality (exclusive). The zero value represents an empty set.
func (SortedSet) IndexAfter ¶ added in v0.5.6
IndexAfter returns the position of e in set if it occurs after the first n+1 elements of set, or -1 otherwise.
Precondition: n < set.Size().