unicode

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 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 AnchorName added in v0.0.43

func AnchorName(text string) string

Create returns a sanitized anchor name for the given text.

func Decode added in v0.0.31

func Decode(source string) string

func Getu4 added in v0.0.43

func Getu4(s []byte) rune

Getu4 decodes \uXXXX from the beginning of s, returning the hex value, or it returns -1.

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 ToUtf8 added in v0.0.43

func ToUtf8(s []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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