- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 156 for escaper (0.05 seconds)
-
guava/src/com/google/common/net/UrlEscapers.java
/** * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a * href="https://url.spec.whatwg.org/#syntax-url-path-segment">URL path segments</a>. The returned * escaper escapes all non-ASCII characters, even though <a * href="https://url.spec.whatwg.org/#url-code-points">many of these are accepted in modern * URLs</a>. (<a href="https://url.spec.whatwg.org/#path-state">If the escaper were to leave theseCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 7.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
* @param cp the Unicode code point to escape */ public static void assertEscaping(UnicodeEscaper escaper, String expected, int cp) { String escaped = computeReplacement(escaper, cp); Assert.assertNotNull(escaped); Assert.assertEquals(expected, escaped); } /** * Asserts that an escaper does not escape the given character. * * @param escaper the non-null escaper to test
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 3.8K bytes - Click Count (0) -
guava-testlib/src/com/google/common/escape/testing/EscaperAsserts.java
* @param cp the Unicode code point to escape */ public static void assertEscaping(UnicodeEscaper escaper, String expected, int cp) { String escaped = computeReplacement(escaper, cp); Assert.assertNotNull(escaped); Assert.assertEquals(expected, escaped); } /** * Asserts that an escaper does not escape the given character. * * @param escaper the non-null escaper to test
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jan 18 20:55:09 GMT 2022 - 3.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java
} }; EscaperAsserts.assertBasic(escaper); assertThat(escaper.escape("\tFish & Chips\n")).isEqualTo("<tab>Fish <and> Chips<newline>"); // Verify that everything else is left unescaped. String safeChars = "\0\u0100\uD800\uDC00\uFFFF"; assertThat(escaper.escape(safeChars)).isEqualTo(safeChars); // Ensure that Unicode escapers behave correctly wrt badly formed input.Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Feb 18 15:41:04 GMT 2025 - 5.2K bytes - Click Count (0) -
android/guava/src/com/google/common/xml/XmlEscapers.java
public static Escaper xmlAttributeEscaper() { return XML_ATTRIBUTE_ESCAPER; } private static final Escaper XML_CONTENT_ESCAPER; private static final Escaper XML_ATTRIBUTE_ESCAPER; static { Escapers.Builder builder = Escapers.builder(); // The char values \uFFFE and \uFFFF are explicitly not allowed in XML
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 11 17:06:34 GMT 2025 - 6.4K bytes - Click Count (0) -
android/guava/src/com/google/common/net/UrlEscapers.java
/** * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a * href="https://url.spec.whatwg.org/#syntax-url-path-segment">URL path segments</a>. The returned * escaper escapes all non-ASCII characters, even though <a * href="https://url.spec.whatwg.org/#url-code-points">many of these are accepted in modern * URLs</a>. (<a href="https://url.spec.whatwg.org/#path-state">If the escaper were to leave theseCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 7.1K bytes - Click Count (0) -
guava/src/com/google/common/html/HtmlEscapers.java
* the License. */ package com.google.common.html; import com.google.common.annotations.GwtCompatible; 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 templatingCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 3K bytes - Click Count (0) -
logger/sql.go
case reflect.String: vars[idx] = escaper + strings.ReplaceAll(fmt.Sprintf("%v", v), escaper, escaper+escaper) + escaper default: if v != nil && reflectValue.IsValid() && ((reflectValue.Kind() == reflect.Ptr && !reflectValue.IsNil()) || reflectValue.Kind() != reflect.Ptr) { vars[idx] = escaper + strings.ReplaceAll(fmt.Sprintf("%v", v), escaper, escaper+escaper) + escaper } else { vars[idx] = nullStr } }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Mar 21 08:00:02 GMT 2024 - 5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/escape/EscapersTest.java
Escaper escaper = Escapers.builder().setSafeRange('a', 'z').build(); assertThat(escaper.escape("The Quick Brown Fox")).isEqualTo("The Quick Brown Fox"); } public void testBuilderInitialStateNoneUnsafe() { // No characters are unsafe by default (safeMin == 0, safeMax == 0xFFFF). Escaper escaper = Escapers.builder().setUnsafeReplacement("X").build(); assertThat(escaper.escape("\0\uFFFF")).isEqualTo("\0\uFFFF");
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.1K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/ArrayBasedEscaperMap.java
* As such sharing this data structure between escaper instances is the primary goal of this class. * * @author David Beaumont * @since 15.0 */ @GwtCompatible public final class ArrayBasedEscaperMap { /** * Returns a new ArrayBasedEscaperMap for creating ArrayBasedCharEscaper or * ArrayBasedUnicodeEscaper instances. * * @param replacements a map of characters to their escaped representations */Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 3.2K bytes - Click Count (0)