Home
last modified time | relevance | path

Searched refs:escaper (Results 1 – 19 of 19) sorted by relevance

/external/guava/android/guava-testlib/src/com/google/common/escape/testing/
DEscaperAsserts.java45 public static void assertBasic(Escaper escaper) throws IOException { in assertBasic() argument
47 Assert.assertEquals("", escaper.escape("")); in assertBasic()
50 escaper.escape((String) null); in assertBasic()
64 public static void assertEscaping(CharEscaper escaper, String expected, char c) { in assertEscaping() argument
66 String escaped = computeReplacement(escaper, c); in assertEscaping()
78 public static void assertEscaping(UnicodeEscaper escaper, String expected, int cp) { in assertEscaping() argument
80 String escaped = computeReplacement(escaper, cp); in assertEscaping()
91 public static void assertUnescaped(CharEscaper escaper, char c) { in assertUnescaped() argument
92 Assert.assertNull(computeReplacement(escaper, c)); in assertUnescaped()
101 public static void assertUnescaped(UnicodeEscaper escaper, int cp) { in assertUnescaped() argument
[all …]
/external/guava/guava-testlib/src/com/google/common/escape/testing/
DEscaperAsserts.java45 public static void assertBasic(Escaper escaper) throws IOException { in assertBasic() argument
47 Assert.assertEquals("", escaper.escape("")); in assertBasic()
50 escaper.escape((String) null); in assertBasic()
64 public static void assertEscaping(CharEscaper escaper, String expected, char c) { in assertEscaping() argument
66 String escaped = computeReplacement(escaper, c); in assertEscaping()
78 public static void assertEscaping(UnicodeEscaper escaper, String expected, int cp) { in assertEscaping() argument
80 String escaped = computeReplacement(escaper, cp); in assertEscaping()
91 public static void assertUnescaped(CharEscaper escaper, char c) { in assertUnescaped() argument
92 Assert.assertNull(computeReplacement(escaper, c)); in assertUnescaped()
101 public static void assertUnescaped(UnicodeEscaper escaper, int cp) { in assertUnescaped() argument
[all …]
/external/guava/guava/src/com/google/common/escape/
DEscapers.java179 static UnicodeEscaper asUnicodeEscaper(Escaper escaper) { in asUnicodeEscaper() argument
180 checkNotNull(escaper); in asUnicodeEscaper()
181 if (escaper instanceof UnicodeEscaper) { in asUnicodeEscaper()
182 return (UnicodeEscaper) escaper; in asUnicodeEscaper()
183 } else if (escaper instanceof CharEscaper) { in asUnicodeEscaper()
184 return wrap((CharEscaper) escaper); in asUnicodeEscaper()
189 "Cannot create a UnicodeEscaper from: " + escaper.getClass().getName()); in asUnicodeEscaper()
201 public static String computeReplacement(CharEscaper escaper, char c) { in computeReplacement() argument
202 return stringOrNull(escaper.escape(c)); in computeReplacement()
214 public static String computeReplacement(UnicodeEscaper escaper, int cp) { in computeReplacement() argument
[all …]
/external/guava/android/guava/src/com/google/common/escape/
DEscapers.java179 static UnicodeEscaper asUnicodeEscaper(Escaper escaper) { in asUnicodeEscaper() argument
180 checkNotNull(escaper); in asUnicodeEscaper()
181 if (escaper instanceof UnicodeEscaper) { in asUnicodeEscaper()
182 return (UnicodeEscaper) escaper; in asUnicodeEscaper()
183 } else if (escaper instanceof CharEscaper) { in asUnicodeEscaper()
184 return wrap((CharEscaper) escaper); in asUnicodeEscaper()
189 "Cannot create a UnicodeEscaper from: " + escaper.getClass().getName()); in asUnicodeEscaper()
201 public static String computeReplacement(CharEscaper escaper, char c) { in computeReplacement() argument
202 return stringOrNull(escaper.escape(c)); in computeReplacement()
214 public static String computeReplacement(UnicodeEscaper escaper, int cp) { in computeReplacement() argument
[all …]
/external/guava/guava-tests/test/com/google/common/escape/
DEscapersTest.java29 Escaper escaper = Escapers.nullEscaper(); in testNullEscaper() local
30 EscaperAsserts.assertBasic(escaper); in testNullEscaper()
32 assertEquals("null escaper should have no effect", s, escaper.escape(s)); in testNullEscaper()
37 Escaper escaper = Escapers.builder().setSafeRange('a', 'z').build(); in testBuilderInitialStateNoReplacement() local
38 assertEquals("The Quick Brown Fox", escaper.escape("The Quick Brown Fox")); in testBuilderInitialStateNoReplacement()
43 Escaper escaper = Escapers.builder().setUnsafeReplacement("X").build(); in testBuilderInitialStateNoneUnsafe() local
44 assertEquals("\0\uFFFF", escaper.escape("\0\uFFFF")); in testBuilderInitialStateNoneUnsafe()
DArrayBasedUnicodeEscaperTest.java39 UnicodeEscaper escaper = in testReplacements() local
47 EscaperAsserts.assertBasic(escaper); in testReplacements()
48 assertEquals("<tab>Fish <and> Chips<newline>", escaper.escape("\tFish & Chips\n")); in testReplacements()
52 assertEquals(safeChars, escaper.escape(safeChars)); in testReplacements()
57 escaper.escape(badUnicode); in testReplacements()
DCharEscaperBuilderTest.java26 Escaper escaper = builder.toEscaper(); in testAddEscapes() local
27 assertEquals("ZZZdef", escaper.escape("abcdef")); in testAddEscapes()
/external/guava/android/guava-tests/test/com/google/common/escape/
DEscapersTest.java29 Escaper escaper = Escapers.nullEscaper(); in testNullEscaper() local
30 EscaperAsserts.assertBasic(escaper); in testNullEscaper()
32 assertEquals("null escaper should have no effect", s, escaper.escape(s)); in testNullEscaper()
37 Escaper escaper = Escapers.builder().setSafeRange('a', 'z').build(); in testBuilderInitialStateNoReplacement() local
38 assertEquals("The Quick Brown Fox", escaper.escape("The Quick Brown Fox")); in testBuilderInitialStateNoReplacement()
43 Escaper escaper = Escapers.builder().setUnsafeReplacement("X").build(); in testBuilderInitialStateNoneUnsafe() local
44 assertEquals("\0\uFFFF", escaper.escape("\0\uFFFF")); in testBuilderInitialStateNoneUnsafe()
DArrayBasedUnicodeEscaperTest.java39 UnicodeEscaper escaper = in testReplacements() local
47 EscaperAsserts.assertBasic(escaper); in testReplacements()
48 assertEquals("<tab>Fish <and> Chips<newline>", escaper.escape("\tFish & Chips\n")); in testReplacements()
52 assertEquals(safeChars, escaper.escape(safeChars)); in testReplacements()
57 escaper.escape(badUnicode); in testReplacements()
DCharEscaperBuilderTest.java26 Escaper escaper = builder.toEscaper(); in testAddEscapes() local
27 assertEquals("ZZZdef", escaper.escape("abcdef")); in testAddEscapes()
/external/jsilver/src/com/google/clearsilver/jsilver/functions/
DFunctionRegistry.java60 TextFilter escaper = escapers.get(name); in escape() local
61 if (escaper == null) { in escape()
64 escaper.filter(input, output); in escape()
146 public void registerEscapeMode(String name, TextFilter escaper) { in registerEscapeMode() argument
148 escapers.put(name, escaper); in registerEscapeMode()
/external/desugar/java/com/google/devtools/common/options/
DOptionsUsage.java196 Escaper escaper, in getUsageHtml() argument
208 usage.append("=").append(escaper.escape(valueDescription)); in getUsageHtml()
211 usage.append("=&lt;").append(escaper.escape(typeDescription)).append("&gt"); in getUsageHtml()
228 usage.append(" default: \"").append(escaper.escape(defaultValueString)).append("\""); in getUsageHtml()
236 escaper.escape(optionDefinition.getHelpText()), /*indent=*/ 0, /*width=*/ 80)); in getUsageHtml()
258 .append(escaper.escape(exp)) in getUsageHtml()
DOptionsParser.java415 Map<String, String> categoryDescriptions, Escaper escaper) { in describeOptionsHtmlWithDeprecatedCategories() argument
438 desc.append(escaper.escape(description)).append(":\n"); in describeOptionsHtmlWithDeprecatedCategories()
445 OptionsUsage.getUsageHtml(optionDefinition, desc, escaper, impl.getOptionsData(), false); in describeOptionsHtmlWithDeprecatedCategories()
458 public String describeOptionsHtml(Escaper escaper, String productName) { in describeOptionsHtml() argument
473 desc.append(escaper.escape(categoryDescription)).append(":\n"); in describeOptionsHtml()
477 OptionsUsage.getUsageHtml(optionDef, desc, escaper, impl.getOptionsData(), true); in describeOptionsHtml()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/util/
DUriEncoder.java38 private static final Escaper escaper = new PercentEscaper(SAFE_CHARS, false); field in UriEncoder
44 return escaper.escape(uri); in encode()
/external/cldr/tools/java/org/unicode/cldr/util/
DCldrUtility.java726 public static String toRegex(UnicodeSet source, Transliterator escaper, boolean onlyBmp) { in toRegex() argument
727 if (escaper == null) { in toRegex()
728 escaper = DEFAULT_REGEX_ESCAPER; in toRegex()
737 return escaper.transliterate(it.getString()); in toRegex()
747 alternates.append('|').append(escaper.transliterate(it.string)); in toRegex()
749 addBmpRange(it.codepoint, it.codepointEnd, escaper, base); in toRegex()
752 addBmpRange(it.codepoint, 0xFFFF, escaper, base); in toRegex()
765 addSupplementalRange(leadX, leadX, trailX, trailY, escaper, lastToFirst); in toRegex()
767 addSupplementalRange(leadX, leadX, trailX, 0xDFFF, escaper, lastToFirst); in toRegex()
769 … addSupplementalRange(leadX + 1, leadY - 1, 0xDC00, 0xDFFF, escaper, lastToFirst); in toRegex()
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/
DJSilver.java409 public void registerGlobalEscaper(String name, TextFilter escaper) { in registerGlobalEscaper() argument
410 globalFunctions.registerFunction(name + "_escape", escaper, true); in registerGlobalEscaper()
411 globalFunctions.registerEscapeMode(name, escaper); in registerGlobalEscaper()
/external/pigweed/
Dyarn.lock1958 html-escaper@^2.0.0:
1960 …resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe2…
2310 html-escaper "^2.0.0"
/external/kotlinx.coroutines/benchmarks/src/jmh/resources/
Dospd.txt.gz
/external/cldr/tools/java/org/unicode/cldr/util/data/transforms/
Dinternal_raw_IPA-old.txt65145 escaper %11545