models

package
v0.0.0-...-99b87c3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Categories = map[string]string{
	"Lu": "Letter, Uppercase",
	"Ll": "Letter, Lowercase",
	"Lt": "Letter, Titlecase",
	"Lm": "Letter, Modifier",
	"Lo": "Letter, Other",
	"Mn": "	Mark, Nonspacing",
	"Mc": "	Mark, Spacing Combining",
	"Me": "	Mark, Enclosing",
	"Nd": "	Number, Decimal Digit",
	"Nl": "	Number, Letter",
	"No": "Number, Other",
	"Pc": "Punctuation, Connector",
	"Pd": "Punctuation, Dash",
	"Ps": "Punctuation, Open",
	"Pe": "Punctuation, Close",
	"Pi": "Punctuation, Initial quote (may behave like Ps or Pe depending on usage)",
	"Pf": "Punctuation, Final quote (may behave like Ps or Pe depending on usage)",
	"Po": "Punctuation, Other",
	"Sm": "Symbol, Math",
	"Sc": "Symbol, Currency",
	"Sk": "Symbol, Modifier",
	"So": "Symbol, Other",
	"Zs": "Separator, Space",
	"Zl": "Separator, Line",
	"Zp": "Separator, Paragraph",
	"Cc": "Other, Control",
	"Cf": "Other, Format",
	"Cs": "Other, Surrogate",
	"Co": "Other, Private Use",
	"Cn": "Other, Not Assigned (no characters in the file have this property)",
}

Categories https://www.unicode.org/reports/tr44/#General_Category_Values

Functions

This section is empty.

Types

type Block

type Block struct {
	// contains filtered or unexported fields
}

func NewBlock

func NewBlock(line string) Block

func (Block) Name

func (b Block) Name() string

func (Block) PackageName

func (b Block) PackageName() string

func (Block) Range

func (b Block) Range() CodePointRange

type CodePoint

type CodePoint struct {
	// contains filtered or unexported fields
}

func NewCodePoint

func NewCodePoint(csv []string) CodePoint

func (CodePoint) Category

func (c CodePoint) Category() string

func (CodePoint) Escaped

func (c CodePoint) Escaped() string

func (CodePoint) Name

func (c CodePoint) Name() string

func (CodePoint) Point

func (c CodePoint) Point() int64

func (CodePoint) PointString

func (c CodePoint) PointString() string

func (CodePoint) String

func (c CodePoint) String() string

func (CodePoint) VariableName

func (c CodePoint) VariableName() string

type CodePointRange

type CodePointRange struct {
	// contains filtered or unexported fields
}

func NewCodePointRange

func NewCodePointRange(start, end string) CodePointRange

func (CodePointRange) End

func (r CodePointRange) End() int64

func (CodePointRange) IsIn

func (r CodePointRange) IsIn(value int64) bool

func (CodePointRange) IsInStr

func (r CodePointRange) IsInStr(value string) bool

func (CodePointRange) Start

func (r CodePointRange) Start() int64

func (CodePointRange) String

func (r CodePointRange) String() string

type TemplateData

type TemplateData struct {
	Block      Block
	CodePoints []CodePoint
}

func NewTemplateData

func NewTemplateData(block Block, codepoints []CodePoint) TemplateData

Jump to

Keyboard shortcuts

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