- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 88 for Newlines (0.14 sec)
-
src/fmt/scan.go
// Space processing. // In the rest of this comment "space" means spaces other than newline. // Newline in the format matches input of zero or more spaces and then newline or end-of-input. // Spaces in the format before the newline are collapsed into the newline. // Spaces in the format after the newline match zero or more spaces after the corresponding input newline. // Other spaces in the format match input of one or more spaces or end-of-input.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:56:20 UTC 2024 - 31.9K bytes - Viewed (0) -
pkg/util/tail/tail_test.go
}, { name: "the file length is longer than max", max: 1, longerThanMax: true, expected: "a", }, { name: "the file length is longer than max and contains newlines", max: blockSize, longerThanMax: true, expected: strings.Repeat("a", blockSize/2-1) + "\n" + strings.Repeat("a", blockSize/2), }, { name: "the max is longer than file length ",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 2.3K bytes - Viewed (0) -
src/go/internal/gcimporter/support.go
} // Return a fake position assuming that f.file consists only of newlines. return token.Pos(f.file.Base() + line - 1) } func (s *fakeFileSet) setLines() { fakeLinesOnce.Do(func() { fakeLines = make([]int, maxlines) for i := range fakeLines { fakeLines[i] = i } }) for _, f := range s.files { f.file.SetLines(fakeLines[:f.lastline]) } } var ( fakeLines []int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
pkg/proxy/util/linebuffer.go
// Write takes a list of arguments, each a string or []string, joins all the // individual strings with spaces, terminates with newline, and writes them to the // buffer. Any other argument type will panic. Write(args ...interface{}) // WriteBytes writes bytes to the buffer, and terminates with newline. WriteBytes(bytes []byte) // Reset clears the buffer Reset() // Bytes returns the contents of the buffer as a []byte
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 05:08:41 UTC 2024 - 3.7K bytes - Viewed (0) -
src/fmt/doc.go
[Scan], [Fscan], [Sscan] treat newlines in the input as spaces. [Scanln], [Fscanln] and [Sscanln] stop scanning at a newline and require that the items be followed by a newline or EOF. [Scanf], [Fscanf], and [Sscanf] parse the arguments according to a format string, analogous to that of [Printf]. In the text that follows, 'space' means any Unicode whitespace character except newline.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:56:20 UTC 2024 - 14.6K bytes - Viewed (0) -
src/go/printer/gobuild.go
// When we start dropping // +build comments, we can skip over /* */ comments too. // Note that we are processing tabwriter input, so every comment // begins and ends with a tabwriter.Escape byte. // And some newlines have turned into \f bytes. insert := 0 for pos := 0; ; { // Skip leading space at beginning of line. blank := true for pos < len(p.output) && (p.output[pos] == ' ' || p.output[pos] == '\t') { pos++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.6K bytes - Viewed (0) -
src/encoding/pem/pem.go
// removed, if there were any. Otherwise, the input is returned unchanged. // // The base64 decoder already skips newline characters, so we don't need to // filter them out here. func removeSpacesAndTabs(data []byte) []byte { if !bytes.ContainsAny(data, " \t") { // Fast path; most base64 data within PEM contains newlines, but // no spaces nor tabs. Skip the extra alloc and work. return data } result := make([]byte, len(data))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.6K bytes - Viewed (0) -
hack/ginkgo-e2e.sh
ginkgo_args+=("--flake-attempts=${FLAKE_ATTEMPTS}") if [[ "${GINKGO_SILENCE_SKIPS}" == "y" ]]; then ginkgo_args+=("--silence-skips") fi if [[ "${GINKGO_FORCE_NEWLINES}" == "y" ]]; then ginkgo_args+=("--force-newlines") fi if [[ "${GINKGO_NO_COLOR}" == "y" ]]; then ginkgo_args+=("--no-color") fi # The --host setting is used only when providing --auth_config
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 13:25:50 UTC 2024 - 8.6K bytes - Viewed (0) -
hack/lib/golang.sh
# ------------ # Returns a sorted newline-separated list containing only duplicated items. kube::golang::dups() { # We use printf to insert newlines, which are required by sort. printf "%s\n" "$@" | sort | uniq -d } # Returns a sorted newline-separated list with duplicated items removed. kube::golang::dedup() { # We use printf to insert newlines, which are required by sort. printf "%s\n" "$@" | sort -u
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 16:43:08 UTC 2024 - 32.8K bytes - Viewed (0) -
src/runtime/error.go
// it has already been converted into a string by preprintpanics. // // To ensure that the traceback can be unambiguously parsed even when // the panic value contains "\ngoroutine" and other stack-like // strings, newlines in the string representation of v are replaced by // "\n\t". func printpanicval(v any) { switch v := v.(type) { case nil: print("nil") case bool: print(v) case int: print(v)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 9.9K bytes - Viewed (0)