Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,092 for Trailing (0.21 sec)

  1. src/go/printer/example_test.go

    	// line breaks where they were present in the source.
    	var buf bytes.Buffer
    	printer.Fprint(&buf, fset, funcAST.Body)
    
    	// Remove braces {} enclosing the function body, unindent,
    	// and trim leading and trailing white space.
    	s := buf.String()
    	s = s[1 : len(s)-1]
    	s = strings.TrimSpace(strings.ReplaceAll(s, "\n\t", "\n"))
    
    	// Print the cleaned-up body text to stdout.
    	fmt.Println(s)
    }
    
    func ExampleFprint() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:55:02 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/ifreq_linux.go

    //   - Uint32/SetUint32: ifindex, metric, mtu
    type Ifreq struct{ raw ifreq }
    
    // NewIfreq creates an Ifreq with the input network interface name after
    // validating the name does not exceed IFNAMSIZ-1 (trailing NULL required)
    // bytes.
    func NewIfreq(name string) (*Ifreq, error) {
    	// Leave room for terminating NULL byte.
    	if len(name) >= IFNAMSIZ {
    		return nil, EINVAL
    	}
    
    	var ifr ifreq
    	copy(ifr.Ifrn[:], name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/go/parser/resolver_test.go

    // file, and use labels must refer to an existing declaration label. It's OK
    // for a comment to denote both the declaration and use of a label (e.g.
    // '=@foo'). Leading and trailing whitespace is ignored. Any comment not
    // beginning with '=' or '@' is ignored.
    func TestResolution(t *testing.T) {
    	dir := filepath.Join("testdata", "resolution")
    	fis, err := os.ReadDir(dir)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 17:46:07 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/events/BooleanQuestionPromptEventTest.groovy

        def "formats prompt"() {
            def event = new BooleanQuestionPromptEvent(123, "question?", true)
    
            expect:
            event.prompt == "question? (default: yes) [yes, no] " // trailing space
        }
    
        def "accepts valid input"() {
            def event = new BooleanQuestionPromptEvent(123, "question?", true)
    
            expect:
            def result = event.convert(input)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/gen/common/source_code.cc

      if (absl::StrContains(line, '\n')) {
        LOG(ERROR) << "Attempt to add multiple lines; bad formatting is likely.";
      } else if (had_trailing_newline) {
        LOG(WARNING) << "Superfluous trailing newline in '" << line << "'";
      }
      lines_.push_back({indent, string(absl::StripTrailingAsciiWhitespace(line))});
    }
    
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/Util.h

     *  @param szString  The string to trim.
     */
    
    CU_EXPORT void CU_trim_right(char *szString);
    /**< 
     *  Trims trailing whitespace from the specified string.
     *  @param szString  The string to trim.
     */
    
    CU_EXPORT void CU_trim(char *szString);
    /**< 
     *  Trims leading and trailing whitespace from the specified string.
     *  @param szString  The string to trim.
     */
    
    CU_EXPORT size_t CU_number_width(int number);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. src/path/filepath/match.go

    func Match(pattern, name string) (matched bool, err error) {
    Pattern:
    	for len(pattern) > 0 {
    		var star bool
    		var chunk string
    		star, chunk, pattern = scanChunk(pattern)
    		if star && chunk == "" {
    			// Trailing * matches rest of string unless it has a /.
    			return !strings.Contains(name, string(Separator)), nil
    		}
    		// Look for match at current position.
    		t, ok, err := matchChunk(chunk, name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. src/crypto/x509/pkcs1.go

    func ParsePKCS1PrivateKey(der []byte) (*rsa.PrivateKey, error) {
    	var priv pkcs1PrivateKey
    	rest, err := asn1.Unmarshal(der, &priv)
    	if len(rest) > 0 {
    		return nil, asn1.SyntaxError{Msg: "trailing data"}
    	}
    	if err != nil {
    		if _, err := asn1.Unmarshal(der, &ecPrivateKey{}); err == nil {
    			return nil, errors.New("x509: failed to parse private key (use ParseECPrivateKey instead for this key format)")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  9. src/net/http/pattern.go

    func (p *pattern) lastSegment() segment {
    	return p.segments[len(p.segments)-1]
    }
    
    // A segment is a pattern piece that matches one or more path segments, or
    // a trailing slash.
    //
    // If wild is false, it matches a literal segment, or, if s == "/", a trailing slash.
    // Examples:
    //
    //	"a" => segment{s: "a"}
    //	"/{$}" => segment{s: "/"}
    //
    // If wild is true and multi is false, it matches a single path segment.
    // Example:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  10. platforms/core-execution/build-cache-http/src/main/java/org/gradle/caching/http/internal/HttpBuildCacheService.java

                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        /**
         * Add a trailing slash to the given URI's path if necessary.
         *
         * @param uri the original URI
         * @return a URI guaranteed to have a trailing slash in the path
         */
        private static URI withTrailingSlash(URI uri) {
            if (uri.getPath().endsWith("/")) {
                return uri;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 14:13:12 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top