Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ToValidUTF8 (0.15 sec)

  1. src/strings/strings.go

    func ToTitleSpecial(c unicode.SpecialCase, s string) string {
    	return Map(c.ToTitle, s)
    }
    
    // ToValidUTF8 returns a copy of the string s with each run of invalid UTF-8 byte sequences
    // replaced by the replacement string, which may be empty.
    func ToValidUTF8(s, replacement string) string {
    	var b Builder
    
    	for i, c := range s {
    		if c != utf8.RuneError {
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top