Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 352 for Newlines (0.19 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/AnsiContext.java

         */
        AnsiContext a(CharSequence value);
    
        /**
         * @return the current context with a new line written.
         */
        AnsiContext newLine();
    
        /**
         * @return the current context with the specified new line written.
         */
        AnsiContext newLines(int numberOfNewLines);
    
        /**
         * @return the current context with the characters moving forward from the write position erased.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. 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)
  3. pkg/log/logr.go

    func (zl *zapLogger) Enabled(level int) bool {
    	if level > debugLevelThreshold {
    		return zl.l.DebugEnabled()
    	}
    	return zl.l.InfoEnabled()
    }
    
    // Logs will come in with newlines, but our logger auto appends newline
    func trimNewline(msg string) string {
    	if len(msg) == 0 {
    		return msg
    	}
    	lc := len(msg) - 1
    	if msg[lc] == '\n' {
    		return msg[:lc]
    	}
    	return msg
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/counter/doc.go

    // week.
    //
    // # Counter Naming
    //
    // Counter names passed to [New] and [NewStack] should follow these
    // conventions:
    //
    //   - Names cannot contain whitespace or newlines.
    //
    //   - Names must be valid unicode, with no unprintable characters.
    //
    //   - Names may contain at most one ':'. In the counter "foo:bar", we refer to
    //     "foo" as the "chart name" and "bar" as the "bucket name".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/tokenizer.go

    }
    
    func NewTokenizer(name string, r io.Reader, file *os.File) *Tokenizer {
    	var s scanner.Scanner
    	s.Init(r)
    	// Newline is like a semicolon; other space characters are fine.
    	s.Whitespace = 1<<'\t' | 1<<'\r' | 1<<' '
    	// Don't skip comments: we need to count newlines.
    	s.Mode = scanner.ScanChars |
    		scanner.ScanFloats |
    		scanner.ScanIdents |
    		scanner.ScanInts |
    		scanner.ScanStrings |
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 20:35:21 UTC 2022
    - 3K bytes
    - Viewed (0)
  6. src/go/printer/printer.go

    		next := p.pos // estimated/accurate position of next item
    		wroteNewline, droppedFF := p.flush(next, p.lastTok)
    
    		// intersperse extra newlines if present in the source and
    		// if they don't cause extra semicolons (don't do this in
    		// flush as it will cause extra newlines at the end of a file)
    		if !p.impliedSemi {
    			n := nlimit(next.Line - p.pos.Line)
    			// don't exceed maxNewlines if we already wrote one
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  7. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

            }
    
            -1 -> {
              val lineEnd = source.indexOfElement(CRLF)
              if (lineEnd != -1L) {
                // Skip the line and newline
                source.skip(lineEnd)
                source.select(options)
              } else {
                return false // No more newlines.
              }
            }
    
            else -> throw AssertionError()
          }
        }
      }
    
      @Throws(IOException::class)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/go/internal/generate/generate_test.go

    		file:     "proc.go",
    		pkg:      "sys",
    		commands: make(map[string][]string),
    	}
    	g.setEnv()
    	g.setShorthand([]string{"-command", "yacc", "go", "tool", "yacc"})
    	for _, test := range splitTests {
    		// First with newlines.
    		got := g.split("//go:generate " + test.in + "\n")
    		if !reflect.DeepEqual(got, test.out) {
    			t.Errorf("split(%q): got %q expected %q", test.in, got, test.out)
    		}
    		// Then with CRLFs, thank you Windows.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 20 14:09:12 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  10. 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)
Back to top