Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 202 for shorterOf (0.19 sec)

  1. subprojects/core/src/test/groovy/org/gradle/util/internal/TextUtilTest.groovy

            "abc\n\t\n   \nghi" | "X"    | "Xabc\n\t\n   \nXghi"
        }
    
        def shorterOf() {
            expect:
            TextUtil.shorterOf("a", "b") == "a"
            TextUtil.shorterOf("aa", "b") == "b"
            TextUtil.shorterOf("a", "bb") == "a"
            TextUtil.shorterOf("", "bb") == ""
            TextUtil.shorterOf("", "") == ""
        }
    
        def "#camelCase to kebab = #kebabCase"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/html/entity_test.go

    	// unescaped text is <= the length of escaped text.
    	for k, v := range entity {
    		if 1+len(k) < utf8.RuneLen(v) {
    			t.Error("escaped entity &" + k + " is shorter than its UTF-8 encoding " + string(v))
    		}
    		if len(k) > longestEntityWithoutSemicolon && k[len(k)-1] != ';' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 31 22:10:54 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/internal/obj/x86/ytab.go

    // This means that args should contain values that already
    // multiplied by Ymax.
    func (yt *ytab) match(args []int) bool {
    	// Trailing Yxxx check is required to avoid a case
    	// where shorter arg list is matched.
    	// If we had exact yt.args length, it could be `yt.argc != len(args)`.
    	if len(args) < len(yt.args) && yt.args[len(args)] != Yxxx {
    		return false
    	}
    
    	for i := range args {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 06 15:40:03 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top