Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for 0xd800 (0.2 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/syscall/wtf8_windows_test.go

    		wstr: []uint16{0xD800, 0xD800},
    	},
    	{
    		// "High surrogate followed by a symbol that is not a surrogate"
    		str:  string([]byte{0xED, 0xA0, 0x80, 0xA}),
    		wstr: []uint16{0xD800, 0xA},
    	},
    	{
    		// "Unmatched high surrogate, followed by a surrogate pair, followed by an unmatched high surrogate"
    		str:  string([]byte{0xED, 0xA0, 0x80, 0xF0, 0x9D, 0x8C, 0x86, 0xED, 0xA0, 0x80}),
    		wstr: []uint16{0xD800, 0xD834, 0xDF06, 0xD800},
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. 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)
  4. src/syscall/wtf8_windows.go

    //
    // See go.dev/issues/59971 for more info.
    
    package syscall
    
    import (
    	"unicode/utf16"
    	"unicode/utf8"
    )
    
    const (
    	surr1 = 0xd800
    	surr2 = 0xdc00
    	surr3 = 0xe000
    
    	tx    = 0b10000000
    	t3    = 0b11100000
    	maskx = 0b00111111
    	mask3 = 0b00001111
    
    	rune1Max = 1<<7 - 1
    	rune2Max = 1<<11 - 1
    )
    
    // encodeWTF16 returns the potentially ill-formed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. src/unicode/utf8/utf8_test.go

    	{0x0800, "\xe0\xa0\x80"},
    	{0x0801, "\xe0\xa0\x81"},
    	{0x1000, "\xe1\x80\x80"},
    	{0xd000, "\xed\x80\x80"},
    	{0xd7ff, "\xed\x9f\xbf"}, // last code point before surrogate half.
    	{0xe000, "\xee\x80\x80"}, // first code point after surrogate half.
    	{0xfffe, "\xef\xbf\xbe"},
    	{0xffff, "\xef\xbf\xbf"},
    	{0x10000, "\xf0\x90\x80\x80"},
    	{0x10001, "\xf0\x90\x80\x81"},
    	{0x40000, "\xf1\x80\x80\x80"},
    	{0x10fffe, "\xf4\x8f\xbf\xbe"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 06:17:15 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  6. 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)
  7. src/html/template/css_test.go

    		{'A', true},
    		{'Z', true},
    		{'a', true},
    		{'z', true},
    		{'_', true},
    		{'-', true},
    		{':', false},
    		{';', false},
    		{' ', false},
    		{0x7f, false},
    		{0x80, true},
    		{0x1234, true},
    		{0xd800, false},
    		{0xdc00, false},
    		{0xfffe, false},
    		{0x10000, true},
    		{0x110000, false},
    	}
    	for _, test := range tests {
    		got := isCSSNmchar(test.rune)
    		if got != test.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:38:18 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/term/terminal.go

    		echo:         true,
    		historyIndex: -1,
    	}
    }
    
    const (
    	keyCtrlC     = 3
    	keyCtrlD     = 4
    	keyCtrlU     = 21
    	keyEnter     = '\r'
    	keyEscape    = 27
    	keyBackspace = 127
    	keyUnknown   = 0xd800 /* UTF-16 surrogate area */ + iota
    	keyUp
    	keyDown
    	keyLeft
    	keyRight
    	keyAltLeft
    	keyAltRight
    	keyHome
    	keyEnd
    	keyDeleteWord
    	keyDeleteLine
    	keyClearScreen
    	keyPasteStart
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 22.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/scanner.go

    			return false
    		}
    		// d < base
    		x = x*base + d
    		s.nextch()
    	}
    
    	if x > max && base == 8 {
    		s.errorf("octal escape value %d > 255", x)
    		return false
    	}
    
    	if x > max || 0xD800 <= x && x < 0xE000 /* surrogate range */ {
    		s.errorf("escape is invalid Unicode code point %#U", x)
    		return false
    	}
    
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  10. src/unicode/utf8/utf8.go

    	RuneSelf  = 0x80         // characters below RuneSelf are represented as themselves in a single byte.
    	MaxRune   = '\U0010FFFF' // Maximum valid Unicode code point.
    	UTFMax    = 4            // maximum number of bytes of a UTF-8 encoded Unicode character.
    )
    
    // Code points in the surrogate range are not valid for UTF-8.
    const (
    	surrogateMin = 0xD800
    	surrogateMax = 0xDFFF
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top