eightbit

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 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) SupportsSupplementaryChars

func (e *Charset_8bit) SupportsSupplementaryChars() 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) SupportsSupplementaryChars

func (Charset_binary) SupportsSupplementaryChars() 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) SupportsSupplementaryChars

func (Charset_latin1) SupportsSupplementaryChars() 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