Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for RuneLen (0.08 sec)

  1. api/go1.23.txt

    pkg syscall (windows-amd64), const WSAENOPROTOOPT Errno #62254
    pkg syscall, const EBADMSG Errno #67998
    pkg syscall, const EPROTO Errno #67998
    pkg unicode/utf16, func RuneLen(int32) int #44940
    pkg unique, func Make[$0 comparable]($0) Handle[$0] #62483
    pkg unique, method (Handle[$0]) Value() $0 #62483
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jun 25 17:08:08 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteByte('x')
    		}
    	}
    }
    
    func BenchmarkWriteRune(b *testing.B) {
    	const n = 4 << 10
    	const r = '☺'
    	b.SetBytes(int64(n * utf8.RuneLen(r)))
    	buf := NewBuffer(make([]byte, n*utf8.UTFMax))
    	for i := 0; i < b.N; i++ {
    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteRune(r)
    		}
    	}
    }
    
    // From Issue 5154.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    	return func(b *testing.B, n int) {
    		buf := bmbuf[0:n]
    		o := copy(buf, uchars)
    		for o < len(buf) {
    			o += copy(buf[o:], uchars)
    		}
    
    		// Make space for the needle rune at the end of buf.
    		m := utf8.RuneLen(needle)
    		for o := m; o > 0; {
    			_, sz := utf8.DecodeLastRune(buf)
    			copy(buf[len(buf)-sz:], "\x00\x00\x00\x00")
    			buf = buf[:len(buf)-sz]
    			o -= sz
    		}
    		buf = utf8.AppendRune(buf[:n-m], needle)
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  4. docs/distributed/DESIGN.md

    towards odd number erasure sets to provide for uniform distribution across nodes*. This is to ensure that same number of drives are pariticipating in any erasure set. For example if you have 2 nodes with 180 drives then GCD is 15 but this would lead to uneven distribution, one of the nodes would participate more drives. To avoid this the affinity is given towards nodes which leads to next best GCD factor of 12 which provides uniform distribution.
    
    - In this algorithm, we also make sure that we...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. api/go1.txt

    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
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top