Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for Point (0.15 sec)

  1. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

      private final char[][] replacements;
      // The number of elements in the replacement array.
      private final int replacementsLength;
      // The first code point in the safe range.
      private final int safeMin;
      // The last code point in the safe range.
      private final int safeMax;
    
      // Cropped values used in the fast path range checks.
      private final char safeMinChar;
      private final char safeMaxChar;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/Utf8Test.java

        utf8Lengths.put(0x7f, 1);
        utf8Lengths.put(0x80, 2);
        utf8Lengths.put(0x7ff, 2);
        utf8Lengths.put(0x800, 3);
        utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT - 1, 3);
        utf8Lengths.put(MIN_SUPPLEMENTARY_CODE_POINT, 4);
        utf8Lengths.put(MAX_CODE_POINT, 4);
    
        Integer[] codePoints = utf8Lengths.keySet().toArray(new Integer[] {});
        StringBuilder sb = new StringBuilder();
        Random rnd = new Random();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  3. guava-gwt/test/com/google/common/GuavaTestsEntryPoint.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common;
    
    import com.google.gwt.core.client.EntryPoint;
    
    /**
     * A dummy entry point for our tests.
     *
     * @author Chris Povirk
     */
    public class GuavaTestsEntryPoint implements EntryPoint {
      @Override public void onModuleLoad() {
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 15 16:01:39 GMT 2013
    - 855 bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/UnicodeEscaper.java

      protected UnicodeEscaper() {}
    
      /**
       * Returns the escaped form of the given Unicode code point, or {@code null} if this code point
       * does not need to be escaped. When called as part of an escaping operation, the given code point
       * is guaranteed to be in the range {@code 0 <= cp <= Character#MAX_CODE_POINT}.
       *
       * <p>If an empty array is returned, this effectively strips the input character from the
       * resulting text.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 13.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

        UnicodeEscaper e = SIMPLE_ESCAPER;
        String expected =
            "[0]abyz[128][256][2048][4096]ABYZ[65535]"
                + "["
                + Character.MIN_SUPPLEMENTARY_CODE_POINT
                + "]"
                + "0189["
                + Character.MAX_CODE_POINT
                + "]";
        assertEquals(expected, escapeAsString(e, TEST_STRING));
      }
    
      public void testGrowBuffer() { // need to grow past an initial 1024 byte buffer
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Ticker.java

     */
    
    package com.google.common.base;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * A time source; returns a time value representing the number of nanoseconds elapsed since some
     * fixed but arbitrary point in time. Note that most users should use {@link Stopwatch} instead of
     * interacting with this class directly.
     *
     * <p><b>Warning:</b> this interface can only be used to measure elapsed time, not wall time.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue May 23 23:27:53 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

              // Mostly 3-byte UTF-8 sequences - "Asian" text
              return Character.MIN_SUPPLEMENTARY_CODE_POINT;
            } else if (userFriendly.matches("(?i)(?:Cuneiform|rare|exotic|supplementary.*)")) {
              // Mostly 4-byte UTF-8 sequences - "rare exotic" text
              return Character.MAX_CODE_POINT;
            } else {
              throw new IllegalArgumentException("Can't decode codepoint " + userFriendly);
            }
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

              }
            };
        EscaperAsserts.assertBasic(surrogateEscaper);
    
        // A surrogate pair defining a code point within the safe range.
        String safeInput = "\uD800\uDC00"; // 0x10000
        assertEquals(safeInput, surrogateEscaper.escape(safeInput));
    
        // A surrogate pair defining a code point outside the safe range (but both
        // of the surrogate characters lie within the safe range). It is important
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java

        Assert.assertEquals(expected, escaped);
      }
    
      /**
       * Asserts that a Unicode escaper escapes the given code point into the expected string.
       *
       * @param escaper the non-null escaper to test
       * @param expected the expected output string
       * @param cp the Unicode code point to escape
       */
      public static void assertEscaping(UnicodeEscaper escaper, String expected, int cp) {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(input)
            .matches(
                Pattern.compile(
                    Doubles.FLOATING_POINT_PATTERN.pattern(), Doubles.FLOATING_POINT_PATTERN.flags()));
      }
    
      @GwtIncompatible // Doubles.tryParse
      public void testTryParseHex() {
        for (String signChar : ImmutableList.of("", "+", "-")) {
          for (String hexPrefix : ImmutableList.of("0x", "0X")) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 31.5K bytes
    - Viewed (0)
Back to top