Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AppendQuoteRuneToASCII (0.16 sec)

  1. src/strconv/quote.go

    // replacement character U+FFFD.
    func QuoteRuneToASCII(r rune) string {
    	return quoteRuneWith(r, '\'', true, false)
    }
    
    // AppendQuoteRuneToASCII appends a single-quoted Go character literal representing the rune,
    // as generated by [QuoteRuneToASCII], to dst and returns the extended buffer.
    func AppendQuoteRuneToASCII(dst []byte, r rune) []byte {
    	return appendQuotedRuneWith(dst, r, '\'', true, false)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. src/fmt/format.go

    func (f *fmt) fmtQc(c uint64) {
    	r := rune(c)
    	if c > utf8.MaxRune {
    		r = utf8.RuneError
    	}
    	buf := f.intbuf[:0]
    	if f.plus {
    		f.pad(strconv.AppendQuoteRuneToASCII(buf, r))
    	} else {
    		f.pad(strconv.AppendQuoteRune(buf, r))
    	}
    }
    
    // fmtFloat formats a float64. It assumes that verb is a valid format specifier
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top