Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for 0x1__2345 (0.17 sec)

  1. src/strconv/atoi_test.go

    	{"_12345", 0, 0, ErrSyntax},
    	{"1__2345", 0, 0, ErrSyntax},
    	{"12345_", 0, 0, ErrSyntax},
    
    	{"1_2_3_4_5", 10, 0, ErrSyntax}, // base 10
    	{"_12345", 10, 0, ErrSyntax},
    	{"1__2345", 10, 0, ErrSyntax},
    	{"12345_", 10, 0, ErrSyntax},
    
    	{"0x_1_2_3_4_5", 0, 0x12345, nil}, // base 0 => 16
    	{"_0x12345", 0, 0, ErrSyntax},
    	{"0x__12345", 0, 0, ErrSyntax},
    	{"0x1__2345", 0, 0, ErrSyntax},
    	{"0x1234__5", 0, 0, ErrSyntax},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 05:09:21 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  2. src/unicode/utf16/utf16_test.go

    		}
    	}
    }
    
    type encodeTest struct {
    	in  []rune
    	out []uint16
    }
    
    var encodeTests = []encodeTest{
    	{[]rune{1, 2, 3, 4}, []uint16{1, 2, 3, 4}},
    	{[]rune{0xffff, 0x10000, 0x10001, 0x12345, 0x10ffff},
    		[]uint16{0xffff, 0xd800, 0xdc00, 0xd800, 0xdc01, 0xd808, 0xdf45, 0xdbff, 0xdfff}},
    	{[]rune{'a', 'b', 0xd7ff, 0xd800, 0xdfff, 0xe000, 0x110000, -1},
    		[]uint16{'a', 'b', 0xd7ff, 0xfffd, 0xfffd, 0xe000, 0xfffd, 0xfffd}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/runtime/string_test.go

    		{"0MiB", 0, true},
    		{"0GiB", 0, true},
    		{"0TiB", 0, true},
    
    		// Bad inputs.
    		{"", 0, false},
    		{"-1", 0, false},
    		{"a12345", 0, false},
    		{"a12345B", 0, false},
    		{"12345x", 0, false},
    		{"0x12345", 0, false},
    
    		// Bad numeric inputs.
    		{"9223372036854775808", 0, false},
    		{"9223372036854775809", 0, false},
    		{"18446744073709551615", 0, false},
    		{"20496382327982653440", 0, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
Back to top