regexp/syntax.Regexp.Rune (field)
119 uses
regexp/syntax (current package)
compile.go#L96: if len(re.Rune) == 0 {
compile.go#L100: for j := range re.Rune {
compile.go#L101: f1 := c.rune(re.Rune[j:j+1], re.Flags)
compile.go#L110: return c.rune(re.Rune, re.Flags)
parse.go#L221: size = int64(len(re.Rune))
parse.go#L295: p.numRunes += len(re.Rune)
parse.go#L296: if re.Op == OpCharClass && len(re.Rune) == 2 && re.Rune[0] == re.Rune[1] {
parse.go#L298: if p.maybeConcat(re.Rune[0], p.flags&^FoldCase) {
parse.go#L302: re.Rune = re.Rune[:1]
parse.go#L304: } else if re.Op == OpCharClass && len(re.Rune) == 4 &&
parse.go#L305: re.Rune[0] == re.Rune[1] && re.Rune[2] == re.Rune[3] &&
parse.go#L306: unicode.SimpleFold(re.Rune[0]) == re.Rune[2] &&
parse.go#L307: unicode.SimpleFold(re.Rune[2]) == re.Rune[0] ||
parse.go#L308: re.Op == OpCharClass && len(re.Rune) == 2 &&
parse.go#L309: re.Rune[0]+1 == re.Rune[1] &&
parse.go#L310: unicode.SimpleFold(re.Rune[0]) == re.Rune[1] &&
parse.go#L311: unicode.SimpleFold(re.Rune[1]) == re.Rune[0] {
parse.go#L313: if p.maybeConcat(re.Rune[0], p.flags|FoldCase) {
parse.go#L319: re.Rune = re.Rune[:1]
parse.go#L353: re2.Rune = append(re2.Rune, re1.Rune...)
parse.go#L357: re1.Rune = re1.Rune0[:1]
parse.go#L358: re1.Rune[0] = r
parse.go#L376: re.Rune = re.Rune0[:1]
parse.go#L529: re.Rune = cleanClass(&re.Rune)
parse.go#L530: if len(re.Rune) == 2 && re.Rune[0] == 0 && re.Rune[1] == unicode.MaxRune {
parse.go#L531: re.Rune = nil
parse.go#L535: if len(re.Rune) == 4 && re.Rune[0] == 0 && re.Rune[1] == '\n'-1 && re.Rune[2] == '\n'+1 && re.Rune[3] == unicode.MaxRune {
parse.go#L536: re.Rune = nil
parse.go#L540: if cap(re.Rune)-len(re.Rune) > 100 {
parse.go#L543: re.Rune = append(re.Rune0[:0], re.Rune...)
parse.go#L641: prefix.Rune = append(prefix.Rune[:0], str...)
parse.go#L743: if sub[max].Op < sub[j].Op || sub[max].Op == sub[j].Op && len(sub[max].Rune) < len(sub[j].Rune) {
parse.go#L788: return re.Rune, re.Flags & FoldCase
parse.go#L820: re.Rune = re.Rune[:copy(re.Rune, re.Rune[n:])]
parse.go#L821: if len(re.Rune) == 0 {
parse.go#L873: re.Rune = re.Rune0[:0] // use local storage for small strings
parse.go#L875: if len(re.Rune) >= cap(re.Rune) {
parse.go#L877: re.Rune = []rune(s)
parse.go#L880: re.Rune = append(re.Rune, c)
parse.go#L1065: re.Rune = r
parse.go#L1074: re.Rune = r
parse.go#L1299: return re.Op == OpLiteral && len(re.Rune) == 1 ||
parse.go#L1309: return len(re.Rune) == 1 && re.Rune[0] == r
parse.go#L1311: for i := 0; i < len(re.Rune); i += 2 {
parse.go#L1312: if re.Rune[i] <= r && r <= re.Rune[i+1] {
parse.go#L1355: dst.Rune = appendLiteral(dst.Rune, src.Rune[0], src.Flags)
parse.go#L1357: dst.Rune = appendClass(dst.Rune, src.Rune)
parse.go#L1361: if src.Rune[0] == dst.Rune[0] && src.Flags == dst.Flags {
parse.go#L1365: dst.Rune = appendLiteral(dst.Rune[:0], dst.Rune[0], dst.Flags)
parse.go#L1366: dst.Rune = appendLiteral(dst.Rune, src.Rune[0], src.Flags)
parse.go#L1735: re.Rune = re.Rune0[:0]
parse.go#L1745: re.Rune = append(re.Rune, '\n', '\n')
parse.go#L1749: class := re.Rune
parse.go#L1815: re.Rune = class
parse.go#L1816: class = cleanClass(&re.Rune)
parse.go#L1820: re.Rune = class
regexp.go#L22: Rune []rune // matched runes, for OpLiteral, OpCharClass
regexp.go#L78: if len(x.Rune) != len(y.Rune) {
regexp.go#L81: for i, r := range x.Rune {
regexp.go#L82: if r != y.Rune[i] {
regexp.go#L128: for _, r := range re.Rune {
regexp.go#L135: if len(re.Rune)%2 != 0 {
regexp.go#L140: if len(re.Rune) == 0 {
regexp.go#L142: } else if re.Rune[0] == 0 && re.Rune[len(re.Rune)-1] == unicode.MaxRune && len(re.Rune) > 2 {
regexp.go#L146: for i := 1; i < len(re.Rune)-1; i += 2 {
regexp.go#L147: lo, hi := re.Rune[i]+1, re.Rune[i+1]-1
regexp.go#L155: for i := 0; i < len(re.Rune); i += 2 {
regexp.go#L156: lo, hi := re.Rune[i], re.Rune[i+1]
regexp.go#L198: if sub := re.Sub[0]; sub.Op > OpCapture || sub.Op == OpLiteral && len(sub.Rune) > 1 {
simplify.go#L28: nre.Rune = nil
regexp
regexp.go#L282: for _, r := range re.Rune {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |