Home | History | Annotate | Download | only in syntax

Lines Matching defs:String

18 	Expr string
21 func (e *Error) Error() string {
22 return "error parsing regexp: " + e.Code.String() + ": `" + e.Expr + "`"
26 type ErrorCode string
48 func (e ErrorCode) String() string {
49 return string(e)
57 Literal // treat pattern as literal string
84 wholeRegexp string
144 // of literal runes into string nodes. The parser calls this
225 func (p *parser) repeat(op Op, min, max int, before, after, lastRepeat string) (string, error) {
440 // Found end of a run with common leading literal string:
444 // Factor out common string and append factored expression to out.
590 // leadingString returns the leading literal string that re begins with.
591 // The string refers to storage in re or its children.
606 // Removing a leading string in a concatenation
681 func literalRegexp(s string, flags Flags) *Regexp {
687 // string is too long to fit in Rune0. let Go handle it
698 // Parse parses a regular expression string s, controlled by the specified
701 func Parse(s string, flags Flags) (*Regexp, error) {
703 // Trivial parser for literal string.
716 lastRepeat string
832 var lit string
908 func (p *parser) parseRepeat(s string) (min, max int, rest string, ok bool) {
947 func (p *parser) parsePerlFlags(s string) (rest string, err error) {
1057 func isValidCaptureName(name string) bool {
1070 func (p *parser) parseInt(s string) (n int, rest string, ok bool) {
1098 // single-rune literal string, char class, ., and .|\n.
1244 func (p *parser) parseEscape(s string) (r rune, rest string, err error) {
1360 func (p *parser) parseClassChar(s, wholeClass string) (r rune, rest string, err error) {
1381 // and returns the new slice r and the remainder of the string.
1382 func (p *parser) parsePerlClassEscape(s string, r []rune) (out []rune, rest string) {
1395 // and returns the new slice r and the remainder of the string.
1396 func (p *parser) parseNamedClass(s string, r []rune) (out []rune, rest string, err error) {
1442 func unicodeTable(name string) (*unicode.RangeTable, *unicode.RangeTable) {
1458 // and returns the new slice r and the remainder of the string.
1459 func (p *parser) parseUnicodeClass(s string, r []rune) (out []rune, rest string, err error) {
1474 var seq, name string
1532 func (p *parser) parseClass(s string) (rest string, err error) {
1882 func checkUTF8(s string) error {
1893 func nextRune(s string) (c rune, t string, err error) {