Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for makeASCIISet (0.04 sec)

  1. src/bytes/bytes.go

    // This allocates a total of 32 bytes even though the upper half
    // is unused to avoid bounds checks in asciiSet.contains.
    type asciiSet [8]uint32
    
    // makeASCIISet creates a set of ASCII characters and reports whether all
    // characters in chars are ASCII.
    func makeASCIISet(chars string) (as asciiSet, ok bool) {
    	for i := 0; i < len(chars); i++ {
    		c := chars[i]
    		if c >= utf8.RuneSelf {
    			return as, false
    		}
    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