Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 485 for Text (0.12 sec)

  1. android/guava/src/com/google/common/base/Ascii.java

       * }</pre>
       *
       * <p><b>Note:</b> This method <i>may</i> work with certain non-ASCII text but is not safe for use
       * with arbitrary Unicode text. It is mostly intended for use with text that is known to be safe
       * for use with it (such as all-ASCII text) and for simple debugging text. When using this method,
       * consider the following:
       *
       * <ul>
       *   <li>it may split surrogate pairs
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      int length;
      // Number of matching strings
      @Param({"xxxx", "xxXx", "xXxX", "XXXX"})
      String text;
    
      private String input;
    
      private static final Splitter CHAR_SPLITTER = Splitter.on('X');
      private static final Splitter STRING_SPLITTER = Splitter.on("X");
    
      @BeforeExperiment
      void setUp() {
        input = Strings.repeat(text, length);
      }
    
      @Benchmark
      void charSplitter(int reps) {
        int total = 0;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      int length;
      // Number of matching strings
      @Param({"xxxx", "xxXx", "xXxX", "XXXX"})
      String text;
    
      private String input;
    
      private static final Splitter CHAR_SPLITTER = Splitter.on('X');
      private static final Splitter STRING_SPLITTER = Splitter.on("X");
    
      @BeforeExperiment
      void setUp() {
        input = Strings.repeat(text, length);
      }
    
      @Benchmark
      void charSplitter(int reps) {
        int total = 0;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

              return 0x800;
            } else if (userFriendly.matches("(?i)(?:Chinese|Han|Asian|BMP)")) {
              // 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;
    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)
  5. guava-tests/test/com/google/common/io/CharStreamsTest.java

     *
     * @author Chris Nokleberg
     */
    public class CharStreamsTest extends IoTestCase {
    
      private static final String TEXT = "The quick brown fox jumped over the lazy dog.";
    
      public void testToString() throws IOException {
        assertEquals(TEXT, CharStreams.toString(new StringReader(TEXT)));
      }
    
      public void testReadLines() throws IOException {
        List<String> lines = CharStreams.readLines(new StringReader("a\nb\nc"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

     *
     * @author Chris Nokleberg
     */
    public class CharStreamsTest extends IoTestCase {
    
      private static final String TEXT = "The quick brown fox jumped over the lazy dog.";
    
      public void testToString() throws IOException {
        assertEquals(TEXT, CharStreams.toString(new StringReader(TEXT)));
      }
    
      public void testReadLines() throws IOException {
        List<String> lines = CharStreams.readLines(new StringReader("a\nb\nc"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/html/HtmlEscapers.java

    import com.google.common.escape.Escaper;
    import com.google.common.escape.Escapers;
    
    /**
     * {@code Escaper} instances suitable for strings to be included in HTML attribute values and
     * most elements' text contents. When possible, avoid manual escaping by using templating
     * systems and high-level APIs that provide autoescaping.
     * One Google-authored templating system available for external use is <a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 14 22:08:54 GMT 2021
    - 3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/CharSource.java

            @Override
            @CheckForNull
            protected String computeNext() {
              if (lines.hasNext()) {
                String next = lines.next();
                // skip last line if it's empty
                if (lines.hasNext() || !next.isEmpty()) {
                  return next;
                }
              }
              return endOfData();
            }
          };
        }
    
        @Override
        @CheckForNull
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/escape/Escaper.java

    import com.google.common.base.Function;
    import com.google.errorprone.annotations.DoNotMock;
    
    /**
     * An object that converts literal text into a format safe for inclusion in a particular context
     * (such as an XML document). Typically (but not always), the inverse process of "unescaping" the
     * text is performed automatically by the relevant parser.
     *
     * <p>For example, an XML escaper would convert the literal string {@code "Foo<Bar>"} into {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 16:02:17 GMT 2021
    - 4.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/MultiReaderTest.java

        assertEquals(expectedString, CharStreams.toString(joinedReader));
      }
    
      private static CharSource newCharSource(final String text) {
        return new CharSource() {
          @Override
          public Reader openStream() {
            return new StringReader(text);
          }
        };
      }
    
      public void testSkip() throws Exception {
        String begin = "abcde";
        String end = "fghij";
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.7K bytes
    - Viewed (0)
Back to top