Documentation ¶
Index ¶
- type Charset_8bit
- func (e *Charset_8bit) DecodeRune(bytes []byte) (rune, int)
- func (e *Charset_8bit) EncodeRune(dst []byte, r rune) int
- func (e *Charset_8bit) IsSuperset(other types.Charset) bool
- func (Charset_8bit) Length(src []byte) int
- func (Charset_8bit) MaxWidth() int
- func (e *Charset_8bit) Name() string
- func (Charset_8bit) Slice(src []byte, from, to int) []byte
- func (e *Charset_8bit) SupportsSupplementaryChars() bool
- func (Charset_8bit) Validate(src []byte) bool
- type Charset_binary
- func (c Charset_binary) Convert(_, in []byte, _ types.Charset) ([]byte, error)
- func (c Charset_binary) DecodeRune(bytes []byte) (rune, int)
- func (c Charset_binary) EncodeRune(dst []byte, r rune) int
- func (Charset_binary) IsSuperset(_ types.Charset) bool
- func (Charset_binary) Length(src []byte) int
- func (Charset_binary) MaxWidth() int
- func (Charset_binary) Name() string
- func (Charset_binary) Slice(src []byte, from, to int) []byte
- func (Charset_binary) SupportsSupplementaryChars() bool
- func (Charset_binary) Validate(src []byte) bool
- type Charset_latin1
- func (Charset_latin1) DecodeRune(src []byte) (rune, int)
- func (Charset_latin1) EncodeRune(dst []byte, r rune) int
- func (Charset_latin1) IsSuperset(other types.Charset) bool
- func (Charset_latin1) Length(src []byte) int
- func (Charset_latin1) MaxWidth() int
- func (Charset_latin1) Name() string
- func (Charset_latin1) Slice(src []byte, from, to int) []byte
- func (Charset_latin1) SupportsSupplementaryChars() bool
- func (Charset_latin1) Validate(src []byte) bool
- type UnicodeMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Charset_8bit ¶
type Charset_8bit struct { Name_ string ToUnicode *[256]uint16 FromUnicode []UnicodeMapping }
func (*Charset_8bit) DecodeRune ¶
func (e *Charset_8bit) DecodeRune(bytes []byte) (rune, int)
func (*Charset_8bit) EncodeRune ¶
func (e *Charset_8bit) EncodeRune(dst []byte, r rune) int
func (*Charset_8bit) IsSuperset ¶
func (e *Charset_8bit) IsSuperset(other types.Charset) bool
func (Charset_8bit) Length ¶
func (Charset_8bit) Length(src []byte) int
func (Charset_8bit) MaxWidth ¶
func (Charset_8bit) MaxWidth() int
func (*Charset_8bit) Name ¶
func (e *Charset_8bit) Name() string
func (Charset_8bit) Slice ¶ added in v0.20.0
func (Charset_8bit) Slice(src []byte, from, to int) []byte
func (*Charset_8bit) SupportsSupplementaryChars ¶
func (e *Charset_8bit) SupportsSupplementaryChars() bool
func (Charset_8bit) Validate ¶ added in v0.20.0
func (Charset_8bit) Validate(src []byte) bool
type Charset_binary ¶
type Charset_binary struct{}
func (Charset_binary) DecodeRune ¶
func (c Charset_binary) DecodeRune(bytes []byte) (rune, int)
func (Charset_binary) EncodeRune ¶
func (c Charset_binary) EncodeRune(dst []byte, r rune) int
func (Charset_binary) IsSuperset ¶
func (Charset_binary) IsSuperset(_ types.Charset) bool
func (Charset_binary) Length ¶
func (Charset_binary) Length(src []byte) int
func (Charset_binary) MaxWidth ¶
func (Charset_binary) MaxWidth() int
func (Charset_binary) Name ¶
func (Charset_binary) Name() string
func (Charset_binary) Slice ¶ added in v0.20.0
func (Charset_binary) Slice(src []byte, from, to int) []byte
func (Charset_binary) SupportsSupplementaryChars ¶
func (Charset_binary) SupportsSupplementaryChars() bool
func (Charset_binary) Validate ¶ added in v0.20.0
func (Charset_binary) Validate(src []byte) bool
type Charset_latin1 ¶
type Charset_latin1 struct{}
func (Charset_latin1) DecodeRune ¶
func (Charset_latin1) DecodeRune(src []byte) (rune, int)
func (Charset_latin1) EncodeRune ¶
func (Charset_latin1) EncodeRune(dst []byte, r rune) int
func (Charset_latin1) IsSuperset ¶
func (Charset_latin1) IsSuperset(other types.Charset) bool
func (Charset_latin1) Length ¶
func (Charset_latin1) Length(src []byte) int
func (Charset_latin1) MaxWidth ¶
func (Charset_latin1) MaxWidth() int
func (Charset_latin1) Name ¶
func (Charset_latin1) Name() string
func (Charset_latin1) Slice ¶ added in v0.20.0
func (Charset_latin1) Slice(src []byte, from, to int) []byte
func (Charset_latin1) SupportsSupplementaryChars ¶
func (Charset_latin1) SupportsSupplementaryChars() bool
func (Charset_latin1) Validate ¶ added in v0.20.0
func (Charset_latin1) Validate(src []byte) bool
type UnicodeMapping ¶
Click to show internal directories.
Click to hide internal directories.