- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for upperhex (0.12 sec)
-
src/mime/quotedprintable/writer.go
if lineMaxLen-1-w.i < 3 { if err := w.insertSoftLineBreak(); err != nil { return err } } w.line[w.i] = '=' w.line[w.i+1] = upperhex[b>>4] w.line[w.i+2] = upperhex[b&0x0f] w.i += 3 return nil } const upperhex = "0123456789ABCDEF" // checkLastByte encodes the last buffered byte if it is a space or a tab. func (w *Writer) checkLastByte() error { if w.i == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 16:12:35 UTC 2024 - 3.2K bytes - Viewed (0) -
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) -
src/mime/mediatype.go
ch == '*' || ch == '\'' || ch == '%' || isTSpecial(rune(ch)) { b.WriteString(value[offset:index]) offset = index + 1 b.WriteByte('%') b.WriteByte(upperhex[ch>>4]) b.WriteByte(upperhex[ch&0x0F]) } } b.WriteString(value[offset:]) continue } if isToken(value) { b.WriteString(value) continue } b.WriteByte('"') offset := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.8K bytes - Viewed (0) -
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) -
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) -
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) -
android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java
CharSequence testSeq = new StringBuilder(testString); CharSequence upperSeq = new StringBuilder(upperString); CharSequence[] lhs = new CharSequence[] {testString, testSeq, testString, testSeq}; CharSequence[] rhs = new CharSequence[] {upperString, upperString, upperSeq, upperSeq}; boolean dummy = false; for (int i = 0; i < reps; i++) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.8K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java
CharSequence testSeq = new StringBuilder(testString); CharSequence upperSeq = new StringBuilder(upperString); CharSequence[] lhs = new CharSequence[] {testString, testSeq, testString, testSeq}; CharSequence[] rhs = new CharSequence[] {upperString, upperString, upperSeq, upperSeq}; boolean dummy = false; for (int i = 0; i < reps; i++) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4.8K bytes - Viewed (0)