Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for upperhex (0.13 sec)

  1. src/mime/encodedword.go

    		case b == ' ':
    			buf.WriteByte('_')
    		case b >= '!' && b <= '~' && b != '=' && b != '?' && b != '_':
    			buf.WriteByte(b)
    		default:
    			buf.WriteByte('=')
    			buf.WriteByte(upperhex[b>>4])
    			buf.WriteByte(upperhex[b&0x0f])
    		}
    	}
    }
    
    // openWord writes the beginning of an encoded-word into buf.
    func (e WordEncoder) openWord(buf *strings.Builder, charset string) {
    	buf.WriteString("=?")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/net/url/url.go

    	j := 0
    	for i := 0; i < len(s); i++ {
    		switch c := s[i]; {
    		case c == ' ' && mode == encodeQueryComponent:
    			t[j] = '+'
    			j++
    		case shouldEscape(c, mode):
    			t[j] = '%'
    			t[j+1] = upperhex[c>>4]
    			t[j+2] = upperhex[c&15]
    			j += 3
    		default:
    			t[j] = s[i]
    			j++
    		}
    	}
    	return string(t)
    }
    
    // A URL represents a parsed URL (technically, a URI reference).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
  3. src/strconv/ftoa.go

    			mant++
    		}
    		mant <<= 60 - shift
    		if mant&(1<<61) != 0 {
    			// Wrapped around.
    			mant >>= 1
    			exp++
    		}
    	}
    
    	hex := lowerhex
    	if fmt == 'X' {
    		hex = upperhex
    	}
    
    	// sign, 0x, leading digit
    	if neg {
    		dst = append(dst, '-')
    	}
    	dst = append(dst, '0', fmt, '0'+byte((mant>>60)&1))
    
    	// .fraction
    	mant <<= 4 // remove leading 0 or 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. src/strconv/quote.go

    // license that can be found in the LICENSE file.
    
    //go:generate go run makeisprint.go -output isprint.go
    
    package strconv
    
    import (
    	"unicode/utf8"
    )
    
    const (
    	lowerhex = "0123456789abcdef"
    	upperhex = "0123456789ABCDEF"
    )
    
    // contains reports whether the string contains the byte c.
    func contains(s string, c byte) bool {
    	return index(s, c) != -1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top