Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for sw (0.01 seconds)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

        @Test
        public void testSaveComment1() throws Exception {
            properties.put(KEY1, COMMENT, VALUE1);
            StringWriter sw = new StringWriter();
            properties.save(sw);
            String msg = sw.toString();
            assertTrue(sw.toString().endsWith(RESULT1), msg);
        }
    
        private static final String RESULT1A = COMMENT + LINE_SEPARATOR + KEY2A + " = " + VALUE1 + LINE_SEPARATOR;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Mar 09 14:29:03 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  2. src/archive/tar/writer.go

    			bf := b[:min(int64(len(b)), dataStart-sw.pos)]
    			nf, err = zeroWriter{}.Write(bf)
    		} else { // In a data fragment
    			bf := b[:min(int64(len(b)), dataEnd-sw.pos)]
    			nf, err = sw.fw.Write(bf)
    		}
    		b = b[nf:]
    		sw.pos += int64(nf)
    		if sw.pos >= dataEnd && len(sw.sp) > 1 {
    			sw.sp = sw.sp[1:] // Ensure last fragment always remains
    		}
    	}
    
    	n = len(b0) - len(b)
    	switch {
    	case err == ErrWriteTooLong:
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Mon Feb 03 16:38:43 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CommonsCliOptions.java

                if (width <= 0) {
                    width = HelpFormatter.DEFAULT_WIDTH;
                }
    
                pw.accept("");
    
                StringWriter sw = new StringWriter();
                PrintWriter pw2 = new PrintWriter(sw);
                formatter.printHelp(
                        pw2,
                        width,
                        commandLineSyntax(command),
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Oct 08 07:36:42 GMT 2025
    - 21.3K bytes
    - Click Count (0)
  4. src/bufio/bufio.go

    // why the write is short.
    func (b *Writer) WriteString(s string) (int, error) {
    	var sw io.StringWriter
    	tryStringWriter := true
    
    	nn := 0
    	for len(s) > b.Available() && b.err == nil {
    		var n int
    		if b.Buffered() == 0 && sw == nil && tryStringWriter {
    			// Check at most once whether b.wr is a StringWriter.
    			sw, tryStringWriter = b.wr.(io.StringWriter)
    		}
    		if b.Buffered() == 0 && tryStringWriter {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Feb 06 17:28:40 GMT 2026
    - 22K bytes
    - Click Count (0)
  5. Vagrantfile

    # -*- mode: ruby -*-
    # vim: ft=ruby ts=2 sw=2 sts=2 et:
    
    # This Vagrantfile exists to test packaging. Read more about its use in the
    # vagrant section in TESTING.asciidoc.
    
    # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
    # or more contributor license agreements. Licensed under the Elastic License
    # 2.0 and the Server Side Public License, v 1; you may not use this file except
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Feb 17 17:41:23 GMT 2021
    - 14.9K bytes
    - Click Count (0)
Back to Top