Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for RuneCount (0.06 seconds)

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

  1. src/bytes/bytes.go

    // If sep is an empty slice, Count returns 1 + the number of UTF-8-encoded code points in s.
    func Count(s, sep []byte) int {
    	// special case
    	if len(sep) == 0 {
    		return utf8.RuneCount(s) + 1
    	}
    	if len(sep) == 1 {
    		return bytealg.Count(s, sep[0])
    	}
    	n := 0
    	for {
    		i := Index(s, sep)
    		if i == -1 {
    			return n
    		}
    		n++
    		s = s[i+len(sep):]
    	}
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Sep 16 16:42:15 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  2. api/go1.txt

    pkg unicode/utf8, func EncodeRune([]uint8, int32) int
    pkg unicode/utf8, func FullRune([]uint8) bool
    pkg unicode/utf8, func FullRuneInString(string) bool
    pkg unicode/utf8, func RuneCount([]uint8) int
    pkg unicode/utf8, func RuneCountInString(string) int
    pkg unicode/utf8, func RuneLen(int32) int
    pkg unicode/utf8, func RuneStart(uint8) bool
    pkg unicode/utf8, func Valid([]uint8) bool
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Click Count (0)
Back to Top