Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for asciiSet (0.07 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 Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 35.6K bytes
    - Viewed (0)
Back to top