Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,813 for Leading (0.14 sec)

  1. src/net/textproto/textproto.go

    		return 0, err
    	}
    	return id, nil
    }
    
    // TrimString returns s without leading and trailing ASCII space.
    func TrimString(s string) string {
    	for len(s) > 0 && isASCIISpace(s[0]) {
    		s = s[1:]
    	}
    	for len(s) > 0 && isASCIISpace(s[len(s)-1]) {
    		s = s[:len(s)-1]
    	}
    	return s
    }
    
    // TrimBytes returns b without leading and trailing ASCII space.
    func TrimBytes(b []byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/cmd/gofmt/internal.go

    		if err != nil {
    			return nil, err
    		}
    		return buf.Bytes(), nil
    	}
    
    	// Partial source file.
    	// Determine and prepend leading space.
    	i, j := 0, 0
    	for j < len(src) && isSpace(src[j]) {
    		if src[j] == '\n' {
    			i = j + 1 // byte offset of last line in leading space
    		}
    		j++
    	}
    	var res []byte
    	res = append(res, src[:i]...)
    
    	// Determine and prepend indentation of first code line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 28 14:23:08 UTC 2020
    - 5K bytes
    - Viewed (0)
  3. src/go/format/internal.go

    		if err != nil {
    			return nil, err
    		}
    		return buf.Bytes(), nil
    	}
    
    	// Partial source file.
    	// Determine and prepend leading space.
    	i, j := 0, 0
    	for j < len(src) && isSpace(src[j]) {
    		if src[j] == '\n' {
    			i = j + 1 // byte offset of last line in leading space
    		}
    		j++
    	}
    	var res []byte
    	res = append(res, src[:i]...)
    
    	// Determine and prepend indentation of first code line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 28 14:23:08 UTC 2020
    - 5K bytes
    - Viewed (0)
  4. src/net/textproto/writer.go

    	fmt.Fprintf(w.W, format, args...)
    	w.W.Write(crnl)
    	return w.W.Flush()
    }
    
    // DotWriter returns a writer that can be used to write a dot-encoding to w.
    // It takes care of inserting leading dots when necessary,
    // translating line-ending \n into \r\n, and adding the final .\r\n line
    // when the DotWriter is closed. The caller should close the
    // DotWriter before the next call to a method on w.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/CachedDependencyResolutionIntegrationTest.groovy

            changedResolve()
        }
    
        @Issue("GRADLE-2781")
        def "no leading zeros in sha1 checksums supported"() {
            given:
            def sha1 = new File("${module.jarFile.absolutePath}.sha1")
            server.etags = null
            server.sendLastModified = false
            byte[] jarBytes = [0, 0, 0, 5] // this should produce leading zeros
            module.jarFile.bytes = jarBytes
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. src/cmd/internal/objabi/line.go

    // as rewritten by the rewrites argument.
    // For unrewritten paths, AbsFile rewrites a leading $GOROOT prefix to the literal "$GOROOT".
    // If the resulting path is the empty string, the result is "??".
    //
    // The rewrites argument is a ;-separated list of rewrites.
    // Each rewrite is of the form "prefix" or "prefix=>replace",
    // where prefix must match a leading sequence of path elements
    // and is either removed entirely or replaced by the replacement.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 23:10:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. test/literal2.go

    	return true
    }
    
    func main() {
    	// 0-octals
    	assert(0_1 == 01)
    	assert(012 == 012)
    	assert(0_1_2 == 012)
    	assert(0_1_2i == complex(0, 12)) // decimal digits despite leading 0 for backward-compatibility
    	assert(00089i == complex(0, 89)) // decimal digits despite leading 0 for backward-compatibility
    
    	// decimals
    	assert(1_000_000 == 1000000)
    	assert(1_000i == complex(0, 1000))
    
    	// hexadecimals
    	assert(0x_1 == 0x1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 19 22:45:09 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  8. platforms/software/security/src/main/java/org/gradle/plugins/signing/type/SignatureType.java

    import java.io.File;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    /**
     * The type of signature.
     */
    public interface SignatureType {
    
        /**
         * The file extension (without the leading dot) associated to this type of signature.
         */
        @Input
        String getExtension();
    
        /**
         * Calculates the file where to store the signature of the given file to be signed.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. test/fixedbugs/issue20162.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 20162: embedded interfaces weren't dowidth-ed by the front end,
    // leading to races in the backend.
    
    package p
    
    func Foo() {
    	_ = (make([]func() interface {
    		M(interface{})
    	}, 1))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 20:07:38 UTC 2017
    - 370 bytes
    - Viewed (0)
  10. src/internal/filepathlite/path.go

    		}
    		return originalPath + "."
    	}
    	rooted := IsPathSeparator(path[0])
    
    	// Invariants:
    	//	reading from path; r is index of next byte to process.
    	//	writing to buf; w is index of next byte to write.
    	//	dotdot is index in buf where .. must stop, either because
    	//		it is the leading slash or it is a leading ../../.. prefix.
    	n := len(path)
    	out := lazybuf{path: path, volAndPath: originalPath, volLen: volLen}
    	r, dotdot := 0, 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top