const regexp/syntax.FoldCase
25 uses
regexp/syntax (current package)
compile.go#L260: flags &= FoldCase // only relevant flag is FoldCase
compile.go#L263: flags &^= FoldCase
compile.go#L270: case flags&FoldCase == 0 && (len(r) == 1 || len(r) == 2 && r[0] == r[1]):
parse.go#L56: FoldCase Flags = 1 << iota // case-insensitive match
parse.go#L111: if p.maybeConcat(re.Rune[0], p.flags&^FoldCase) {
parse.go#L116: re.Flags = p.flags &^ FoldCase
parse.go#L126: if p.maybeConcat(re.Rune[0], p.flags|FoldCase) {
parse.go#L133: re.Flags = p.flags | FoldCase
parse.go#L160: if re1.Op != OpLiteral || re2.Op != OpLiteral || re1.Flags&FoldCase != re2.Flags&FoldCase {
parse.go#L184: if p.flags&FoldCase != 0 {
parse.go#L593: return re.Rune, re.Flags & FoldCase
parse.go#L1003: flags |= FoldCase
parse.go#L1409: if p.flags&FoldCase == 0 {
parse.go#L1500: if p.flags&FoldCase == 0 || fold == nil {
parse.go#L1601: if p.flags&FoldCase == 0 {
parse.go#L1654: if flags&FoldCase != 0 {
prog.go#L157: for i.op() == InstRune && len(i.Rune) == 1 && Flags(i.Arg)&FoldCase == 0 {
prog.go#L214: if Flags(i.Arg)&FoldCase != 0 {
prog.go#L335: 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#L58: for iop(i) == syntax.InstRune && len(i.Rune) == 1 && syntax.Flags(i.Arg)&syntax.FoldCase == 0 {
onepass.go#L379: if len(inst.Rune) == 1 && syntax.Flags(inst.Arg)&syntax.FoldCase != 0 {
onepass.go#L403: if syntax.Flags(inst.Arg)&syntax.FoldCase != 0 {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |