Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 154 for Newlines (0.26 sec)

  1. test/fixedbugs/issue22662b.go

    	{"//line foo.go:10:4\n", "foo.go:10:4:"},   // column means print a column
    	{"//line foo.go:10:4\n\n", "foo.go:11:1:"}, // relative columns start at 1 after newline
    
    	{"/*line :10*/", ":10:"},
    	{"/*line :10:4*/", "filename:10:4"},
    	{"/*line foo.go:10*/", "foo.go:10:"},
    	{"/*line foo.go:10:4*/", "foo.go:10:4:"},
    	{"/*line foo.go:10:4*/\n", "foo.go:11:1:"},
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilder.java

        @Nonnull
        default MessageBuilder a(Object value) {
            return append(String.valueOf(value));
        }
    
        /**
         * Append newline to the message buffer.
         *
         * @return the current builder
         */
        @Nonnull
        default MessageBuilder newline() {
            return append(System.lineSeparator());
        }
    
        /**
         * Append formatted content to the buffer.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 08 10:37:09 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultTextArea.java

        private static final Action<AnsiContext> NEW_LINE_ACTION = new Action<AnsiContext>() {
            @Override
            public void execute(AnsiContext ansi) {
                ansi.newLine();
            }
        };
        private static final int CHARS_PER_TAB_STOP = 8;
        private final Cursor writePos = new Cursor();
        private final AnsiExecutor ansiExecutor;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. test/fixedbugs/issue13273.go

    	<-<-chan int // ERROR "unexpected <-, expected chan|expecting {" (new parser: same error as for type decl)
    
    	type _ <-chan<-int // ERROR "unexpected int, expected chan|expected .*chan.*|expected chan|expected .*;.* or .*}.* or newline"
    	<-chan<-int // ERROR "unexpected int, expected chan|expecting {" (new parser: same error as for type decl)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 01 22:37:04 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/pos.go

    	if b.Col() == 0 {
    		// base column is unknown => relative column is unknown
    		// (the current specification for line directives requires
    		// this to apply until the next PosBase/line directive,
    		// not just until the new newline)
    		return 0
    	}
    	if pos.Line() == b.Pos().Line() {
    		// pos on same line as pos base => column is relative to pos base
    		return b.Col() + (pos.Col() - b.Pos().Col())
    	}
    	return pos.Col()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. internal/s3select/json/preader.go

    	}
    	r.recordsRead = len(r.current)
    	if r.err == nil {
    		r.err = io.EOF
    	}
    	return r.readCloser.Close()
    }
    
    // nextSplit will attempt to skip a number of bytes and
    // return the buffer until the next newline occurs.
    // The last block will be sent along with an io.EOF.
    func (r *PReader) nextSplit(skip int, dst []byte) ([]byte, error) {
    	if cap(dst) < skip {
    		dst = make([]byte, 0, skip+1024)
    	}
    	dst = dst[:skip]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  7. src/net/nss_test.go

    	}{
    		{
    			name: "no_newline",
    			in:   "foo: a b",
    			want: &nssConf{
    				sources: map[string][]nssSource{
    					"foo": {{source: "a"}, {source: "b"}},
    				},
    			},
    		},
    		{
    			name: "newline",
    			in:   "foo: a b\n",
    			want: &nssConf{
    				sources: map[string][]nssSource{
    					"foo": {{source: "a"}, {source: "b"}},
    				},
    			},
    		},
    		{
    			name: "whitespace",
    			in:   "   foo:a    b    \n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:15:51 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  8. test/fixedbugs/issue19658.go

    		if panicIdx == -1 {
    			log.Fatalf("expected a panic in output for %s, got: %s", tc.Type, out)
    		}
    		eolIdx := bytes.IndexByte(out[panicIdx:], '\n') + panicIdx
    		if panicIdx == -1 {
    			log.Fatalf("expected a newline in output for %s after the panic, got: %s", tc.Type, out)
    		}
    		out = out[0:eolIdx]
    		if string(out) != tc.Expect {
    			log.Fatalf("expected '%s' for panic(%s(%s)), got %s", tc.Expect, tc.Type, tc.Input, out)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/cmd/internal/quoted/quoted_test.go

    	}{
    		{name: "empty", args: nil, want: ""},
    		{name: "one", args: []string{"a"}, want: "a"},
    		{name: "two", args: []string{"a", "b"}, want: "a b"},
    		{name: "space", args: []string{"a ", "b"}, want: "'a ' b"},
    		{name: "newline", args: []string{"a\n", "b"}, want: "'a\n' b"},
    		{name: "quote", args: []string{`'a `, "b"}, want: `"'a " b`},
    		{name: "unquoteable", args: []string{`'"`}, wantErr: "contains both single and double quotes and cannot be quoted"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 16:39:27 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  10. src/log/log_test.go

    	if err != nil {
    		t.Fatalf("pattern %q did not compile: %s", pattern, err)
    	}
    	if !matched {
    		t.Error("message did not match pattern")
    	}
    
    	// Ensure that a newline is added only if the buffer lacks a newline suffix.
    	b.Reset()
    	l.SetFlags(0)
    	l.SetPrefix("\n")
    	l.Output(0, "")
    	if got := b.String(); got != "\n" {
    		t.Errorf("message mismatch:\ngot  %q\nwant %q", got, "\n")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 20:04:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top