Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for strconv (0.14 sec)

  1. src/bufio/bufio_test.go

    		if rn.Intn(8) == 0 && cap(b) > 0 {
    			b = b[1:1:cap(b)]
    		}
    
    		// Append a random integer of varying width.
    		n := int64(rn.Intn(1 << rn.Intn(30)))
    		want = append(strconv.AppendInt(want, n, 10), ' ')
    		b = append(strconv.AppendInt(b, n, 10), ' ')
    		w.Write(b)
    	}
    	w.Flush()
    
    	if !bytes.Equal(got.Bytes(), want) {
    		t.Errorf("output mismatch:\ngot  %s\nwant %s", got.Bytes(), want)
    	}
    }
    
    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)
  2. src/cmd/cgo/gcc.go

    			if n, err := strconv.Atoi(s[len("__cgodebug_str__"):]); err == nil {
    				return n
    			}
    		}
    		return -1
    	}
    	indexOfDebugStrlen := func(s string) int {
    		// Some systems use leading _ to denote non-assembly symbols.
    		if strings.HasPrefix(s, "___") {
    			s = s[1:]
    		}
    		if strings.HasPrefix(s, "__cgodebug_strlen__") {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    				ToValidUTF8(test.input, replacement)
    			}
    		})
    	}
    }
    
    func makeBenchInputHard() []byte {
    	tokens := [...]string{
    		"<a>", "<p>", "<b>", "<strong>",
    		"</a>", "</p>", "</b>", "</strong>",
    		"hello", "world",
    	}
    	x := make([]byte, 0, 1<<20)
    	for {
    		i := rand.Intn(len(tokens))
    		if len(x)+len(tokens[i]) >= 1<<20 {
    			break
    		}
    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