Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tourer (0.25 sec)

  1. src/cmd/cgo/gcc.go

    	}
    }
    
    func upper(s string) string {
    	if s == "" {
    		return ""
    	}
    	r, size := utf8.DecodeRuneInString(s)
    	if r == '_' {
    		return "X" + s
    	}
    	return string(unicode.ToUpper(r)) + s[size:]
    }
    
    // godefsFields rewrites field names for use in Go or C definitions.
    // It strips leading common prefixes (like tv_ in tv_sec, tv_usec)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    }
    
    func TestToUpper(t *testing.T) { runStringTests(t, ToUpper, "ToUpper", upperTests) }
    
    func TestToLower(t *testing.T) { runStringTests(t, ToLower, "ToLower", lowerTests) }
    
    func BenchmarkToUpper(b *testing.B) {
    	for _, tc := range upperTests {
    		tin := []byte(tc.in)
    		b.Run(tc.in, func(b *testing.B) {
    			for i := 0; i < b.N; i++ {
    				actual := ToUpper(tin)
    				if !Equal(actual, tc.out) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top