Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for TestToValidUTF8 (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/bytes/bytes_test.go

    	{"\xed\xbf\xbf", "\uFFFD", "\uFFFD"},
    	{"\xF0\x80\x80\xaf", "☺", "☺"},
    	{"\xF8\x80\x80\x80\xAF", "\uFFFD", "\uFFFD"},
    	{"\xFC\x80\x80\x80\x80\xAF", "\uFFFD", "\uFFFD"},
    }
    
    func TestToValidUTF8(t *testing.T) {
    	for _, tc := range toValidUTF8Tests {
    		got := ToValidUTF8([]byte(tc.in), []byte(tc.repl))
    		if !Equal(got, []byte(tc.out)) {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Mar 11 03:07:05 GMT 2026
    - 62.9K bytes
    - Click Count (0)
Back to Top