Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tryParseDecimal (0.09 sec)

  1. guava/src/com/google/common/net/InetAddresses.java

          octet += digit;
        }
        if (octet > 255) {
          throw new NumberFormatException();
        }
        return (byte) octet;
      }
    
      /** Returns a -1 if unable to parse */
      private static int tryParseDecimal(String string, int start, int end) {
        int decimal = 0;
        final int max = Integer.MAX_VALUE / 10; // for int overflow detection
        for (int i = start; i < end; i++) {
          if (decimal > max) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/InetAddresses.java

          octet += digit;
        }
        if (octet > 255) {
          throw new NumberFormatException();
        }
        return (byte) octet;
      }
    
      /** Returns a -1 if unable to parse */
      private static int tryParseDecimal(String string, int start, int end) {
        int decimal = 0;
        final int max = Integer.MAX_VALUE / 10; // for int overflow detection
        for (int i = start; i < end; i++) {
          if (decimal > max) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top