Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for shorterOf (2.16 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/util/TextUtil.java

                if (i < lines.length - 1) {
                    builder.append('\n');
                }
            }
    
            return builder.toString();
        }
    
        public static String shorterOf(String s1, String s2) {
            logDeprecation();
            if (s2.length() >= s1.length()) {
                return s1;
            } else {
                return s2;
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/annotations.kt

     *
     * The recommendation to avoid caching services is due to the risk of leaks. Properties annotated with [KaCachedService] should make sure
     * that they don't leak the service: the lifetime of the property should be shorter or as long as the lifetime of the cached service.
     *
     * When caching a service inside another service, the property should also be [lazy] to avoid issues with cyclic service initialization and
     * excessive class loading on startup.
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. android/guava/src/com/google/common/collect/Comparators.java

       * Returns a new comparator which sorts iterables by comparing corresponding elements pairwise
       * until a nonzero result is found; imposes "dictionary order." If the end of one iterable is
       * reached, but not the other, the shorter iterable is considered to be less than the longer one.
       * For example, a lexicographical natural ordering over integers considers {@code [] < [1] < [1,
       * 1] < [1, 2] < [2]}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  8. src/text/template/funcs.go

    	lessThan, err := lt(arg1, arg2)
    	if err != nil {
    		return false, err
    	}
    	return !lessThan, nil
    }
    
    // HTML escaping.
    
    var (
    	htmlQuot = []byte("&#34;") // shorter than "&quot;"
    	htmlApos = []byte("&#39;") // shorter than "&apos;" and apos was not in HTML until HTML5
    	htmlAmp  = []byte("&amp;")
    	htmlLt   = []byte("&lt;")
    	htmlGt   = []byte("&gt;")
    	htmlNull = []byte("\uFFFD")
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/certificates/v1/types.go

    	//
    	//   1. Old signer that is unaware of the field (such as the in-tree
    	//      implementations prior to v1.22)
    	//   2. Signer whose configured maximum is shorter than the requested duration
    	//   3. Signer whose configured minimum is longer than the requested duration
    	//
    	// The minimum valid value for expirationSeconds is 600, i.e. 10 minutes.
    	//
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       * compares, using {@link #compare(byte, byte)}), the first pair of values that follow any common
       * prefix, or when one array is a prefix of the other, treats the shorter array as the lesser. For
       * example, {@code [] < [0x01] < [0x01, 0x7F] < [0x01, 0x80] < [0x02]}. Values are treated as
       * unsigned.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
Back to top