Documentation ¶
Overview ¶
Package utf8 provides a mockable wrapper for unicode/utf8.
Index ¶
- type Impl
- func (*Impl) AppendRune(p []byte, r rune) []byte
- func (*Impl) DecodeLastRune(p []byte) (r rune, size int)
- func (*Impl) DecodeLastRuneInString(s string) (r rune, size int)
- func (*Impl) DecodeRune(p []byte) (r rune, size int)
- func (*Impl) DecodeRuneInString(s string) (r rune, size int)
- func (*Impl) EncodeRune(p []byte, r rune) int
- func (*Impl) FullRune(p []byte) bool
- func (*Impl) FullRuneInString(s string) bool
- func (*Impl) RuneCount(p []byte) int
- func (*Impl) RuneCountInString(s string) (n int)
- func (*Impl) RuneLen(r rune) int
- func (*Impl) RuneStart(b byte) bool
- func (*Impl) Valid(p []byte) bool
- func (*Impl) ValidRune(r rune) bool
- func (*Impl) ValidString(s string) bool
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) DecodeLastRuneInString ¶
func (*Impl) FullRuneInString ¶
func (*Impl) RuneCountInString ¶
func (*Impl) ValidString ¶
type Interface ¶
type Interface interface { AppendRune(p []byte, r rune) []byte DecodeLastRune(p []byte) (r rune, size int) DecodeLastRuneInString(s string) (r rune, size int) DecodeRune(p []byte) (r rune, size int) DecodeRuneInString(s string) (r rune, size int) EncodeRune(p []byte, r rune) int FullRune(p []byte) bool FullRuneInString(s string) bool RuneCount(p []byte) int RuneCountInString(s string) (n int) RuneLen(r rune) int RuneStart(b byte) bool Valid(p []byte) bool ValidRune(r rune) bool ValidString(s string) bool }
Click to show internal directories.
Click to hide internal directories.