Versions in this module Expand all Collapse all v1 v1.4.3 Aug 16, 2023 v1.4.2 Aug 16, 2023 Changes in this version + const CESU8 + const CESUMax + const UTF8 + func DecodeRune(p []byte) (rune, int) + func DefaultDecoder() transform.Transformer + func DefaultEncoder() transform.Transformer + func EncodeRune(p []byte, r rune) int + func FullRune(p []byte) bool + func ReplaceErrorHandler(err *DecodeError) (rune, error) + func RuneLen(r rune) int + func Size(p []byte) int + func StringSize(s string) int + type DecodeError struct + func (e *DecodeError) Enc() string + func (e *DecodeError) Error() string + func (e *DecodeError) Pos() int + func (e *DecodeError) Value() []byte + type Decoder struct + func NewDecoder(errorHandler func(err *DecodeError) (rune, error)) *Decoder + func (d *Decoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) + type Encoder struct + func NewEncoder(errorHandler func(err *DecodeError) (rune, error)) *Encoder + func (e *Encoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error)