Documentation
¶
Overview ¶
Package runes provides interfaces and utilities for working with runes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
Buffer is an interface for accessing a contiguous array of code points.
func NewBuffer ¶
NewBuffer returns an efficient implementation of Buffer for the given text based on the ranges of the encoded code points contained within.
func NewBufferAndLineOffsets ¶ added in v0.21.0
NewBufferAndLineOffsets returns an efficient implementation of Buffer for the given text based on the ranges of the encoded code points contained within, as well as returning the line offsets.
func NewBufferAndLineOffsetsWithLimit ¶ added in v0.29.0
NewBufferAndLineOffsetsWithLimit returns an efficient implementation of Buffer for the given text and enforces a code point limit while constructing the buffer.
type SizeLimitError ¶ added in v0.29.0
SizeLimitError indicates that the input exceeded the configured code point limit.
func (*SizeLimitError) Error ¶ added in v0.29.0
func (e *SizeLimitError) Error() string