Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for rune3Max (0.28 sec)

  1. 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)
  2. 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