Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 172 for shorterOf (0.15 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. src/cmd/go/internal/base/path.go

    }
    
    // ShortPath returns an absolute or relative name for path, whatever is shorter.
    func ShortPath(path string) string {
    	if rel, err := filepath.Rel(Cwd(), path); err == nil && len(rel) < len(path) {
    		return rel
    	}
    	return path
    }
    
    // RelPaths returns a copy of paths with absolute paths
    // made relative to the current directory if they would be shorter.
    func RelPaths(paths []string) []string {
    	var out []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 20 19:17:27 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. 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)
  5. src/crypto/rsa/boring_test.go

    		E: 65537,
    	}
    
    	hash := fromHex("019c5571724fb5d0e47a4260c940e9803ba05a44")
    	paddedHash := fromHex("3021300906052b0e03021a05000414019c5571724fb5d0e47a4260c940e9803ba05a44")
    
    	// signature is one byte shorter than key.N.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 00:16:30 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ModelPathSuggestionProviderTest.groovy

            then:
            suggestionsFor("tasks.fooba") == ["tasks.foobar", "task.afoobar", "tasks.boofar"]
        }
    
        def "suggests model paths with Levenshtein distance lower than half it's length for strings shorter than 6 characters"() {
            when:
            availablePaths = ["fo", "bor", "for", "of", "foob"]
    
            then:
            suggestionsFor("foo") == ["fo", "foob", "for"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. platforms/core-runtime/serialization/src/testFixtures/groovy/org/gradle/internal/serialize/SerializerSpec.groovy

            def bytes = toBytes(value, serializer)
            return fromBytes(bytes, serializer)
        }
    
        /**
         * Serializes and deserializes the given value, asserting that the generated byte sequence is shorter than it would be when default
         * Java serialization is used.
         */
        <T> T usesEfficientSerialization(T value, Serializer<T> serializer, Integer expectedLength = null) {
            def bytes = toBytes(value, serializer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top