Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 447 for Trailing (0.14 sec)

  1. src/os/path_unix.go

    	dirname := "."
    
    	// Remove all but one leading slash.
    	for len(path) > 1 && path[0] == '/' && path[1] == '/' {
    		path = path[1:]
    	}
    
    	i := len(path) - 1
    
    	// Remove trailing slashes.
    	for ; i > 0 && path[i] == '/'; i-- {
    		path = path[:i]
    	}
    
    	// if no slashes in path, base is path
    	basename := path
    
    	// Remove leading directory path
    	for i--; i >= 0; i-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/math/big/floatmarsh.go

    	if x.form == finite {
    		// add space for mantissa and exponent
    		n = int((x.prec + (_W - 1)) / _W) // required mantissa length in words for given precision
    		// actual mantissa slice could be shorter (trailing 0's) or longer (unused bits):
    		// - if shorter, only encode the words present
    		// - if longer, cut off unused words when encoding in bytes
    		//   (in practice, this should never happen since rounding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/events/YesNoQuestionPromptEventTest.groovy

    class YesNoQuestionPromptEventTest extends Specification {
        def "formats prompt"() {
            def event = new YesNoQuestionPromptEvent(123, "question?")
    
            expect:
            event.prompt == "question? [yes, no] " // trailing space
        }
    
        def "accepts valid input"() {
            def event = new YesNoQuestionPromptEvent(123, "question?")
    
            expect:
            def result = event.convert(input)
            result.response == expected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:05 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/internal/filepathlite/path_windows.go

    func isReservedName(name string) bool {
    	// Device names can have arbitrary trailing characters following a dot or colon.
    	base := name
    	for i := 0; i < len(base); i++ {
    		switch base[i] {
    		case ':', '.':
    			base = base[:i]
    		}
    	}
    	// Trailing spaces in the last path element are ignored.
    	for len(base) > 0 && base[len(base)-1] == ' ' {
    		base = base[:len(base)-1]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  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. cmd/object-api-utils_test.go

    		{"␀␁␂␃␄␅␆␇␈␉␊␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟␡", true},
    		{"trailing VT␋/trailing VT␋", true},
    		{"␋leading VT/␋leading VT", true},
    		{"~leading tilde", true},
    		{"\rleading CR", true},
    		{"\nleading LF", true},
    		{"\tleading HT", true},
    		{"trailing CR\r", true},
    		{"trailing LF\n", true},
    		{"trailing HT\t", true},
    		// cases for which test should fail.
    		// passing invalid object names.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. src/net/http/routing_tree_test.go

    	})
    
    	// A pattern ending in {$} should only match URLS with a trailing slash.
    	pat1 := "/a/b/{$}"
    	test(buildTree(pat1), []testCase{
    		{"GET", "", "/a/b", "", nil},
    		{"GET", "", "/a/b/", pat1, nil},
    		{"GET", "", "/a/b/c", "", nil},
    		{"GET", "", "/a/b/c/d", "", nil},
    	})
    
    	// A pattern ending in a single wildcard should not match a trailing slash URL.
    	pat2 := "/a/b/{w}"
    	test(buildTree(pat2), []testCase{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. src/net/dnsclient.go

    // absDomainName returns an absolute domain name which ends with a
    // trailing dot to match pure Go reverse resolver and all other lookup
    // routines.
    // See golang.org/issue/12189.
    // But we don't want to add dots for local names from /etc/hosts.
    // It's hard to tell so we settle on the heuristic that names without dots
    // (like "localhost" or "myhost") do not get trailing dots, but any other
    // names do.
    func absDomainName(s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top