Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for lowerAscii (0.28 sec)

  1. src/runtime/env_posix.go

    func envKeyEqual(a, b string) bool {
    	if GOOS == "windows" { // case insensitive
    		for i := 0; i < len(a); i++ {
    			ca, cb := a[i], b[i]
    			if ca == cb || lowerASCII(ca) == lowerASCII(cb) {
    				continue
    			}
    			return false
    		}
    		return true
    	}
    	return a == b
    }
    
    func lowerASCII(c byte) byte {
    	if 'A' <= c && c <= 'Z' {
    		return c + ('a' - 'A')
    	}
    	return c
    }
    
    // _cgo_setenv should be an internal detail,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/net/http/httpguts/httplex.go

    		if tokenEqual(trimOWS(v[:comma]), token) {
    			return true
    		}
    		v = v[comma+1:]
    	}
    	return tokenEqual(trimOWS(v), token)
    }
    
    // lowerASCII returns the ASCII lowercase version of b.
    func lowerASCII(b byte) byte {
    	if 'A' <= b && b <= 'Z' {
    		return b + ('a' - 'A')
    	}
    	return b
    }
    
    // tokenEqual reports whether t1 and t2 are equal, ASCII case-insensitively.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/net/parse.go

    func lowerASCIIBytes(x []byte) {
    	for i, b := range x {
    		if 'A' <= b && b <= 'Z' {
    			x[i] += 'a' - 'A'
    		}
    	}
    }
    
    // lowerASCII returns the ASCII lowercase version of b.
    func lowerASCII(b byte) byte {
    	if 'A' <= b && b <= 'Z' {
    		return b + ('a' - 'A')
    	}
    	return b
    }
    
    // trimSpace returns x without any leading or trailing ASCII whitespace.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top