Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ValidRune (0.42 sec)

  1. src/bytes/bytes.go

    	case r == utf8.RuneError:
    		for i := 0; i < len(s); {
    			r1, n := utf8.DecodeRune(s[i:])
    			if r1 == utf8.RuneError {
    				return i
    			}
    			i += n
    		}
    		return -1
    	case !utf8.ValidRune(r):
    		return -1
    	default:
    		// Search for rune r using the last byte of its UTF-8 encoded form.
    		// The distribution of the last byte is more uniform compared to the
    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