Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for shorterOf (0.23 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/TextUtil.java

                if (i < lines.length - 1) {
                    builder.append('\n');
                }
            }
    
            return builder.toString();
        }
    
        public static String shorterOf(String s1, String s2) {
            if (s2.length() >= s1.length()) {
                return s1;
            } else {
                return s2;
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GUtil.java

         */
        public static boolean endsWith(CharSequence longer, CharSequence shorter) {
            if (longer instanceof String && shorter instanceof String) {
                return ((String) longer).endsWith((String) shorter);
            }
            int longerLength = longer.length();
            int shorterLength = shorter.length();
            if (longerLength < shorterLength) {
                return false;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

         */
        public static boolean endsWith(CharSequence longer, CharSequence shorter) {
            if (longer instanceof String && shorter instanceof String) {
                return ((String) longer).endsWith((String) shorter);
            }
            int longerLength = longer.length();
            int shorterLength = shorter.length();
            if (longerLength < shorterLength) {
                return false;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/shell.go

    		// /foo/bar/baz/root does.  And there may be other niblings sharing shorter
    		// prefixes, the only way to find them is to look.
    		// This doesn't always produce a relative path --
    		// /foo is shorter than ../../.., for example.
    		if reldir := base.ShortPath(dir); reldir != dir {
    			out = replacePrefix(out, dir, reldir)
    			if filepath.Separator == '\\' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook.go

    		result *authenticationv1.TokenReview
    		auds   authenticator.Audiences
    		cancel context.CancelFunc
    	)
    
    	// set a hard timeout if it was defined
    	// if the child has a shorter deadline then it will expire first,
    	// otherwise if the parent has a shorter deadline then the parent will expire and it will be propagate to the child
    	if w.requestTimeout > 0 {
    		ctx, cancel = context.WithTimeout(ctx, w.requestTimeout)
    		defer cancel()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  6. src/crypto/internal/edwards25519/scalar.go

    	// expects an input lower than l, which is a little over 252 bits.
    	//
    	// Instead of writing a reduction function that operates on wider inputs, we
    	// can interpret x as the sum of three shorter values a, b, and c.
    	//
    	//    x = a + b * 2^168 + c * 2^336  mod l
    	//
    	// We then precompute 2^168 and 2^336 modulo l, and perform the reduction
    	// with two multiplications and two additions.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_invalid_version.txt

    stderr 'go: example.com@v0.0.0 requires\n\tgolang.org/x/text@v0.1.1-0.20170915032832-14c0d48ead0: invalid pseudo-version: revision is shorter than canonical \(expected 14c0d48ead0c\)'
    cd ..
    ! go list -m golang.org/x/text
    stderr 'golang.org/x/text@v0.1.1-0.20170915032832-14c0d48ead0: invalid pseudo-version: revision is shorter than canonical \(expected 14c0d48ead0c\)'
    
    # A pseudo-version with more than 12 digits of SHA-1 prefix is invalid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 02 02:54:20 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/cache/DefaultCacheConfigurations.java

                if (removeUnusedEntriesAfterDays < 1) {
                    throw new IllegalArgumentException(name + " cannot be set to retain entries for " + removeUnusedEntriesAfterDays + " days.  For time frames shorter than one day, use the 'removeUnusedEntriesOlderThan' property.");
                }
                getRemoveUnusedEntriesOlderThan().set(providerFromSupplier(daysAgo(removeUnusedEntriesAfterDays)));
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 20:26:37 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/p224.go

    	}
    	return nil
    }
    
    // Bytes returns the uncompressed or infinity encoding of p, as specified in
    // SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the point at
    // infinity is shorter than all other encodings.
    func (p *P224Point) Bytes() []byte {
    	// This function is outlined to make the allocations inline in the caller
    	// rather than happen on the heap.
    	var out [1 + 2*p224ElementLength]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/p521.go

    	}
    	return nil
    }
    
    // Bytes returns the uncompressed or infinity encoding of p, as specified in
    // SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the point at
    // infinity is shorter than all other encodings.
    func (p *P521Point) Bytes() []byte {
    	// This function is outlined to make the allocations inline in the caller
    	// rather than happen on the heap.
    	var out [1 + 2*p521ElementLength]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 17K bytes
    - Viewed (0)
Back to top