Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for rune3Max (0.11 sec)

  1. src/runtime/utf8.go

    	t3 = 0xE0 // 1110 0000
    	t4 = 0xF0 // 1111 0000
    	t5 = 0xF8 // 1111 1000
    
    	maskx = 0x3F // 0011 1111
    	mask2 = 0x1F // 0001 1111
    	mask3 = 0x0F // 0000 1111
    	mask4 = 0x07 // 0000 0111
    
    	rune1Max = 1<<7 - 1
    	rune2Max = 1<<11 - 1
    	rune3Max = 1<<16 - 1
    
    	// The default lowest and highest continuation byte.
    	locb = 0x80 // 1000 0000
    	hicb = 0xBF // 1011 1111
    )
    
    // countrunes returns the number of runes in s.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 06 02:46:02 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  2. src/unicode/utf8/utf8.go

    	tx = 0b10000000
    	t2 = 0b11000000
    	t3 = 0b11100000
    	t4 = 0b11110000
    	t5 = 0b11111000
    
    	maskx = 0b00111111
    	mask2 = 0b00011111
    	mask3 = 0b00001111
    	mask4 = 0b00000111
    
    	rune1Max = 1<<7 - 1
    	rune2Max = 1<<11 - 1
    	rune3Max = 1<<16 - 1
    
    	// The default lowest and highest continuation byte.
    	locb = 0b10000000
    	hicb = 0b10111111
    
    	// These names of these constants are chosen to give nice alignment in the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. src/syscall/wtf8_windows.go

    	"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
    // UTF-16 encoding of s.
    func encodeWTF16(s string, buf []uint16) []uint16 {
    	for i := 0; i < len(s); {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. src/syscall/syscall_windows.go

    // using WTF-8 instead of UTF-8 encoding.
    func UTF16ToString(s []uint16) string {
    	maxLen := 0
    	for i, v := range s {
    		if v == 0 {
    			s = s[0:i]
    			break
    		}
    		switch {
    		case v <= rune1Max:
    			maxLen += 1
    		case v <= rune2Max:
    			maxLen += 2
    		default:
    			// r is a non-surrogate that decodes to 3 bytes,
    			// or is an unpaired surrogate (also 3 bytes in WTF-8),
    			// or is one half of a valid surrogate pair.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
Back to top