eightbit

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 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) 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) 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) 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