Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for parser (0.14 sec)

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

       *     length of zero or cannot be parsed as a long value
       * @throws NullPointerException if {@code string} is {@code null}
       * @since 14.0
       */
      @CheckForNull
      public static Long tryParse(String string) {
        return tryParse(string, 10);
      }
    
      /**
       * Parses the specified string as a signed long value using the specified radix. The ASCII
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/MediaTypeTest.java

                MediaType.parse("text/plain; charset=UTF-8"),
                MediaType.parse("text/plain ; charset=utf-8"),
                MediaType.parse("text/plain; charset =UTF-8"),
                MediaType.parse("text/plain; charset= UTF-8"),
                MediaType.parse("text/plain; charset  =  UTF-8"),
                MediaType.parse("text/plain; charset=\tUTF-8"))
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/MediaTypeTest.java

                MediaType.parse("text/plain; charset=UTF-8"),
                MediaType.parse("text/plain ; charset=utf-8"),
                MediaType.parse("text/plain; charset =UTF-8"),
                MediaType.parse("text/plain; charset= UTF-8"),
                MediaType.parse("text/plain; charset  =  UTF-8"),
                MediaType.parse("text/plain; charset=\tUTF-8"))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedLongs.java

       *
       * <p><b>Java 8+ users:</b> use {@link Long#parseUnsignedLong(String, int)} instead.
       *
       * @param string the string containing the unsigned {@code long} representation to be parsed.
       * @param radix the radix to use while parsing {@code string}
       * @throws NumberFormatException if the string does not contain a valid unsigned {@code long} with
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/MediaType.java

      }
    
      /**
       * Parses a media type from its string representation.
       *
       * @throws IllegalArgumentException if the input is not parsable
       */
      @CanIgnoreReturnValue // TODO(b/219820829): consider removing
      public static MediaType parse(String input) {
        checkNotNull(input);
        Tokenizer tokenizer = new Tokenizer(input);
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/FloatsTest.java

        checkTryParse(Float.POSITIVE_INFINITY, "Infinity");
        checkTryParse(Float.POSITIVE_INFINITY, "+Infinity");
        checkTryParse(Float.NEGATIVE_INFINITY, "-Infinity");
      }
    
      private static final String[] BAD_TRY_PARSE_INPUTS = {
        "",
        "+-",
        "+-0",
        " 5",
        "32 ",
        " 55 ",
        "infinity",
        "POSITIVE_INFINITY",
        "0x9A",
        "0x9A.bE-5",
        ".",
        ".e5",
        "NaNd",
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Shorts.java

       * NumberFormatException} if the input string is invalid.
       *
       * <p><b>Warning:</b> please see {@link Short#decode} to understand exactly how strings are
       * parsed. For example, the string {@code "0123"} is treated as <i>octal</i> and converted to the
       * value {@code 83}.
       *
       * @since 16.0
       */
      public static Converter<String, Short> stringConverter() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertWithMessage("Mixed hex case").that((int) Ints.tryParse("ffFF", 16)).isEqualTo(65535);
      }
    
      /**
       * Encodes an integer as a string with given radix, then uses {@link Ints#tryParse(String, int)}
       * to parse the result. Asserts the result is the same as what we started with.
       */
      private static void radixEncodeParseAndAssertEquals(Integer value, int radix) {
        assertWithMessage("Radix: " + radix)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
Back to top