Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CharEscaperBuilder (0.06 sec)

  1. guava-tests/test/com/google/common/escape/CharEscaperBuilderTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    @NullUnmarked
    public class CharEscaperBuilderTest extends TestCase {
    
      public void testAddEscapes() {
        char[] cs = {'a', 'b', 'c'};
        CharEscaperBuilder builder = new CharEscaperBuilder().addEscapes(cs, "Z");
        Escaper escaper = builder.toEscaper();
        assertThat(escaper.escape("abcdef")).isEqualTo("ZZZdef");
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 18 15:41:04 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/escape/CharEscaperBuilderTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    @NullUnmarked
    public class CharEscaperBuilderTest extends TestCase {
    
      public void testAddEscapes() {
        char[] cs = {'a', 'b', 'c'};
        CharEscaperBuilder builder = new CharEscaperBuilder().addEscapes(cs, "Z");
        Escaper escaper = builder.toEscaper();
        assertThat(escaper.escape("abcdef")).isEqualTo("ZZZdef");
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Feb 18 15:41:04 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/escape/CharEscaper.java

       * called by the {@link #escape(String)} method when it discovers that escaping is required. It is
       * protected to allow subclasses to override the fastpath escaping function to inline their
       * escaping test. See {@link CharEscaperBuilder} for an example usage.
       *
       * @param s the literal string to be escaped
       * @param index the index to start escaping from
       * @return the escaped form of {@code string}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/escape/Escaper.java

     *
     * <p>Popular escapers are defined as constants in classes like {@link
     * com.google.common.html.HtmlEscapers} and {@link com.google.common.xml.XmlEscapers}. To create
     * your own escapers, use {@link CharEscaperBuilder}, or extend {@code CharEscaper} or {@code
     * UnicodeEscaper}.
     *
     * @author David Beaumont
     * @since 15.0
     */
    @DoNotMock("Use Escapers.nullEscaper() or another methods from the *Escapers classes")
    @GwtCompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/escape/CharEscaper.java

       * called by the {@link #escape(String)} method when it discovers that escaping is required. It is
       * protected to allow subclasses to override the fastpath escaping function to inline their
       * escaping test. See {@link CharEscaperBuilder} for an example usage.
       *
       * @param s the literal string to be escaped
       * @param index the index to start escaping from
       * @return the escaped form of {@code string}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top