Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ContainsRune (0.08 sec)

  1. src/bytes/bytes.go

    func (as *asciiSet) contains(c byte) bool {
    	return (as[c/32] & (1 << (c % 32))) != 0
    }
    
    // containsRune is a simplified version of strings.ContainsRune
    // to avoid importing the strings package.
    // We avoid bytes.ContainsRune to avoid allocating a temporary copy of s.
    func containsRune(s string, r rune) bool {
    	for _, c := range s {
    		if c == r {
    			return true
    		}
    	}
    	return false
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  2. docs/debugging/xl-meta/main.go

    			if m.objSize == 0 {
    				m.objSize = ei.V2Obj.Size
    			}
    			m.data = ei.V2Obj.EcM
    			m.parity = ei.V2Obj.EcN
    			if len(ei.V2Obj.PartNums) == 1 && !strings.ContainsRune(ei.V2Obj.MetaUsr.Etag, '-') {
    				m.wantMD5 = ei.V2Obj.MetaUsr.Etag
    			}
    			if m.shards == 0 {
    				m.shards = m.data + m.parity
    			}
    			idx = ei.V2Obj.EcIndex - 1
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 40.3K bytes
    - Viewed (0)
Back to top