Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for line1 (0.02 sec)

  1. src/bufio/bufio_test.go

    	line1 := "this is line1"
    	restData := "this is line2\nthis is line 3\n"
    	inbuf := bytes.NewReader([]byte(line1 + "\n" + restData))
    	outbuf := new(strings.Builder)
    	maxLineLength := len(line1) + len(restData)/2
    	l := NewReaderSize(inbuf, maxLineLength)
    	line, isPrefix, err := l.ReadLine()
    	if isPrefix || err != nil || string(line) != line1 {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/CharSink.java

        writeLines(lines, System.getProperty("line.separator"));
      }
    
      /**
       * Writes the given lines of text to this sink with each line (including the last) terminated with
       * the given line separator.
       *
       * @throws IOException if an I/O error occurs while writing to this sink
       */
      public void writeLines(Iterable<? extends CharSequence> lines, String lineSeparator)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/CharSource.java

     * <p>Several methods in this class, such as {@link #readLines()}, break the contents of the source
     * into lines. Like {@link BufferedReader}, these methods break lines on any of {@code \n}, {@code
     * \r} or {@code \r\n}, do not include the line separator in each line and do not consider there to
     * be an empty line at the end if the contents are terminated with a line separator.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

                    }
                    valueLines.add(line);
                    while (line.length() > 0 && contains(WHITE_SPACE, line.charAt(0))) {
                        line = line.substring(1, line.length());
                    }
                    buffer.append(line);
                    if (!combine) {
                        break;
                    }
                }
                return buffer.toString();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/MultilineMessageHelper.java

        public static List<String> format(String... lines) {
            int size = DEFAULT_MAX_SIZE;
            int remainder = size - 4; // 4 chars = 2 box_char + 2 spaces
            List<String> result = new ArrayList<>();
            StringBuilder sb = new StringBuilder(size);
            // first line
            sb.setLength(0);
            repeat(sb, BOX_CHAR, size);
            result.add(sb.toString());
            // lines
            for (String line : lines) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        TestCharSource lines = new TestCharSource(LINES);
        assertEquals("foo", lines.readFirstLine());
        assertTrue(lines.wasStreamOpened() && lines.wasStreamClosed());
      }
    
      public void testReadLines_toList() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
        assertEquals(ImmutableList.of("foo", "bar", "baz", "something"), lines.readLines());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

                }
            }
    
            String[] lines = NEXT_LINE.split(msg);
            String currentColor = "";
    
            for (int i = 0; i < lines.length; i++) {
                // add eventual current color inherited from previous line
                String line = currentColor + lines[i];
    
                // look for last ANSI escape sequence to check if nextColor
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

            return appendEscapeSequence('E');
        }
    
        /**
         * Moves the cursor to the beginning of the n-th line below. If the parameter n is negative it
         * moves the cursor to the beginning of the n-th line above.
         *
         * @param n the number of lines to move the cursor
         * @return this Ansi instance
         */
        public Ansi cursorDownLine(final int n) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                }
            }
    
            String[] lines = NEXT_LINE.split(msg);
            String currentColor = "";
    
            for (int i = 0; i < lines.length; i++) {
                // add eventual current color inherited from previous line
                String line = currentColor + lines[i];
    
                // look for last ANSI escape sequence to check if nextColor
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  10. common/config/.golangci.yml

        locale: US
        ignore-words:
          - cancelled
      lll:
        # max line length, lines longer will be reported. Default is 120.
        # '\t' is counted as 1 character by default, and can be changed with the tab-width option
        line-length: 160
        # tab width in spaces. Default to 1.
        tab-width: 1
      revive:
        ignore-generated-header: false
        severity: "warning"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top