Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for appendRuneNonASCII (0.31 sec)

  1. src/unicode/utf8/utf8.go

    func AppendRune(p []byte, r rune) []byte {
    	// This function is inlineable for fast handling of ASCII.
    	if uint32(r) <= rune1Max {
    		return append(p, byte(r))
    	}
    	return appendRuneNonASCII(p, r)
    }
    
    func appendRuneNonASCII(p []byte, r rune) []byte {
    	// Negative values are erroneous. Making it unsigned addresses the problem.
    	switch i := uint32(r); {
    	case i <= rune2Max:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top