Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for removeLeadingString (0.2 sec)

  1. src/regexp/syntax/parse.go

    }
    
    // removeLeadingString removes the first n leading runes
    // from the beginning of re. It returns the replacement for re.
    func (p *parser) removeLeadingString(re *Regexp, n int) *Regexp {
    	if re.Op == OpConcat && len(re.Sub) > 0 {
    		// Removing a leading string in a concatenation
    		// might simplify the concatenation.
    		sub := re.Sub[0]
    		sub = p.removeLeadingString(sub, n)
    		re.Sub[0] = sub
    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