Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Aracki (0.17 sec)

  1. src/bytes/bytes.go

    func Fields(s []byte) [][]byte {
    	// First count the fields.
    	// This is an exact count if s is ASCII, otherwise it is an approximation.
    	n := 0
    	wasSpace := 1
    	// setBits is used to track which bits are set in the bytes of s.
    	setBits := uint8(0)
    	for i := 0; i < len(s); i++ {
    		r := s[i]
    		setBits |= r
    		isSpace := int(asciiSpace[r])
    		n += wasSpace & ^isSpace
    		wasSpace = isSpace
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
Back to top