Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for udigits (0.06 sec)

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

          throw new NumberFormatException();
        }
        int octet = 0;
        for (int i = start; i < end; i++) {
          octet *= 10;
          int digit = Character.digit(ipString.charAt(i), 10);
          if (digit < 0) {
            throw new NumberFormatException();
          }
          octet += digit;
        }
        if (octet > 255) {
          throw new NumberFormatException();
        }
        return (byte) octet;
      }
    
    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. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

                return null;
            }
            return tryParseInt(s);
        }
    
        private static Integer tryParseInt(String s) {
            // for performance, check digits instead of relying later on catching NumberFormatException
            if (!isDigits(s)) {
                return null;
            }
    
            try {
                long longValue = Long.parseLong(s);
                if (longValue > Integer.MAX_VALUE) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/InetAddresses.java

          throw new NumberFormatException();
        }
        int octet = 0;
        for (int i = start; i < end; i++) {
          octet *= 10;
          int digit = Character.digit(ipString.charAt(i), 10);
          if (digit < 0) {
            throw new NumberFormatException();
          }
          octet += digit;
        }
        if (octet > 255) {
          throw new NumberFormatException();
        }
        return (byte) octet;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/CharMatcher.java

        return Digit.INSTANCE;
      }
    
      /**
       * Determines whether a character is a BMP digit according to {@linkplain Character#isDigit(char)
       * Java's definition}. If you only care to match ASCII digits, you can use {@code inRange('0',
       * '9')}.
       *
       * @deprecated Many digits are supplementary characters; see the class documentation.
       * @since 19.0 (since 1.0 as constant {@code JAVA_DIGIT})
       */
      @Deprecated
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Longs.java

          return null;
        }
        int digit = AsciiDigits.digit(string.charAt(index++));
        if (digit < 0 || digit >= radix) {
          return null;
        }
        long accum = -digit;
    
        long cap = Long.MIN_VALUE / radix;
    
        while (index < string.length()) {
          digit = AsciiDigits.digit(string.charAt(index++));
          if (digit < 0 || digit >= radix || accum < cap) {
            return null;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/Longs.java

          return null;
        }
        int digit = AsciiDigits.digit(string.charAt(index++));
        if (digit < 0 || digit >= radix) {
          return null;
        }
        long accum = -digit;
    
        long cap = Long.MIN_VALUE / radix;
    
        while (index < string.length()) {
          digit = AsciiDigits.digit(string.charAt(index++));
          if (digit < 0 || digit >= radix || accum < cap) {
            return null;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
  7. fastapi/param_functions.py

                """
            ),
        ] = _Unset,
        max_digits: Annotated[
            Union[int, None],
            Doc(
                """
                Maximum number of allow digits for strings.
                """
            ),
        ] = _Unset,
        decimal_places: Annotated[
            Union[int, None],
            Doc(
                """
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/response-status-code.md

    ///
    
    ## About HTTP status codes
    
    /// note
    
    If you already know what HTTP status codes are, skip to the next section.
    
    ///
    
    In HTTP, you send a numeric status code of 3 digits as part of the response.
    
    These status codes have a name associated to recognize them, but the important part is the number.
    
    In short:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:13:18 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Ints.java

       *
       * <p>Unlike {@link Integer#parseInt(String)}, this method returns {@code null} instead of
       * throwing an exception if parsing fails. Additionally, this method only accepts ASCII digits,
       * and returns {@code null} if non-ASCII digits are present in the string.
       *
       * <p>Note that strings prefixed with ASCII {@code '+'} are rejected, even though {@link
       * Integer#parseInt(String)} accepts them.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

     * <ul>
     * <li>mixing of '<code>-</code>' (hyphen) and '<code>.</code>' (dot) separators,</li>
     * <li>transition between characters and digits also constitutes a separator:
     *     <code>1.0alpha1 =&gt; [1, [alpha, 1]]</code></li>
     * <li>unlimited number of version components,</li>
     * <li>version components in the text can be digits or strings,</li>
     * <li>strings are checked for well-known qualifiers and the qualifier ordering is used for version ordering.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top