Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isUTF8 (0.4 sec)

  1. src/mime/encodedword.go

    func (e WordEncoder) bEncode(buf *strings.Builder, charset, s string) {
    	w := base64.NewEncoder(base64.StdEncoding, buf)
    	// If the charset is not UTF-8 or if the content is short, do not bother
    	// splitting the encoded-word.
    	if !isUTF8(charset) || base64.StdEncoding.EncodedLen(len(s)) <= maxContentLen {
    		io.WriteString(w, s)
    		w.Close()
    		return
    	}
    
    	var currentLen, last, runeLen int
    	for i := 0; i < len(s); i += runeLen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top