coding

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataCoding

type DataCoding byte
const (
	GSM7BitCoding   DataCoding = 0b00000000 // GSM 7Bit
	ASCIICoding     DataCoding = 0b00000001 // ASCII
	Latin1Coding    DataCoding = 0b00000011 // ISO-8859-1 (Latin-1)
	ShiftJISCoding  DataCoding = 0b00000101 // Shift-JIS
	CyrillicCoding  DataCoding = 0b00000110 // ISO-8859-5 (Cyrillic)
	HebrewCoding    DataCoding = 0b00000111 // ISO-8859-8 (Hebrew)
	UCS2Coding      DataCoding = 0b00001000 // UCS-2
	ISO2022JPCoding DataCoding = 0b00001010 // ISO-2022-JP
	EUCJPCoding     DataCoding = 0b00001101 // Extended Kanji JIS (X 0212-1990)
	EUCKRCoding     DataCoding = 0b00001110 // KS X 1001 (KS C 5601)
	NoCoding        DataCoding = 0b10111111 // Reserved (Non-specification definition)
)

func BestCoding

func BestCoding(input string) DataCoding

func BestSafeCoding

func BestSafeCoding(input string) DataCoding

func (DataCoding) Encoding

func (c DataCoding) Encoding() Encoding

func (DataCoding) GoString

func (c DataCoding) GoString() string

func (DataCoding) MessageClass

func (c DataCoding) MessageClass() (coding DataCoding, class int)

func (DataCoding) MessageWaitingInfo

func (c DataCoding) MessageWaitingInfo() (coding DataCoding, active bool, kind int)

func (DataCoding) Splitter

func (c DataCoding) Splitter() Splitter

func (DataCoding) String

func (c DataCoding) String() string

func (DataCoding) Validate

func (c DataCoding) Validate(input string) bool

type Splitter

type Splitter func(rune) int

func (Splitter) Len

func (fn Splitter) Len(input string) (n int)

func (Splitter) Split

func (fn Splitter) Split(input string, limit int) (segments []string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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