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 (Block) PackageName ¶
func (Block) Range ¶
func (b Block) Range() CodePointRange
type CodePoint ¶
type CodePoint struct {
// contains filtered or unexported fields
}
func NewCodePoint ¶
func (CodePoint) PointString ¶
func (CodePoint) VariableName ¶
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 ¶
func NewTemplateData ¶
func NewTemplateData(block Block, codepoints []CodePoint) TemplateData
Click to show internal directories.
Click to hide internal directories.