Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AppendRune (0.04 sec)

  1. src/bytes/bytes.go

    	// fine. It could also shrink but that falls out naturally.
    	b := make([]byte, 0, len(s))
    	for i := 0; i < len(s); {
    		r, wid := utf8.DecodeRune(s[i:])
    		r = mapping(r)
    		if r >= 0 {
    			b = utf8.AppendRune(b, r)
    		}
    		i += wid
    	}
    	return b
    }
    
    // Despite being an exported symbol,
    // Repeat is linknamed by widely used packages.
    // Notable members of the hall of shame include:
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top