Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TrimSpace (0.41 sec)

  1. src/bytes/bytes_test.go

    		if !Equal(got, []byte(tc.out)) {
    			t.Errorf("ToValidUTF8(%q, %q) = %q; want %q", tc.in, tc.repl, got, tc.out)
    		}
    	}
    }
    
    func TestTrimSpace(t *testing.T) { runStringTests(t, TrimSpace, "TrimSpace", trimSpaceTests) }
    
    type RepeatTest struct {
    	in, out string
    	count   int
    }
    
    var longString = "a" + string(make([]byte, 1<<16)) + "z"
    
    var RepeatTests = []RepeatTest{
    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)
  2. src/cmd/cgo/gcc.go

    			continue
    		}
    
    		line = strings.TrimSpace(line[8:])
    
    		var key, val string
    		spaceIndex := strings.Index(line, " ")
    		tabIndex := strings.Index(line, "\t")
    
    		if spaceIndex == -1 && tabIndex == -1 {
    			continue
    		} else if tabIndex == -1 || (spaceIndex != -1 && spaceIndex < tabIndex) {
    			key = line[0:spaceIndex]
    			val = strings.TrimSpace(line[spaceIndex:])
    		} else {
    			key = line[0:tabIndex]
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top