Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for startCond (0.13 sec)

  1. src/regexp/exec.go

    // match runs the machine over the input starting at pos.
    // It reports whether a match was found.
    // If so, m.matchcap holds the submatch information.
    func (m *machine) match(i input, pos int) bool {
    	startCond := m.re.cond
    	if startCond == ^syntax.EmptyOp(0) { // impossible
    		return false
    	}
    	m.matched = false
    	for i := range m.matchcap {
    		m.matchcap[i] = -1
    	}
    	runq, nextq := &m.q0, &m.q1
    	r, r1 := endOfText, endOfText
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 04 20:10:54 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  2. src/regexp/regexp.go

    		matchcap = 2
    	}
    	regexp := &Regexp{
    		expr:        expr,
    		prog:        prog,
    		onepass:     compileOnePass(prog),
    		numSubexp:   maxCap,
    		subexpNames: capNames,
    		cond:        prog.StartCond(),
    		longest:     longest,
    		matchcap:    matchcap,
    		minInputLen: minInputLen(re),
    	}
    	if regexp.onepass == nil {
    		regexp.prefix, regexp.prefixComplete = prog.Prefix()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/text/unicode/bidi/bidi.go

    func (p *Paragraph) Line(start, end int) (Ordering, error) {
    	lineTypes := p.types[start:end]
    	para, err := newParagraph(lineTypes, p.pairTypes[start:end], p.pairValues[start:end], -1)
    	if err != nil {
    		return Ordering{}, err
    	}
    	levels := para.getLevels([]int{len(lineTypes)})
    	o := calculateOrdering(levels, p.runes[start:end])
    	return o, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  4. src/internal/trace/summary_test.go

    		t.Error("missing GC mark assist time")
    	}
    }
    
    func TestSummarizeGoroutinesRegionsTrace(t *testing.T) {
    	summaries := summarizeTraceTest(t, "testdata/tests/go122-annotations.test").Goroutines
    	type region struct {
    		startKind trace.EventKind
    		endKind   trace.EventKind
    	}
    	wantRegions := map[string]region{
    		// N.B. "pre-existing region" never even makes it into the trace.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go

    		end := start + rb.rune[i].size
    		rb.out = append(rb.out, rb.byte[start:end]...)
    	}
    	return true
    }
    
    // flush appends the normalized segment to out and resets rb.
    func (rb *reorderBuffer) flush(out []byte) []byte {
    	for i := 0; i < rb.nrune; i++ {
    		start := rb.rune[i].pos
    		end := start + rb.rune[i].size
    		out = append(out, rb.byte[start:end]...)
    	}
    	rb.reset()
    	return out
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    	}
    	t, _, _ := tileForIndex(h, index)
    	return t
    }
    
    // tileForIndex returns the tile of height h ≥ 1
    // storing the given hash index, which can be
    // reconstructed using tileHash(data[start:end]).
    func tileForIndex(h int, index int64) (t Tile, start, end int) {
    	level, n := SplitStoredHashIndex(index)
    	t.H = h
    	t.L = level / h
    	level -= t.L * h // now level within tile
    	t.N = n << uint(level) >> uint(t.H)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/text/unicode/norm/composition.go

    		end := start + rb.rune[i].size
    		rb.out = append(rb.out, rb.byte[start:end]...)
    	}
    	return true
    }
    
    // flush appends the normalized segment to out and resets rb.
    func (rb *reorderBuffer) flush(out []byte) []byte {
    	for i := 0; i < rb.nrune; i++ {
    		start := rb.rune[i].pos
    		end := start + rb.rune[i].size
    		out = append(out, rb.byte[start:end]...)
    	}
    	rb.reset()
    	return out
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 14.1K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/linalg_grad.cc

    //
    // For a given subscript, returns a tuple (start, end) denoting the start
    // axis index and the (negative) end axis index respectively. For any input
    // Tensor `x` described by the subscript, `x[start:end]` would be the slice
    // represented by the ellipsis. E.g. For `ab...cd` returns `[1, -2]`.
    //
    // If ellipsis is not present in `subscripts`, returns `(0, 0)`.
    //
    // Parameters:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 07 23:11:54 UTC 2022
    - 20.4K bytes
    - Viewed (0)
  9. src/unicode/utf8/utf8.go

    	lim := end - UTFMax
    	if lim < 0 {
    		lim = 0
    	}
    	for start--; start >= lim; start-- {
    		if RuneStart(p[start]) {
    			break
    		}
    	}
    	if start < 0 {
    		start = 0
    	}
    	r, size = DecodeRune(p[start:end])
    	if start+size != end {
    		return RuneError, 1
    	}
    	return r, size
    }
    
    // DecodeLastRuneInString is like [DecodeLastRune] but its input is a string. If
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. src/cmd/internal/archive/archive.go

    		}
    		name := trimSpace(data[0:16])
    		var err error
    		get := func(start, end, base, bitsize int) int64 {
    			if err != nil {
    				return 0
    			}
    			var v int64
    			v, err = strconv.ParseInt(trimSpace(data[start:end]), base, bitsize)
    			return v
    		}
    		size := get(48, 58, 10, 64)
    		var (
    			mtime    int64
    			uid, gid int
    			mode     os.FileMode
    		)
    		if verbose {
    			mtime = get(16, 28, 10, 64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top