- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 67 for atof (0.02 sec)
-
src/cmd/asm/internal/asm/parse.go
} if value < 0 { p.errorf("%s overflows int64", str) } return value } func (p *Parser) atoi(str string) uint64 { value, err := strconv.ParseUint(str, 0, 64) if err != nil { p.errorf("%s", err) } return value } func (p *Parser) atof(str string) float64 { value, err := strconv.ParseFloat(str, 64) if err != nil { p.errorf("%s", err) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 14 15:13:11 UTC 2025 - 37.3K bytes - Viewed (0) -
cmd/api-resources.go
errCode = ErrNone if values.Get("max-parts") != "" { if maxParts, err = strconv.Atoi(values.Get("max-parts")); err != nil { errCode = ErrInvalidMaxParts return } } else { maxParts = maxPartsList } if values.Get("part-number-marker") != "" { if partNumberMarker, err = strconv.Atoi(values.Get("part-number-marker")); err != nil { errCode = ErrInvalidPartNumberMarker return }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Jun 07 18:25:26 UTC 2023 - 4.3K bytes - Viewed (0) -
src/bufio/scan.go
// longer slice starting at the same point in the input. // // The function is never called with an empty data slice unless atEOF // is true. If atEOF is true, however, data may be non-empty and, // as always, holds unprocessed text. type SplitFunc func(data []byte, atEOF bool) (advance int, token []byte, err error) // Errors returned by Scanner. var ( ErrTooLong = errors.New("bufio.Scanner: token too long")
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed May 21 18:05:26 UTC 2025 - 14.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/MediaTypeTest.java
assertEquals("text", MediaType.parse("text/plain").type()); assertEquals("application", MediaType.parse("application/atom+xml; charset=utf-8").type()); } public void testGetSubtype() { assertEquals("plain", MediaType.parse("text/plain").subtype()); assertEquals("atom+xml", MediaType.parse("application/atom+xml; charset=utf-8").subtype()); } private static final ImmutableListMultimap<String, String> PARAMETERS =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.4K bytes - Viewed (0) -
src/cmd/asm/internal/asm/expr_test.go
if result != test.output { t.Errorf("%d: %q evaluated to %d; expected %d", i, test.input, result, test.output) } tok := p.next() if test.atEOF && tok.ScanToken != scanner.EOF { t.Errorf("%d: %q: at EOF got %s", i, test.input, tok) } else if !test.atEOF && tok.ScanToken == scanner.EOF { t.Errorf("%d: %q: expected not EOF but at EOF", i, test.input) } } } type badExprTest struct { input string
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 3.2K bytes - Viewed (0) -
src/bufio/example_test.go
scanner := bufio.NewScanner(strings.NewReader(input)) // Create a custom split function by wrapping the existing ScanWords function. split := func(data []byte, atEOF bool) (advance int, token []byte, err error) { advance, token, err = bufio.ScanWords(data, atEOF) if err == nil && token != nil { _, err = strconv.ParseInt(string(token), 10, 32) } return } // Set the split function for the scanning operation.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 5.5K bytes - Viewed (0) -
src/bufio/scan_test.go
func TestSplitError(t *testing.T) { // Create a split function that delivers a little data, then a predictable error. numSplits := 0 const okCount = 7 errorSplit := func(data []byte, atEOF bool) (advance int, token []byte, err error) { if atEOF { panic("didn't get enough data") } if numSplits >= okCount { return 0, nil, testError } numSplits++ return 1, data[0:1], nil } // Read the data.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0) -
schema/index.go
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed May 21 02:35:56 UTC 2025 - 3.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeTest.kt
parse("text/plain;boundary=foo;charset=utf-8").hashCode(), ) } @Test fun testValidParse() { assertMediaType("text/plain") assertMediaType("application/atom+xml; charset=utf-8") assertMediaType("application/atom+xml; a=1; a=2; b=3") assertMediaType("image/gif; foo=bar") assertMediaType("text/plain; a=1") assertMediaType("text/plain; a=1; a=2; b=3")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 7.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java
* own subclass of {@link ListenableFuture}, complete with a method like {@link #from} to adapt an * existing {@code ListenableFuture}, implemented atop a {@link ForwardingListenableFuture} that * forwards to that future and adds the desired methods. */ @GwtCompatible final class ForwardingFluentFuture<V extends @Nullable Object> extends FluentFuture<V> {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.4K bytes - Viewed (0)