Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for empty (0.13 sec)

  1. src/archive/zip/reader_test.go

    				Mode:     0666,
    			},
    			{
    				Name:     "dir/bar",
    				Content:  []byte("foo \r\n"),
    				Modified: time.Date(2011, 12, 8, 10, 4, 50, 0, time.UTC),
    				Mode:     0666,
    			},
    			{
    				Name:     "dir/empty/",
    				Content:  []byte{},
    				Modified: time.Date(2011, 12, 8, 10, 8, 6, 0, time.UTC),
    				Mode:     fs.ModeDir | 0777,
    			},
    			{
    				Name:     "readonly",
    				Content:  []byte("important \r\n"),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    		b := NewWriterSize(tw, BufSize)
    		b.WriteString("123456789")   // long string, empty buffer:
    		tw.check(t, "", "123456789") // use WriteString
    	}
    	{
    		tw := &teststringwriter{}
    		b := NewWriterSize(tw, BufSize)
    		b.WriteString("abc")
    		tw.check(t, "", "")
    		b.WriteString("123456789012345")      // long string, non-empty buffer
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    	if len(tr.Repr) == 0 {
    		return ""
    	}
    	if len(tr.FormatArgs) == 0 {
    		return tr.Repr
    	}
    	return fmt.Sprintf(tr.Repr, tr.FormatArgs...)
    }
    
    // Empty reports whether the result of String would be "".
    func (tr *TypeRepr) Empty() bool {
    	return len(tr.Repr) == 0
    }
    
    // Set modifies the type representation.
    // If fargs are provided, repr is used as a format for fmt.Sprintf.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    	{"Trim", "\u2C6F\u2C6F\u0250\u0250\u2C6F\u2C6F", "\u2C6F", "\u0250\u0250"},
    	{"Trim", "\x80test\xff", "\xff", "test"},
    	{"Trim", " Ġ ", " ", "Ġ"},
    	{"Trim", " Ġİ0", "0 ", "Ġİ"},
    	//empty string tests
    	{"Trim", "abba", "", "abba"},
    	{"Trim", "", "123", ""},
    	{"Trim", "", "", ""},
    	{"TrimLeft", "abba", "", "abba"},
    	{"TrimLeft", "", "123", ""},
    	{"TrimLeft", "", "", ""},
    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