Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for lookahead (0.18 sec)

  1. src/compress/flate/deflate.go

    // We only look at chainCount possibilities before giving up.
    func (d *compressor) findMatch(pos int, prevHead int, prevLength int, lookahead int) (length, offset int, ok bool) {
    	minMatchLook := maxMatchLength
    	if lookahead < minMatchLook {
    		minMatchLook = lookahead
    	}
    
    	win := d.window[0 : pos+minMatchLook]
    
    	// We quit when we get a match that's at least nice long
    	nice := len(win) - pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/labels/selector.go

    const (
    	// KeyAndOperator represents key and operator
    	KeyAndOperator ParserContext = iota
    	// Values represents values
    	Values
    )
    
    // lookahead func returns the current token and string. No increment of current position
    func (p *Parser) lookahead(context ParserContext) (Token, string) {
    	tok, lit := p.scannedItems[p.position].tok, p.scannedItems[p.position].literal
    	if context == Values {
    		switch tok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 31.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/PeekingIterator.java

    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An iterator that supports a one-element lookahead while iterating.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/CollectionHelpersExplained#peekingiterator">{@code
     * PeekingIterator}</a>.
     *
     * @author Mick Killianey
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/PeekingIterator.java

    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An iterator that supports a one-element lookahead while iterating.
     *
     * <p>See the Guava User Guide article on <a href=
     * "https://github.com/google/guava/wiki/CollectionHelpersExplained#peekingiterator">{@code
     * PeekingIterator}</a>.
     *
     * @author Mick Killianey
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/cases/context.go

    // whenever it is known to be safe to return the runes processed so far.
    //
    // It is recommended for implementations to not allow for more than 30 case
    // ignorables as lookahead (analogous to the limit in norm) and to use state if
    // unbounded lookahead is needed for cased runes.
    type context struct {
    	dst, src []byte
    	atEOF    bool
    
    	pDst int // pDst points past the last written rune in dst.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/cases/map.go

    // to the next rune. It returns whether a checkpoint is possible.
    type spanFunc func(*context) bool
    
    // maxIgnorable defines the maximum number of ignorables to consider for
    // lookahead operations.
    const maxIgnorable = 30
    
    // supported lists the language tags for which we have tailorings.
    const supported = "und af az el lt nl tr"
    
    func init() {
    	tags := []language.Tag{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  7. src/text/template/parse/lex_test.go

    	}},
    	{"extra right paren", "{{3)}}", []item{
    		tLeft,
    		mkItem(itemNumber, "3"),
    		mkItem(itemError, "unexpected right paren"),
    	}},
    
    	// Fixed bugs
    	// Many elements in an action blew the lookahead until
    	// we made lexInsideAction not loop.
    	{"long pipeline deadlock", "{{|||||}}", []item{
    		tLeft,
    		tPipe,
    		tPipe,
    		tPipe,
    		tPipe,
    		tPipe,
    		tRight,
    		tEOF,
    	}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 15:03:43 UTC 2022
    - 13.9K bytes
    - Viewed (0)
  8. src/html/template/js_test.go

    		// Identifiers can be divided and cannot validly be preceded by
    		// a regular expressions. Semicolon insertion cannot happen
    		// between an identifier and a regular expression on a new line
    		// because the one token lookahead for semicolon insertion has
    		// to conclude that it could be a div binary op and treat it as
    		// such.
    		{jsCtxDivOp, "x"},
    		{jsCtxDivOp, "x "},
    		{jsCtxDivOp, "x\t"},
    		{jsCtxDivOp, "x\n"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 02:20:11 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Splitter.java

            }
            if (offset == nextStart) {
              /*
               * This occurs when some pattern has an empty match, even if it doesn't match the empty
               * string -- for example, if it requires lookahead or the like. The offset must be
               * increased to look for separators beyond this point, without changing the start position
               * of the next returned substring -- so nextStart stays the same.
               */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  10. src/text/template/parse/parse.go

    	text      string    // text parsed to create the template (or its parent)
    	// Parsing only; cleared after parse.
    	funcs      []map[string]any
    	lex        *lexer
    	token      [3]item // three-token lookahead for parser.
    	peekCount  int
    	vars       []string // variables defined at the moment.
    	treeSet    map[string]*Tree
    	actionLine int // line of left delim starting action
    	rangeDepth int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
Back to top