Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for asciiSpace (0.07 sec)

  1. src/bytes/iter.go

    // but without constructing the slice.
    func FieldsSeq(s []byte) iter.Seq[[]byte] {
    	return func(yield func([]byte) bool) {
    		start := -1
    		for i := 0; i < len(s); {
    			size := 1
    			r := rune(s[i])
    			isSpace := asciiSpace[s[i]] != 0
    			if r >= utf8.RuneSelf {
    				r, size = utf8.DecodeRune(s[i:])
    				isSpace = unicode.IsSpace(r)
    			}
    			if isSpace {
    				if start >= 0 {
    					if !yield(s[start:i:i]) {
    						return
    					}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:23:13 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top