- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 352 for Newlines (0.3 sec)
-
src/encoding/pem/pem_test.go
t.Errorf("#%d: (byte by byte) got:%s want:%s", i, got, test.out) } } } func TestFuzz(t *testing.T) { // PEM is a text-based format. Assume header fields with leading/trailing spaces // or embedded newlines will not round trip correctly and don't need to be tested. isBad := func(s string) bool { return strings.ContainsAny(s, "\r\n") || strings.TrimSpace(s) != s } testRoundtrip := func(block Block) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 22:56:00 UTC 2022 - 23.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/package-lock.json
"dependencies": { "is-number": "^7.0.0" }, "engines": { "node": ">=8.0" } }, "node_modules/trim-newlines": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz", "integrity": "sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==", "dev": true, "engines": {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:57:25 UTC 2024 - 156K bytes - Viewed (0) -
src/archive/tar/reader.go
// version 1.0. The format of the sparse map consists of a series of // newline-terminated numeric fields. The first field is the number of entries // and is always present. Following this are the entries, consisting of two // fields (offset, length). This function must stop reading at the end // boundary of the block containing the last newline. // // Note that the GNU manual says that numeric values should be encoded in octal
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 01:59:14 UTC 2024 - 26.8K bytes - Viewed (0) -
src/encoding/base32/base32_test.go
res: "f", err: badErr}, // Check a read error accompanied by input data consisting of newlines only is propagated. {r: badReader{data: []byte("\n\n\n\n\n\n\n\n"), errs: []error{badErr, nil}}, res: "", err: badErr}, // Reader will be called twice. The first time it will return 8 newline characters. The // second time valid base32 encoded data and an error. The data should be decoded
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 16:25:54 UTC 2024 - 26K bytes - Viewed (0) -
src/text/scanner/scanner.go
// that only a minimal amount of work needs to be done in the common ASCII // case (one test to check for both ASCII and end-of-buffer, and one test // to check for newlines). func (s *Scanner) next() rune { ch, width := rune(s.srcBuf[s.srcPos]), 1 if ch >= utf8.RuneSelf { // uncommon case: not ASCII or not enough bytes
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin.go
} mib = []_C_int{CTL_KERN, KERN_VERSION} n = unsafe.Sizeof(uname.Version) if err := sysctl(mib, &uname.Version[0], &n, nil, 0); err != nil { return err } // The version might have newlines or tabs in it, convert them to // spaces. for i, b := range uname.Version { if b == '\n' || b == '\t' { if i == len(uname.Version)-1 { uname.Version[i] = 0 } else { uname.Version[i] = ' '
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 20.7K bytes - Viewed (0) -
src/text/template/parse/node.go
return n } func (l *ListNode) Copy() Node { return l.CopyList() } // TextNode holds plain text. type TextNode struct { NodeType Pos tr *Tree Text []byte // The text; may span newlines. } func (t *Tree) newText(pos Pos, text string) *TextNode { return &TextNode{tr: t, NodeType: NodeText, Pos: pos, Text: []byte(text)} } func (t *TextNode) String() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 24.2K bytes - Viewed (0) -
src/mime/multipart/multipart_test.go
want: []headerBody{ {textproto.MIMEHeader{"Foo": {"bar"}}, ""}, {textproto.MIMEHeader{"Foo2": {"bar2"}}, ""}, }, }, // Final part empty with newlines after final separator. { name: "final part empty then crlf", sep: "abc", in: "--abc\r\nFoo: bar\r\n\r\n--abc--\r\n", want: []headerBody{ {textproto.MIMEHeader{"Foo": {"bar"}}, ""}, }, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 17:36:47 UTC 2022 - 30.4K bytes - Viewed (0) -
src/go/ast/ast.go
// Ignore //go:noinline, //line, and so on. continue } case '*': /*-style comment */ c = c[2 : len(c)-2] } // Split on newlines. cl := strings.Split(c, "\n") // Walk lines, stripping trailing white space and adding to list. for _, l := range cl { lines = append(lines, stripTrailingWhitespace(l)) } } // Remove leading blank lines; convert runs of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 35.6K bytes - Viewed (0) -
src/cmd/cover/cover.go
} // TODO: process files in parallel here if it matters. for k, name := range names { if strings.ContainsAny(name, "\r\n") { // annotateFile uses '//line' directives, which don't permit newlines. log.Fatalf("cover: input path contains newline character: %q", name) } fd := os.Stdout isStdout := true if *pkgcfg != "" { var err error fd, err = os.Create(outputfiles[k]) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 34.5K bytes - Viewed (0)