- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for containsRune (0.06 sec)
-
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 Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Sep 03 20:55:15 UTC 2024 - 35.6K bytes - Viewed (0) -
internal/hash/checksum.go
func NewChecksumWithType(alg ChecksumType, value string) *Checksum { if !alg.IsSet() { return nil } wantParts := 0 if strings.ContainsRune(value, '-') { valSplit := strings.Split(value, "-") if len(valSplit) != 2 { return nil } value = valSplit[0] nParts, err := strconv.Atoi(valSplit[1]) if err != nil { return nil
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 19 12:59:07 UTC 2024 - 12.7K bytes - Viewed (0) -
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 Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 05 11:57:44 UTC 2024 - 40.3K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
prefix = "C" } n.Mangle = prefix + n.Kind + "_" + n.Go } func (f *File) isMangledName(s string) bool { t, ok := strings.CutPrefix(s, "_C") if !ok { return false } return slices.ContainsFunc(nameKinds, func(k string) bool { return strings.HasPrefix(t, k+"_") }) } // rewriteCalls rewrites all calls that pass pointers to check that // they follow the rules for passing pointers between Go and C.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 18 15:07:34 UTC 2024 - 97.1K bytes - Viewed (0)