Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 24 for escaping (0.06 seconds)

  1. android/guava/src/com/google/common/escape/UnicodeEscaper.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.
       *
       * <p>This method is not reentrant and may only be invoked by the top level {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 24 04:06:11 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/crawler/rule/CrawlerRuleMimeTypePatternTest.java

            // In regex, + means "one or more" of the previous character
            String wrongPattern = "(application/xhtml+xml|application/rdf+xml)";
            Pattern pattern = Pattern.compile(wrongPattern);
    
            // Without escaping, "application/xhtml+xml" does NOT match
            // because the pattern expects "one or more 'l'" followed by "xml"
            assertFalse(pattern.matcher("application/xhtml+xml").matches());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        assertEscaping(xmlEscaper, "\uFFFD", '\uFFFF');
    
        assertWithMessage("0xFFFE is forbidden and should be replaced during escaping")
            .that(xmlEscaper.escape("[\ufffe]"))
            .isEqualTo("[\uFFFD]");
        assertWithMessage("0xFFFF is forbidden and should be replaced during escaping")
            .that(xmlEscaper.escape("[\uffff]"))
            .isEqualTo("[\uFFFD]");
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/util/QueryStringBuilderTest.java

            assertEquals("hello world", getQuery("hello world", new String[0], Collections.emptyMap(), Collections.emptyMap(), false));
        }
    
        @Test
        public void test_escapeQuery() {
            // Test escaping functionality through escape parameter
            assertEquals("test", getQuery("test", new String[0], Collections.emptyMap(), Collections.emptyMap(), false));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 16.7K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTesterJvm.kt

        if (uriStripped) {
          if (uri.toString() != component.urlString("")) {
            fail("Encoding $component $codePoint using $encoding")
          }
          return
        }
    
        // If the URI has more escaping than the HttpURL, check that the decoded values still match.
        val uriEscaped = uriEscapedCodePoints.indexOf(codePointString) != -1
        if (uriEscaped) {
          if (uri.toString() == httpUrl.toString()) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        assertEscaping(xmlEscaper, "\uFFFD", '\uFFFF');
    
        assertWithMessage("0xFFFE is forbidden and should be replaced during escaping")
            .that(xmlEscaper.escape("[\ufffe]"))
            .isEqualTo("[\uFFFD]");
        assertWithMessage("0xFFFF is forbidden and should be replaced during escaping")
            .that(xmlEscaper.escape("[\uffff]"))
            .isEqualTo("[\uFFFD]");
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGeneratorTest.java

            generator = new TestThumbnailGenerator();
    
            // The pattern as it would be loaded from XML: "image/svg\+xml"
            // In XML, a single backslash is passed directly (no Java string escaping)
            // So we use a literal backslash here to simulate XML-loaded value
            String xmlLoadedPattern = "image/svg" + "\\" + "+xml"; // Simulates XML value: image/svg\+xml
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Feb 04 14:24:39 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/net/UrlEscaperTesting.java

      static void assertBasicUrlEscaperExceptPercent(UnicodeEscaper e) {
        // URL escapers should throw null pointer exceptions for null input
        try {
          e.escape((String) null);
          fail("Escaping null string should throw exception");
        } catch (NullPointerException x) {
          // pass
        }
    
        // All URL escapers should leave 0-9, A-Z, a-z unescaped
        assertUnescaped(e, 'a');
        assertUnescaped(e, 'z');
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/net/UrlEscaperTesting.java

      static void assertBasicUrlEscaperExceptPercent(UnicodeEscaper e) {
        // URL escapers should throw null pointer exceptions for null input
        try {
          e.escape((String) null);
          fail("Escaping null string should throw exception");
        } catch (NullPointerException x) {
          // pass
        }
    
        // All URL escapers should leave 0-9, A-Z, a-z unescaped
        assertUnescaped(e, 'a');
        assertUnescaped(e, 'z');
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

            request.setStream(true);
    
            streamChatWithConcurrencyControl(request, callback);
        }
    
        // --- Prompt building methods ---
    
        /**
         * Wraps user input with delimiters, escaping any closing tags in the content.
         *
         * @param userMessage the user's message to wrap
         * @return the wrapped user input
         */
        protected String wrapUserInput(final String userMessage) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
Back to Top