- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 70 for cutInt (0.12 sec)
-
src/cmd/vendor/golang.org/x/tools/internal/versions/gover.go
return gover{} } v.kind, x = x[:i], x[i:] if x == "" { return v } v.pre, x, ok = cutInt(x) if !ok || x != "" { return gover{} } return v } // cutInt scans the leading decimal number at the start of x to an integer // and returns that value and the rest of the string. func cutInt(x string) (n, rest string, ok bool) { i := 0 for i < len(x) && '0' <= x[i] && x[i] <= '9' { i++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 4.2K bytes - Viewed (0) -
src/internal/gover/gover.go
} v.Kind, x = x[:i], x[i:] if x == "" { return v } v.Pre, x, ok = cutInt(x) if !ok || x != "" { return Version{} } return v } // cutInt scans the leading decimal number at the start of x to an integer // and returns that value and the rest of the string. func cutInt(x string) (n, rest string, ok bool) { i := 0 for i < len(x) && '0' <= x[i] && x[i] <= '9' { i++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 06 23:20:32 UTC 2023 - 5.8K bytes - Viewed (0) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HasherExtensions.java
hasher.putInt(array.length); for (double d : array) { hasher.putDouble(d); } } public static void putFloats(Hasher hasher, float[] array) { hasher.putInt(array.length); for (float f : array) { hasher.putInt(Float.floatToRawIntBits(f)); } } public static void putLongs(Hasher hasher, long[] array) { hasher.putInt(array.length);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 20:22:02 UTC 2024 - 2K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/path_windows.go
pathExts.once.Do(initPathExts) name, _, ok := cutExt(de.Name(), pathExts.list) if !ok { return "", false } v := gover.FromToolchain(name) if v == "" { return "", false } return v, true } // cutExt looks for any of the known extensions at the end of file. // If one is found, cutExt returns the file name with the extension trimmed,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 31 15:15:19 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:30 UTC 2024 - 12.3K bytes - Viewed (0) -
src/strings/strings.go
} // TrimLeft returns a slice of the string s with all leading // Unicode code points contained in cutset removed. // // To remove a prefix, use [TrimPrefix] instead. func TrimLeft(s, cutset string) string { if s == "" || cutset == "" { return s } if len(cutset) == 1 && cutset[0] < utf8.RuneSelf { return trimLeftByte(s, cutset[0]) } if as, ok := makeASCIISet(cutset); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:48:16 UTC 2024 - 31.2K bytes - Viewed (0) -
test/fixedbugs/bug022.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main func putint(digits *string) { var i byte; i = (*digits)[7]; // compiles i = digits[7]; // ERROR "illegal|is not|invalid" _ = i; } func main() { s := "asdfasdfasdfasdf"; putint(&s); } /* bug022.go:8: illegal types for operand (*<string>*STRING) INDEXPTR (<int32>INT32)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:48:57 UTC 2012 - 529 bytes - Viewed (0) -
platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashingTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 3.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/descriptor/UrlRepositoryDescriptor.java
cacheHasher.putString(implementation.getName()); cacheHasher.putInt(metadataResources.size()); for (ResourcePattern ivyPattern : metadataResources) { cacheHasher.putString(ivyPattern.getPattern()); } cacheHasher.putInt(artifactResources.size()); for (ResourcePattern artifactPattern : artifactResources) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 15 00:21:07 UTC 2024 - 4.9K bytes - Viewed (0) -
guava/src/com/google/common/hash/Hasher.java
Hasher putBytes(ByteBuffer bytes); @CanIgnoreReturnValue @Override Hasher putShort(short s); @CanIgnoreReturnValue @Override Hasher putInt(int i); @CanIgnoreReturnValue @Override Hasher putLong(long l); /** Equivalent to {@code putInt(Float.floatToRawIntBits(f))}. */ @CanIgnoreReturnValue @Override Hasher putFloat(float f);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 5.5K bytes - Viewed (0)