const regexp/syntax.FoldCase
25 uses
regexp/syntax (current package)
compile.go#L277: flags &= FoldCase // only relevant flag is FoldCase
compile.go#L280: flags &^= FoldCase
compile.go#L287: case flags&FoldCase == 0 && (len(r) == 1 || len(r) == 2 && r[0] == r[1]):
parse.go#L58: FoldCase Flags = 1 << iota // case-insensitive match
parse.go#L298: if p.maybeConcat(re.Rune[0], p.flags&^FoldCase) {
parse.go#L303: re.Flags = p.flags &^ FoldCase
parse.go#L313: if p.maybeConcat(re.Rune[0], p.flags|FoldCase) {
parse.go#L320: re.Flags = p.flags | FoldCase
parse.go#L348: if re1.Op != OpLiteral || re2.Op != OpLiteral || re1.Flags&FoldCase != re2.Flags&FoldCase {
parse.go#L372: if p.flags&FoldCase != 0 {
parse.go#L788: return re.Rune, re.Flags & FoldCase
parse.go#L1208: flags |= FoldCase
parse.go#L1614: if p.flags&FoldCase == 0 {
parse.go#L1705: if p.flags&FoldCase == 0 || fold == nil {
parse.go#L1806: if p.flags&FoldCase == 0 {
parse.go#L1859: if flags&FoldCase != 0 {
prog.go#L160: for i.op() == InstRune && len(i.Rune) == 1 && Flags(i.Arg)&FoldCase == 0 && i.Rune[0] != utf8.RuneError {
prog.go#L217: if Flags(i.Arg)&FoldCase != 0 {
prog.go#L338: if Flags(i.Arg)&FoldCase != 0 {
regexp.go#L125: if re.Flags&FoldCase != 0 {
regexp.go#L131: if re.Flags&FoldCase != 0 {
regexp
onepass.go#L59: for iop(i) == syntax.InstRune && len(i.Rune) == 1 && syntax.Flags(i.Arg)&syntax.FoldCase == 0 && i.Rune[0] != utf8.RuneError {
onepass.go#L380: if len(inst.Rune) == 1 && syntax.Flags(inst.Arg)&syntax.FoldCase != 0 {
onepass.go#L404: if syntax.Flags(inst.Arg)&syntax.FoldCase != 0 {
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. |