type regexp/syntax.Flags
22 uses
regexp/syntax (current package)
compile.go#L272: func (c *compiler) rune(r []rune, flags Flags) frag {
parse.go#L55: type Flags uint16
parse.go#L58: FoldCase Flags = 1 << iota // case-insensitive match
parse.go#L72: POSIX Flags = 0 // POSIX syntax
parse.go#L127: flags Flags // parse mode flags
parse.go#L340: func (p *parser) maybeConcat(r rune, flags Flags) bool {
parse.go#L599: var strflags Flags
parse.go#L610: var iflags Flags
parse.go#L781: func (p *parser) leadingString(re *Regexp) ([]rune, Flags) {
parse.go#L870: func literalRegexp(s string, flags Flags) *Regexp {
parse.go#L890: func Parse(s string, flags Flags) (*Regexp, error) {
parse.go#L894: func parse(s string, flags Flags) (_ *Regexp, err error) {
parse.go#L1858: func appendLiteral(r []rune, x rune, flags Flags) []rune {
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#L19: Flags Flags
simplify.go#L134: func simplify1(op Op, flags Flags, sub, re *Regexp) *Regexp {
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 {
regexp.go#L173: func compile(expr string, mode syntax.Flags, longest bool) (*Regexp, error) {
|
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. |