Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for leadingString (0.41 sec)

  1. src/regexp/syntax/parse.go

    			continue
    		}
    		out = append(out, sub[i])
    	}
    	sub = out
    
    	return sub
    }
    
    // leadingString returns the leading literal string that re begins with.
    // The string refers to storage in re or its children.
    func (p *parser) leadingString(re *Regexp) ([]rune, Flags) {
    	if re.Op == OpConcat && len(re.Sub) > 0 {
    		re = re.Sub[0]
    	}
    	if re.Op != OpLiteral {
    		return nil, 0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
Back to top