Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for MAX_RADIX (0.59 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-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)
  5. 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)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/primitives/Longs.java

       *     Character.MAX_RADIX}
       * @throws NullPointerException if {@code string} is {@code null}
       * @since 19.0
       */
      @CheckForNull
      public static Long tryParse(String string, int radix) {
        if (checkNotNull(string).isEmpty()) {
          return null;
        }
        if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) {
          throw new IllegalArgumentException(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/Longs.java

       *     Character.MAX_RADIX}
       * @throws NullPointerException if {@code string} is {@code null}
       * @since 19.0
       */
      @CheckForNull
      public static Long tryParse(String string, int radix) {
        if (checkNotNull(string).isEmpty()) {
          return null;
        }
        if (radix < Character.MIN_RADIX || radix > Character.MAX_RADIX) {
          throw new IllegalArgumentException(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.tryParse(value)).isEqualTo(expected);
      }
    
      public void testTryParse_radix() {
        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          radixEncodeParseAndAssertEquals(0, radix);
          radixEncodeParseAndAssertEquals(8000, radix);
          radixEncodeParseAndAssertEquals(-8000, radix);
          radixEncodeParseAndAssertEquals(GREATEST, radix);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
Back to top