Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for span8 (0.02 sec)

  1. src/bytes/bytes.go

    	start := -1 // valid span start if >= 0
    	for i := 0; i < len(s); {
    		r, size := utf8.DecodeRune(s[i:])
    		if f(r) {
    			if start >= 0 {
    				spans = append(spans, span{start, i})
    				start = -1
    			}
    		} else {
    			if start < 0 {
    				start = i
    			}
    		}
    		i += size
    	}
    
    	// Last field might end at EOF.
    	if start >= 0 {
    		spans = append(spans, span{start, len(s)})
    	}
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top