Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkLimits (0.09 sec)

  1. src/regexp/syntax/parse.go

    	}
    	re.Op = op
    	return re
    }
    
    func (p *parser) reuse(re *Regexp) {
    	if p.height != nil {
    		delete(p.height, re)
    	}
    	re.Sub0[0] = p.free
    	p.free = re
    }
    
    func (p *parser) checkLimits(re *Regexp) {
    	if p.numRunes > maxRunes {
    		panic(ErrLarge)
    	}
    	p.checkSize(re)
    	p.checkHeight(re)
    }
    
    func (p *parser) checkSize(re *Regexp) {
    	if p.size == nil {
    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