- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 173 for escaper (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/escape/CharEscaperBuilder.java
} return result; } /** * Convert this builder into a char escaper which is just a decorator around the underlying array * of replacement char[]s. * * @return an escaper that escapes based on the underlying array. */ public Escaper toEscaper() { return new CharArrayDecorator(toArray()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 3.9K bytes - Click Count (0) -
android/guava/src/com/google/common/net/PercentEscaper.java
* UTF-8. * * <p><b>Note:</b> This escaper produces <a * href="https://url.spec.whatwg.org/#percent-encode">uppercase</a> hexadecimal sequences. * * @author David Beaumont * @since 15.0 */ @GwtCompatible public final class PercentEscaper extends UnicodeEscaper { // In some escapers spaces are escaped to '+' private static final char[] plusSign = {'+'};
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 28 01:26:26 GMT 2024 - 8.6K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/UnicodeEscaper.java
s.getChars(unescapedChunkStart, index, dest, destIndex); destIndex += charsSkipped; } if (escaped.length > 0) { System.arraycopy(escaped, 0, dest, destIndex, escaped.length); destIndex += escaped.length; } // If we dealt with an escaped character, reset the unescaped range. unescapedChunkStart = nextIndex; }
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) -
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 Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 18 15:41:04 GMT 2025 - 5.2K bytes - Click Count (0) -
logger/sql_test.go
type ExampleStruct struct { Name string Val string } func (s ExampleStruct) Value() (driver.Value, error) { return json.Marshal(s) } func format(v []byte, escaper string) string { return escaper + strings.ReplaceAll(string(v), escaper, escaper+escaper) + escaper } func TestExplainSQL(t *testing.T) { type role string type password []byte type intType int type floatType float64 var (Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Thu Mar 21 08:00:02 GMT 2024 - 8.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/UrlEscapersTest.java
UnicodeEscaper e = (UnicodeEscaper) urlFormParameterEscaper(); // Verify that these are the same escaper (as documented) assertThat(urlFormParameterEscaper()).isSameInstanceAs(e); assertBasicUrlEscaper(e); /* * Specified as safe by RFC 2396 but not by java.net.URLEncoder. These tests will start failing * when the escaper is made compliant with RFC 2396, but that's a good thing (just change them * to assertUnescaped).
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 2.8K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/CharEscaper.java
public abstract class CharEscaper extends Escaper { /** Constructor for use by subclasses. */ protected CharEscaper() {} /** * Returns the escaped form of a given literal string. * * @param string the literal string to be escaped * @return the escaped form of {@code string} * @throws NullPointerException if {@code string} is null */ @Override public String escape(String string) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 15:45:16 GMT 2025 - 6.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/UrlEscaperTesting.java
assertThat(e.escape("")).isEqualTo(""); assertThat(e.escape("safestring")).isEqualTo("safestring"); assertThat(e.escape("embedded\0null")).isEqualTo("embedded%00null"); assertThat(e.escape("max\uffffchar")).isEqualTo("max%EF%BF%BFchar"); } // Helper to assert common expected behaviour of uri escapers. static void assertBasicUrlEscaper(UnicodeEscaper e) {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) -
android/guava-tests/test/com/google/common/net/PercentEscaperTest.java
assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF'); // simple string tests assertThat(e.escape("")).isEqualTo(""); assertThat(e.escape("safestring")).isEqualTo("safestring"); assertThat(e.escape("embedded\0null")).isEqualTo("embedded%00null"); assertThat(e.escape("max\uffffchar")).isEqualTo("max%EF%BF%BFchar"); } /** Tests the various ways that the space character can be handled */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 5.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/PercentEscaperTest.java
assertUnicodeEscaping(e, "%F4%8F%BF%BF", '\uDBFF', '\uDFFF'); // simple string tests assertThat(e.escape("")).isEqualTo(""); assertThat(e.escape("safestring")).isEqualTo("safestring"); assertThat(e.escape("embedded\0null")).isEqualTo("embedded%00null"); assertThat(e.escape("max\uffffchar")).isEqualTo("max%EF%BF%BFchar"); } /** Tests the various ways that the space character can be handled */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 5.4K bytes - Click Count (0)