Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for appendQuotedWith (0.21 sec)

  1. src/strconv/quote.go

    }
    
    func quoteWith(s string, quote byte, ASCIIonly, graphicOnly bool) string {
    	return string(appendQuotedWith(make([]byte, 0, 3*len(s)/2), s, quote, ASCIIonly, graphicOnly))
    }
    
    func quoteRuneWith(r rune, quote byte, ASCIIonly, graphicOnly bool) string {
    	return string(appendQuotedRuneWith(nil, r, quote, ASCIIonly, graphicOnly))
    }
    
    func appendQuotedWith(buf []byte, s string, quote byte, ASCIIonly, graphicOnly bool) []byte {
    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/strconv/strconv_test.go

    		}},
    		{0, `AppendFloat(globalBuf[:0], 1.23, 'g', 5, 64)`, func() { AppendFloat(globalBuf[:0], 1.23, 'g', 5, 64) }},
    		// In practice we see 7 for the next one, but allow some slop.
    		// Before pre-allocation in appendQuotedWith, we saw 39.
    		{10, `AppendQuoteToASCII(nil, oneMB)`, func() { AppendQuoteToASCII(nil, string(oneMB)) }},
    		{0, `ParseFloat("123.45", 64)`, func() { ParseFloat("123.45", 64) }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 20:29:22 UTC 2022
    - 4.7K bytes
    - Viewed (0)
Back to top