simplifiedchinese

package
v0.0.0-...-d2b7790 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(charset Charset, buf []byte) string

func BytesToStringSlow

func BytesToStringSlow(buf []byte) string

func IsGBK

func IsGBK(data []byte) bool

func IsUTF8

func IsUTF8(data []byte) bool

Types

type Charset

type Charset int
const (
	UNKNOWN Charset = iota
	UTF8
	GB18030
	GBK
	HZGB2312
)

func GetStrCoding

func GetStrCoding(data []byte) Charset

func (Charset) String

func (c Charset) String() string

Jump to

Keyboard shortcuts

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