Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 220 for Newlines (0.22 sec)

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

                label.newLineAdjustment();
            }
        }
    
        public void redraw(AnsiContext ansi) {
            int newLines = 0 - statusAreaPos.row + getHeight() - 1;
            if (isVisible && newLines > 0) {
                ansi.cursorAt(Cursor.newBottomLeft()).newLines(newLines);
            }
    
            // Redraw every entry of this area
            for (int i = 0; i < entries.size(); ++i) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.h

      }
    
      // Append a multiline string of source code, left-justified (not indented).
      // Note: Trims leading/trailing whitespace including newlines, making this
      //       method convenient for multiline raw strings.
      // Newlines ('\n') are allowed/expected.
      Renderer &CodeLines(const string &text);
      template <typename... Args>
      Renderer CodeLines(absl::string_view text, const Args &...args) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/cmd/doc/pkg.go

    		log.Fatal(err)
    	}
    	pkg.buf.Reset() // Not needed, but it's a flush.
    }
    
    var newlineBytes = []byte("\n\n") // We never ask for more than 2.
    
    // newlines guarantees there are n newlines at the end of the buffer.
    func (pkg *Package) newlines(n int) {
    	for !bytes.HasSuffix(pkg.buf.Bytes(), newlineBytes[:n]) {
    		pkg.buf.WriteRune('\n')
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/users/users_linux.go

    	out := file
    	newLines := make([]string, 0, len(entries))
    	for _, e := range entries {
    		newLines = append(newLines, createEntry(e))
    	}
    	newLinesStr := ""
    	if len(newLines) > 0 {
    		if !strings.HasSuffix(out, "\n") { // Append a new line if its missing.
    			newLinesStr = "\n"
    		}
    		newLinesStr += strings.Join(newLines, "\n") + "\n"
    	}
    	return out + newLinesStr
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top