Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidUTF8 = errors.New("invalid UTF-8")
ErrInvalidUTF8 is returned in ErrorModeStrict when the input to Encode or Count, or the output of Decode, is not valid UTF-8.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
func NewCl100kBase ¶
func NewCl100kBase() *Codec
func NewO200kBase ¶ added in v0.2.0
func NewO200kBase() *Codec
func NewP50kBase ¶
func NewP50kBase() *Codec
func NewP50kEdit ¶
func NewP50kEdit() *Codec
func NewR50kBase ¶
func NewR50kBase() *Codec
func (*Codec) SetErrorMode ¶ added in v0.9.0
SetErrorMode sets the codec's behavior for invalid UTF-8 sequences.
Click to show internal directories.
Click to hide internal directories.