Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 125 for 0xd800 (0.13 sec)

  1. src/go/scanner/scanner.go

    			if s.ch < 0 {
    				msg = "escape sequence not terminated"
    			}
    			s.error(s.offset, msg)
    			return false
    		}
    		x = x*base + d
    		s.next()
    		n--
    	}
    
    	if x > max || 0xD800 <= x && x < 0xE000 {
    		s.error(offs, "escape sequence is invalid Unicode code point")
    		return false
    	}
    
    	return true
    }
    
    func (s *Scanner) scanRune() string {
    	// '\'' opening already consumed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  2. src/encoding/xml/xml_test.go

    			t.Fatalf("input %d synerr.Msg wrong: want %q, got %q", i, tt.err, synerr.Msg)
    		}
    	}
    }
    
    func TestIsInCharacterRange(t *testing.T) {
    	invalid := []rune{
    		utf8.MaxRune + 1,
    		0xD800, // surrogate min
    		0xDFFF, // surrogate max
    		-1,
    	}
    	for _, r := range invalid {
    		if isInCharacterRange(r) {
    			t.Errorf("rune %U considered valid", r)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  3. src/strings/strings_test.go

    		{"☻x\xe2\x98�", '�', len("☻x")},
    		{"☻x\xe2\x98x", '�', len("☻x")},
    
    		// Invalid rune values should never match.
    		{"a☺b☻c☹d\xe2\x98�\xff�\xed\xa0\x80", -1, -1},
    		{"a☺b☻c☹d\xe2\x98�\xff�\xed\xa0\x80", 0xD800, -1}, // Surrogate pair
    		{"a☺b☻c☹d\xe2\x98�\xff�\xed\xa0\x80", utf8.MaxRune + 1, -1},
    	}
    	for _, tt := range tests {
    		if got := IndexRune(tt.in, tt.rune); got != tt.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. src/unicode/tables.go

    		{0x31f0, 0x31ff, 1},
    		{0x3400, 0x4dbf, 1},
    		{0x4e00, 0xa014, 1},
    		{0xa016, 0xa48c, 1},
    		{0xa4d0, 0xa4f7, 1},
    		{0xa500, 0xa60b, 1},
    		{0xa610, 0xa61f, 1},
    		{0xa62a, 0xa62b, 1},
    		{0xa66e, 0xa6a0, 50},
    		{0xa6a1, 0xa6e5, 1},
    		{0xa78f, 0xa7f7, 104},
    		{0xa7fb, 0xa801, 1},
    		{0xa803, 0xa805, 1},
    		{0xa807, 0xa80a, 1},
    		{0xa80c, 0xa822, 1},
    		{0xa840, 0xa873, 1},
    		{0xa882, 0xa8b3, 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 04:29:53 UTC 2023
    - 205.2K bytes
    - Viewed (0)
  5. src/bytes/bytes_test.go

    		{"☻x\xe2\x98�", '�', len("☻x")},
    		{"☻x\xe2\x98x", '�', len("☻x")},
    
    		// Invalid rune values should never match.
    		{"a☺b☻c☹d\xe2\x98�\xff�\xed\xa0\x80", -1, -1},
    		{"a☺b☻c☹d\xe2\x98�\xff�\xed\xa0\x80", 0xD800, -1}, // Surrogate pair
    		{"a☺b☻c☹d\xe2\x98�\xff�\xed\xa0\x80", utf8.MaxRune + 1, -1},
    	}
    	for _, tt := range tests {
    		if got := IndexRune([]byte(tt.in), tt.rune); got != tt.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/net/idna/trieval.go

    	indexShift   = 3
    	xorBit       = 0x4    // interpret the index as an xor pattern
    	inlineXOR    = 0xE000 // These bits are set if the XOR pattern is inlined.
    
    	joinShift = 8
    	joinMask  = 0x07
    
    	// Attributes
    	attributesMask = 0x1800
    	viramaModifier = 0x1800
    	modifier       = 0x1000
    	rtl            = 0x0800
    
    	mayNeedNorm = 0x2000
    )
    
    // A category corresponds to a category defined in the IDNA mapping table.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 04:45:15 UTC 2022
    - 3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go

    	BOTHER                           = 0x1000
    	BS1                              = 0x2000
    	BSDLY                            = 0x2000
    	CBAUD                            = 0x100f
    	CBAUDEX                          = 0x1000
    	CIBAUD                           = 0x100f0000
    	CLOCAL                           = 0x800
    	CR1                              = 0x200
    	CR2                              = 0x400
    	CR3                              = 0x600
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go

    	BOTHER                           = 0x1000
    	BS1                              = 0x2000
    	BSDLY                            = 0x2000
    	CBAUD                            = 0x100f
    	CBAUDEX                          = 0x1000
    	CIBAUD                           = 0x100f0000
    	CLOCAL                           = 0x800
    	CR1                              = 0x200
    	CR2                              = 0x400
    	CR3                              = 0x600
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go

    	BOTHER                           = 0x1000
    	BS1                              = 0x2000
    	BSDLY                            = 0x2000
    	CBAUD                            = 0x100f
    	CBAUDEX                          = 0x1000
    	CIBAUD                           = 0x100f0000
    	CLOCAL                           = 0x800
    	CR1                              = 0x200
    	CR2                              = 0x400
    	CR3                              = 0x600
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go

    	MAP_ANONYMOUS                    = 0x800
    	MAP_DENYWRITE                    = 0x2000
    	MAP_EXECUTABLE                   = 0x4000
    	MAP_GROWSDOWN                    = 0x1000
    	MAP_HUGETLB                      = 0x80000
    	MAP_LOCKED                       = 0x8000
    	MAP_NONBLOCK                     = 0x20000
    	MAP_NORESERVE                    = 0x400
    	MAP_POPULATE                     = 0x10000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 34.7K bytes
    - Viewed (0)
Back to top