- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 127 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) -
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/vfs/impl/DefaultFileSystemAccess.java
virtualFileSystem.invalidateAll(); } } private static class StripedProducerGuard<T> { private final Striped<Lock> locks = Striped.lock(Runtime.getRuntime().availableProcessors() * 4); public <V> V guardByKey(T key, Supplier<V> supplier) { Lock lock = locks.get(key); lock.lock(); try {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:35 UTC 2024 - 11.1K bytes - Viewed (0) -
src/cmd/link/internal/ld/elf_test.go
testenv.MustHaveCGO(t) // Make sure that the resulting binary can be put through strip. // Try both "strip" and "llvm-strip"; in each case ask out CC // command where to find the tool with "-print-prog-name" (meaning // that if CC is gcc, we typically won't be able to find llvm-strip). // // Interestingly, binutils version of strip will (unfortunately) // print error messages if there is a problem but will not return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 13:44:07 UTC 2024 - 16.6K bytes - Viewed (0) -
src/net/http/cookiejar/jar.go
} else { j.entries[key] = submap } } } // canonicalHost strips port from host if present and returns the canonicalized // host name. func canonicalHost(host string) (string, error) { var err error if hasPort(host) { host, _, err = net.SplitHostPort(host) if err != nil { return "", err } } // Strip trailing dot from fully qualified domain names. host = strings.TrimSuffix(host, ".")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 15K bytes - Viewed (0) -
src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sat Nov 13 15:13:49 UTC 2021 - 11K bytes - Viewed (0) -
ci/official/utilities/extract_resultstore_links.py
if not elem.text or not elem.text.strip(): elem.text = indent_str + ' ' if not elem.tail or not elem.tail.strip(): elem.tail = indent_str for elem in elem: indent_xml(elem, level + 1) if not elem.tail or not elem.tail.strip(): elem.tail = indent_str else: if level and (not elem.tail or not elem.tail.strip()): elem.tail = indent_str
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 08 17:50:27 UTC 2023 - 10.9K bytes - Viewed (0) -
build/root/Makefile
# make all DBG=1 # Note: Specify DBG=1 for building unstripped binaries, which allows you to # use code debugging tools like delve. When DBG is unspecified, it defaults # to "-s -w" which strips debug information. endef .PHONY: all ifeq ($(PRINT_HELP),y) all: echo "$$ALL_HELP_INFO" else all: hack/make-rules/build.sh $(WHAT) endif define GINKGO_HELP_INFO # Build ginkgo #
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 16:43:08 UTC 2024 - 15.8K bytes - Viewed (0)