- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 373 for stripCR (0.13 sec)
-
src/go/scanner/scanner_test.go
{"/*\r/*/", "/*/*/"}, {"/*\r*/", "/**/"}, {"/**\r/*/", "/**\r/*/"}, {"/*\r/\r*\r/*/", "/*/*\r/*/"}, {"/*\r\r\r\r*/", "/**/"}, } { got := string(stripCR([]byte(test.have), len(test.have) >= 2 && test.have[1] == '*')) if got != test.want { t.Errorf("stripCR(%q) = %q; want %q", test.have, got, test.want) } } } func checkSemi(t *testing.T, input, want string, mode Mode) { if mode&ScanComments == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 15:38:31 UTC 2023 - 34.6K bytes - Viewed (0) -
src/go/scanner/scanner.go
break } if ch == '\\' { s.scanEscape('"') } } return string(s.src[offs:s.offset]) } func stripCR(b []byte, comment bool) []byte { c := make([]byte, len(b)) i := 0 for j, ch := range b { // In a /*-style comment, don't strip \r from *\r/ (incl. // sequences of \r from *\r\r...\r/) since the resulting // */ would terminate the comment too early unless the \r
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 24.3K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
} /** * Creates a {@code Striped<Lock>} with eagerly initialized, strongly referenced locks. Every lock * is reentrant. * * @param stripes the minimum number of stripes (locks) required * @return a new {@code Striped<Lock>} */ public static Striped<Lock> lock(int stripes) { return custom(stripes, PaddedLock::new); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 10 20:55:18 UTC 2023 - 20.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Striped.java
} /** * Creates a {@code Striped<Lock>} with eagerly initialized, strongly referenced locks. Every lock * is reentrant. * * @param stripes the minimum number of stripes (locks) required * @return a new {@code Striped<Lock>} */ public static Striped<Lock> lock(int stripes) { return custom(stripes, PaddedLock::new); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 10 20:55:18 UTC 2023 - 20.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java
for (Striped<?> striped : allImplementations()) { assertBasicInvariants(striped); } } private static void assertBasicInvariants(Striped<?> striped) { Set<Object> observed = Sets.newIdentityHashSet(); // for the sake of weakly referenced locks. // this gets the stripes with #getAt(index) for (int i = 0; i < striped.size(); i++) { Object object = striped.getAt(i); assertNotNull(object);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 09 22:57:07 UTC 2022 - 8.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/StripedTest.java
for (Striped<?> striped : allImplementations()) { assertBasicInvariants(striped); } } private static void assertBasicInvariants(Striped<?> striped) { Set<Object> observed = Sets.newIdentityHashSet(); // for the sake of weakly referenced locks. // this gets the stripes with #getAt(index) for (int i = 0; i < striped.size(); i++) { Object object = striped.getAt(i); assertNotNull(object);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 09 22:57:07 UTC 2022 - 8.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java
EAGER { @Override Striped<Lock> get(int stripes) { return Striped.lock(stripes); } }, LAZY_SMALL { @Override Striped<Lock> get(int stripes) { return new Striped.SmallLazyStriped<>(stripes, LOCK_SUPPLIER); } }, LAZY_LARGE { @Override Striped<Lock> get(int stripes) { return new Striped.LargeLazyStriped<>(stripes, LOCK_SUPPLIER);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/versions/versions.go
func Compare(x, y string) int { return compare(stripGo(x), stripGo(y)) } // IsValid reports whether the version x is valid. func IsValid(x string) bool { return isValid(stripGo(x)) } // stripGo converts from a "go1.21" version to a "1.21" version. // If v does not start with "go", stripGo returns the empty string (a known invalid version). func stripGo(v string) string { v, _, _ = strings.Cut(v, "-") // strip -bigcorp suffix.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2K bytes - Viewed (0) -
src/go/version/version.go
package version // import "go/version" import ( "internal/gover" "strings" ) // stripGo converts from a "go1.21-bigcorp" version to a "1.21" version. // If v does not start with "go", stripGo returns the empty string (a known invalid version). func stripGo(v string) string { v, _, _ = strings.Cut(v, "-") // strip -bigcorp suffix. if len(v) < 2 || v[:2] != "go" { return "" } return v[2:] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 19:56:48 UTC 2024 - 1.9K bytes - Viewed (0) -
platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/tasks/StripSymbolsIntegrationTest.groovy
} task stripSymbolsDebug(type: StripSymbols) { strip -> project.application.binaries.get { !it.optimized }.configure { def linkDebug = linkTask.get() strip.toolChain = linkDebug.toolChain strip.targetPlatform = linkDebug.targetPlatform strip.binaryFile.set linkDebug.linkedFile }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 05 23:09:11 UTC 2024 - 3.5K bytes - Viewed (0)