Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EmptyNoWordBoundary (0.23 sec)

  1. src/regexp/syntax/prog.go

    // An EmptyOp specifies a kind or mixture of zero-width assertions.
    type EmptyOp uint8
    
    const (
    	EmptyBeginLine EmptyOp = 1 << iota
    	EmptyEndLine
    	EmptyBeginText
    	EmptyEndText
    	EmptyWordBoundary
    	EmptyNoWordBoundary
    )
    
    // EmptyOpContext returns the zero-width assertions
    // satisfied at the position between the runes r1 and r2.
    // Passing r1 == -1 indicates that the position is
    // at the beginning of the text.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. src/regexp/syntax/compile.go

    	case OpBeginText:
    		return c.empty(EmptyBeginText)
    	case OpEndText:
    		return c.empty(EmptyEndText)
    	case OpWordBoundary:
    		return c.empty(EmptyWordBoundary)
    	case OpNoWordBoundary:
    		return c.empty(EmptyNoWordBoundary)
    	case OpCapture:
    		bra := c.cap(uint32(re.Cap << 1))
    		sub := c.compile(re.Sub[0])
    		ket := c.cap(uint32(re.Cap<<1 | 1))
    		return c.cat(c.cat(bra, sub), ket)
    	case OpStar:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 13 14:52:20 UTC 2021
    - 6.8K bytes
    - Viewed (0)
Back to top