Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for shorterOf (0.28 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/crypto/aes/ctr_s390x.go

    var _ ctrAble = (*aesCipherAsm)(nil)
    
    // xorBytes xors the contents of a and b and places the resulting values into
    // dst. If a and b are not the same length then the number of bytes processed
    // will be equal to the length of shorter of the two. Returns the number
    // of bytes processed.
    //
    //go:noescape
    func xorBytes(dst, a, b []byte) int
    
    // streamBufferSize is the number of bytes of encrypted counter values to cache.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. gradlew.bat

    if "%OS%"=="Windows_NT" setlocal
    
    set DIRNAME=%~dp0
    if "%DIRNAME%"=="" set DIRNAME=.
    @rem This is normally unused
    set APP_BASE_NAME=%~n0
    set APP_HOME=%DIRNAME%
    
    @rem Resolve any "." and ".." in APP_HOME to make it shorter.
    for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
    
    @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
    set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 08:31:48 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/windowsStartScript.txt

    set DIRNAME=%~dp0
    if "%DIRNAME%"=="" set DIRNAME=.\
    
    @rem This is normally unused
    set APP_BASE_NAME=%~n0
    set APP_HOME=%DIRNAME%${appHomeRelativePath}
    
    @rem Resolve any "." and ".." in APP_HOME to make it shorter.
    for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
    
    @rem Add default JVM options here. You can also use JAVA_OPTS and ${optsEnvironmentVar} to pass JVM options to this script.
    set DEFAULT_JVM_OPTS=${defaultJvmOpts}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 13:16:41 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top