- Sort Score
- Result 10 results
- Languages All
Results 1251 - 1260 of 1,397 for isInteger (0.24 sec)
-
cmd/postpolicyform.go
return "" } } // toLowerString - safely convert interface to lower string func toLowerString(val interface{}) string { return strings.ToLower(toString(val)) } // toInteger _ Safely convert interface to integer without causing panic. func toInteger(val interface{}) (int64, error) { switch v := val.(type) { case float64: return int64(v), nil case int64: return v, nil case int: return int64(v), nil
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 12.4K bytes - Viewed (0) -
cmd/erasure-healing-common.go
onlineDisks[index] = disks[index] } else { onlineDisks[index] = nil } } return onlineDisks, modTime, "" } // Convert verify or check parts returned error to integer representation func convPartErrToInt(err error) int { err = unwrapAll(err) switch err { case nil: return checkPartSuccess case errFileNotFound, errFileVersionNotFound: return checkPartFileNotFound
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 12.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
* * @throws NumberFormatException if [s] is not an integer of any precision. */ private fun parseMaxAge(s: String): Long { try { val parsed = s.toLong() return if (parsed <= 0L) Long.MIN_VALUE else parsed } catch (e: NumberFormatException) { // Check if the value is an integer (positive or negative) that's too big for a long.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:12:05 UTC 2024 - 23.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashSet.java
return delegateOrNull() != null; } /** Stores the hash table mask as the number of bits needed to represent an index. */ private void setHashTableMask(int mask) { int hashTableBits = Integer.SIZE - Integer.numberOfLeadingZeros(mask); metadata = CompactHashing.maskCombine(metadata, hashTableBits, CompactHashing.HASH_TABLE_BITS_MASK); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 24.9K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeResolver.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/io/BaseEncoding.java
if (ch > Ascii.MAX) { throw new DecodingException("Unrecognized character: 0x" + Integer.toHexString(ch)); } int result = decodabet[ch]; if (result == -1) { if (ch <= 0x20 || ch == Ascii.MAX) { throw new DecodingException("Unrecognized character: 0x" + Integer.toHexString(ch)); } else { throw new DecodingException("Unrecognized character: " + ch);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 41.8K bytes - Viewed (0) -
guava/src/com/google/common/io/Files.java
* FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long)}. * * <p>Files are mapped from offset 0 to its length. * * <p>This only works for files ≤ {@link Integer#MAX_VALUE} bytes. * * @param file the file to map * @return a read-only buffer reflecting {@code file} * @throws FileNotFoundException if the {@code file} does not exist
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jul 22 19:03:12 UTC 2024 - 33.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
* * @param <B> the upper bound on the eventual type that can be produced by this builder (for * example, a {@code Builder<Number>} can produce a {@code Queue<Number>} or {@code * Queue<Integer>} but not a {@code Queue<Object>}). * @since 8.0 */ public static final class Builder<B> { /* * TODO(kevinb): when the dust settles, see if we still need this or can
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 34.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableList.java
// whatever warnings might come along with it. :( /** * Returns an immutable list containing the given elements, in order. * * <p>The array {@code others} must not be longer than {@code Integer.MAX_VALUE - 12}. * * @throws NullPointerException if any element is null * @since 3.0 (source-compatible since 2.0) */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 16 19:14:45 UTC 2024 - 30.5K bytes - Viewed (0) -
configure.py
def convert_version_to_int(version): """Convert a version number to a integer that can be used to compare. Version strings of the form X.YZ and X.Y.Z-xxxxx are supported. The 'xxxxx' part, for instance 'homebrew' on OS/X, is ignored. Args: version: a version to be converted Returns: An integer if converted successfully, otherwise return None. """ version = version.split('-')[0]
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Oct 02 22:16:02 UTC 2024 - 48.2K bytes - Viewed (0)