Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for MAX_RADIX (0.08 sec)

  1. android/guava/src/com/google/common/primitives/UnsignedLongs.java

        static final long[] maxValueDivs = new long[Character.MAX_RADIX + 1];
        static final int[] maxValueMods = new int[Character.MAX_RADIX + 1];
        static final int[] maxSafeDigits = new int[Character.MAX_RADIX + 1];
    
        static {
          BigInteger overflow = new BigInteger("10000000000000000", 16);
          for (int i = Character.MIN_RADIX; i <= Character.MAX_RADIX; i++) {
            maxValueDivs[i] = divide(MAX_VALUE, i);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 21:04:48 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

          for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
            assertThat(UnsignedInts.parseUnsignedInt(Long.toString(a, radix), radix))
                .isEqualTo((int) a);
          }
        }
      }
    
      public void testParseIntWithRadixLimits() {
        // loops through all legal radix values.
        for (int r = Character.MIN_RADIX; r <= Character.MAX_RADIX; r++) {
          final int radix = r;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        // Valid radix values are Character.MIN_RADIX to Character.MAX_RADIX,
        // inclusive.
        assertThrows(
            NumberFormatException.class,
            () -> UnsignedBytes.parseUnsignedByte("0", Character.MIN_RADIX - 1));
    
        assertThrows(
            NumberFormatException.class,
            () -> UnsignedBytes.parseUnsignedByte("0", Character.MAX_RADIX + 1));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedLong.java

       *
       * @throws NumberFormatException if the string does not contain a parsable unsigned {@code long}
       *     value, or {@code radix} is not between {@link Character#MIN_RADIX} and {@link
       *     Character#MAX_RADIX}
       */
      @CanIgnoreReturnValue
      public static UnsignedLong valueOf(String string, int radix) {
        return fromLongBits(UnsignedLongs.parseUnsignedLong(string, radix));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/UnsignedLong.java

       *
       * @throws NumberFormatException if the string does not contain a parsable unsigned {@code long}
       *     value, or {@code radix} is not between {@link Character#MIN_RADIX} and {@link
       *     Character#MAX_RADIX}
       */
      @CanIgnoreReturnValue
      public static UnsignedLong valueOf(String string, int radix) {
        return fromLongBits(UnsignedLongs.parseUnsignedLong(string, radix));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        }
      }
    
      @GwtIncompatible // too slow
      public void testToStringRadix() {
        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          for (long l : TEST_LONGS) {
            UnsignedLong value = UnsignedLong.fromLongBits(l);
            assertThat(value.toString(radix)).isEqualTo(value.bigIntegerValue().toString(radix));
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedInts.java

       *
       * @param string the string containing the unsigned integer representation to be parsed.
       * @param radix the radix to use while parsing {@code s}; must be between {@link
       *     Character#MIN_RADIX} and {@link Character#MAX_RADIX}.
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code int}, or
       *     if supplied radix is invalid.
       * @throws NullPointerException if {@code s} is null (in contrast to {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/UnsignedInts.java

       *
       * @param string the string containing the unsigned integer representation to be parsed.
       * @param radix the radix to use while parsing {@code s}; must be between {@link
       *     Character#MIN_RADIX} and {@link Character#MAX_RADIX}.
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code int}, or
       *     if supplied radix is invalid.
       * @throws NullPointerException if {@code s} is null (in contrast to {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        }
      }
    
      @GwtIncompatible // too slow
      public void testToStringRadix() {
        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          for (long l : TEST_LONGS) {
            UnsignedLong value = UnsignedLong.fromLongBits(l);
            assertThat(value.toString(radix)).isEqualTo(value.bigIntegerValue().toString(radix));
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedInteger.java

        return toString(10);
      }
    
      /**
       * Returns a string representation of the {@code UnsignedInteger} value, in base {@code radix}. If
       * {@code radix < Character.MIN_RADIX} or {@code radix > Character.MAX_RADIX}, the radix {@code
       * 10} is used.
       */
      public String toString(int radix) {
        return UnsignedInts.toString(value, radix);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top