Versions in this module Expand all Collapse all v1 v1.0.0 Aug 17, 2025 Changes in this version + func Utf16CodeUnits(str string) int + type String interface + CodePoints func() int + CodeUnits func() int + String func() string + type Utf16 []uint16 + func NewUtf16(s string) Utf16 + func (s *Utf16) AppendRunes(r []rune) + func (s *Utf16) Write(p []byte) (n int, err error) + func (s *Utf16) WriteString(str string) (n int, err error) + func (s Utf16) CodePoints() int + func (s Utf16) CodeUnits() int + func (s Utf16) String() string + type Utf32 []rune + func NewUtf32(s string) Utf32 + func (s *Utf32) AppendRunes(r []rune) + func (s *Utf32) Write(p []byte) (n int, err error) + func (s *Utf32) WriteString(str string) (n int, err error) + func (s Utf32) CodePoints() int + func (s Utf32) CodeUnits() int + func (s Utf32) String() string + type Utf8 string + func NewUtf8(s string) Utf8 + func (s Utf8) CodePoints() int + func (s Utf8) CodeUnits() int + func (s Utf8) String() string