Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for 0xd800 (1.03 sec)

  1. src/unicode/utf16/utf16_test.go

    	{[]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}},
    }
    
    func TestEncode(t *testing.T) {
    	for _, tt := range encodeTests {
    		out := Encode(tt.in)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. src/unicode/utf16/utf16.go

    	maxRune         = '\U0010FFFF' // Maximum valid Unicode code point.
    )
    
    const (
    	// 0xd800-0xdc00 encodes the high 10 bits of a pair.
    	// 0xdc00-0xe000 encodes the low 10 bits of a pair.
    	// the value is those 20 bits plus 0x10000.
    	surr1 = 0xd800
    	surr2 = 0xdc00
    	surr3 = 0xe000
    
    	surrSelf = 0x10000
    )
    
    // IsSurrogate reports whether the specified Unicode code point
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/internal/fuzz/encoding_test.go

    byte('\'')
    math.Float64frombits(0x7ff8000000000002)
    math.Float32frombits(0x7fc00001)`,
    		},
    		{
    			desc: "rune validation",
    			in: `go test fuzz v1
    rune(0)
    rune(0x41)
    rune(-1)
    rune(0xfffd)
    rune(0xd800)
    rune(0x10ffff)
    rune(0x110000)
    `,
    			want: `go test fuzz v1
    rune('\x00')
    rune('A')
    int32(-1)
    rune('�')
    int32(55296)
    rune('\U0010ffff')
    int32(1114112)`,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. src/os/stat_solaris.go

    import (
    	"internal/filepathlite"
    	"syscall"
    	"time"
    )
    
    // These constants aren't in the syscall package, which is frozen.
    // Values taken from golang.org/x/sys/unix.
    const (
    	_S_IFNAM  = 0x5000
    	_S_IFDOOR = 0xd000
    	_S_IFPORT = 0xe000
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtim.Unix())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. src/internal/runtime/syscall/defs_linux_amd64.go

    const (
    	SYS_MPROTECT      = 10
    	SYS_FCNTL         = 72
    	SYS_EPOLL_CTL     = 233
    	SYS_EPOLL_PWAIT   = 281
    	SYS_EPOLL_CREATE1 = 291
    	SYS_EPOLL_PWAIT2  = 441
    	SYS_EVENTFD2      = 290
    
    	EFD_NONBLOCK = 0x800
    )
    
    type EpollEvent struct {
    	Events uint32
    	Data   [8]byte // unaligned uintptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 14:54:29 UTC 2024
    - 463 bytes
    - Viewed (0)
  6. src/internal/runtime/syscall/defs_linux_arm.go

    const (
    	SYS_FCNTL         = 55
    	SYS_MPROTECT      = 125
    	SYS_EPOLL_CTL     = 251
    	SYS_EPOLL_PWAIT   = 346
    	SYS_EPOLL_CREATE1 = 357
    	SYS_EPOLL_PWAIT2  = 441
    	SYS_EVENTFD2      = 356
    
    	EFD_NONBLOCK = 0x800
    )
    
    type EpollEvent struct {
    	Events uint32
    	_pad   uint32
    	Data   [8]byte // to match amd64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 14:54:29 UTC 2024
    - 476 bytes
    - Viewed (0)
Back to top