Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for runtimeRuneCount (0.14 sec)

  1. src/unicode/utf8/utf8_test.go

    	for _, ts := range testStrings {
    		for _, m := range utf8map {
    			for _, s := range []string{ts + m.str, m.str + ts, ts + m.str + ts} {
    				testSequence(t, s)
    			}
    		}
    	}
    }
    
    func runtimeRuneCount(s string) int {
    	return len([]rune(s)) // Replaced by gc with call to runtime.countrunes(s).
    }
    
    // Check that a range loop, len([]rune(string)) optimization and
    // []rune conversions visit the same runes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 06:17:15 UTC 2022
    - 16.2K bytes
    - Viewed (0)
Back to top