Documentation ¶
Overview ¶
Package charclass provide functions for handling character class regular expressions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharClass ¶
type CharClass struct { // Map represents individual elements Map map[rune]bool // RangeTable represents ranges *unicode.RangeTable // Negated indicates that the char class expression is negated. Negated bool // Special is empty or otherwise indicates a special class, with expectation that // method unicode.${Special} exists. The regex notation taken from GNU Grep // is translated into unicode package name conventions (e.g. "[:alpha:]" -> "IsLetter"). // "[:alnum:]" is a special special case and is represented by the value "[:alnum:]" without translation. Special string }
CharClass represents a char class
Click to show internal directories.
Click to hide internal directories.