unicode

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT, Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HanPunctuation = []rune{
	'\u3002', '\uff1b', '\uff0c', '\uff1a', '\u201c', '\u201d', '\uff08', '\uff09', '\u3001', '\uff1f', '\u300a', '\u300b',
}

[。;,:“”()、?《》]

Functions

func Decode added in v0.0.31

func Decode(source string) string

func HasHan added in v0.0.31

func HasHan(s string) bool

func ToLowerFirst added in v0.0.31

func ToLowerFirst(s string) string

func ToUnicode added in v0.0.31

func ToUnicode(s []byte) string

func Unquote added in v0.0.31

func Unquote(s []byte) (t string, ok bool)

unquote converts a quoted JSON string literal s into an actual string t. The rules are different than for Go, so cannot use strconv.Unquote.

Types

This section is empty.

Jump to

Keyboard shortcuts

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