unicode

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharInfo

type CharInfo struct {
	Number rune
	Name   string
}

CharInfo is the basic set of information about one Unicode character. We record the codepoint (as a Go rune) and the formal Name.

type Unicode

type Unicode struct {
	ByRune map[rune]CharInfo
	ByName map[string]CharInfo
	Search *ferret.InvertedSuffix
	// contains filtered or unexported fields
}

Unicode is the set of all data about all characters which we've retrieved from formal Unicode specifications.

func Load

func Load() Unicode

Load gives us all the Unicode-spec derived data which we have.

func LoadSearch added in v0.0.3

func LoadSearch() Unicode

LoadSearch gives us all the Unicode data, with search too; the search loading is slow, so we skip it by default.

Jump to

Keyboard shortcuts

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