eightbit

package
v0.20.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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) Convert

func (c Charset_binary) Convert(_, in []byte, _ types.Charset) ([]byte, error)

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

type UnicodeMapping struct {
	From, To uint16
	Range    []byte `json:"Tab"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL