HomeSort by relevance Sort by last modified time
    Searched refs:escaper (Results 1 - 25 of 59) sorted by null

1 2 3

  /external/guava/guava-testlib/src/com/google/common/escape/testing/
EscaperAsserts.java 24 import com.google.common.escape.Escaper;
32 * Extra assert methods for testing Escaper implementations.
43 * Asserts that an escaper behaves correctly with respect to null inputs.
45 * @param escaper the non-null escaper to test
48 public static void assertBasic(Escaper escaper) throws IOException {
50 Assert.assertEquals("", escaper.escape(""));
53 escaper.escape((String) null);
61 * Asserts that an escaper escapes the given character into the expecte
    [all...]
  /external/guava/guava-tests/test/com/google/common/escape/
CharEscaperBuilderTest.java 26 Escaper escaper = builder.toEscaper(); local
27 assertEquals("ZZZdef", escaper.escape("abcdef"));
EscapersTest.java 33 Escaper escaper = Escapers.nullEscaper(); local
34 EscaperAsserts.assertBasic(escaper);
36 assertEquals("null escaper should have no effect", s, escaper.escape(s));
41 Escaper escaper = Escapers.builder().setSafeRange('a', 'z').build(); local
42 assertEquals("The Quick Brown Fox", escaper.escape("The Quick Brown Fox"));
47 Escaper escaper = Escapers.builder().setUnsafeReplacement("X").build() local
    [all...]
ArrayBasedUnicodeEscaperTest.java 43 // In reality this is not a very sensible escaper to have (if you are only
45 UnicodeEscaper escaper = new ArrayBasedUnicodeEscaper(SIMPLE_REPLACEMENTS, local
51 EscaperAsserts.assertBasic(escaper);
53 escaper.escape("\tFish & Chips\n"));
57 assertEquals(safeChars, escaper.escape(safeChars));
62 escaper.escape(badUnicode);
  /external/guava/guava/src/com/google/common/escape/
Escapers.java 30 * Static utility methods pertaining to {@link Escaper} instances.
42 * Returns an {@link Escaper} that does no escaping, passing all character
45 public static Escaper nullEscaper() {
49 // An Escaper that efficiently performs no escaping.
50 // Extending CharEscaper (instead of Escaper) makes Escapers.compose() easier.
51 private static final Escaper NULL_ESCAPER = new CharEscaper() {
64 * can be reused and each escaper that is created will be a snapshot of the
84 * <p>Typically an escaper needs to deal with the escaping of high valued
105 * Sets the safe range of characters for the escaper. Characters in this
153 * Returns a new escaper based on the current state of the builder
    [all...]
  /external/jsilver/src/com/google/clearsilver/jsilver/functions/
FunctionRegistry.java 60 TextFilter escaper = escapers.get(name); local
61 if (escaper == null) {
62 throw new JSilverInterpreterException("Unknown escaper: " + name);
64 escaper.filter(input, output);
141 * Registers an escaper, that is called when executing a &lt;?cs escape ?&gt; command.
143 * @param name The name with which &lt;?cs escape ?&gt; will invoke this escaper.
144 * @param escaper A TextFilter that implements the escaping functionality.
146 public void registerEscapeMode(String name, TextFilter escaper) {
148 escapers.put(name, escaper);
  /external/snakeyaml/src/main/java/org/yaml/snakeyaml/util/
UriEncoder.java 28 import org.yaml.snakeyaml.external.com.google.gdata.util.common.base.Escaper;
38 private static final Escaper escaper = new PercentEscaper(SAFE_CHARS, false); field in class:UriEncoder
44 return escaper.escape(uri);
  /prebuilts/go/darwin-x86/src/html/template/
url_test.go 51 escaper func(...interface{}) string
83 if s := test.escaper(input); s != test.escaped {
escape.go 75 // escaper collects type inferences about templates and changes needed to make
77 type escaper struct { type
95 // newEscaper creates a blank escaper for the given set.
96 func newEscaper(t *Template) *escaper {
97 return &escaper{
116 func (e *escaper) escape(c context, n parse.Node) context {
137 func (e *escaper) escapeAction(c context, n *parse.ActionNode) context {
415 func (e *escaper) escapeBranch(c context, n *parse.BranchNode, nodeName string) context {
437 func (e *escaper) escapeList(c context, n *parse.ListNode) context {
451 func (e *escaper) escapeListConditionally(c context, n *parse.ListNode, filter func(*escaper, context) bool) (conte (…)
    [all...]
js_test.go 280 escaper func(...interface{}) string
316 if s := test.escaper(input); s != test.escaped {
325 buf.WriteString(test.escaper(string(c)))
content_test.go 25 // For each content sensitive escaper, see how it does on
272 // dependencies on the html escaper and the behavior of fmt w.r.t. nil.
  /prebuilts/go/linux-x86/src/html/template/
url_test.go 51 escaper func(...interface{}) string
83 if s := test.escaper(input); s != test.escaped {
escape.go 75 // escaper collects type inferences about templates and changes needed to make
77 type escaper struct { type
95 // newEscaper creates a blank escaper for the given set.
96 func newEscaper(t *Template) *escaper {
97 return &escaper{
116 func (e *escaper) escape(c context, n parse.Node) context {
137 func (e *escaper) escapeAction(c context, n *parse.ActionNode) context {
415 func (e *escaper) escapeBranch(c context, n *parse.BranchNode, nodeName string) context {
437 func (e *escaper) escapeList(c context, n *parse.ListNode) context {
451 func (e *escaper) escapeListConditionally(c context, n *parse.ListNode, filter func(*escaper, context) bool) (conte (…)
    [all...]
js_test.go 280 escaper func(...interface{}) string
316 if s := test.escaper(input); s != test.escaped {
325 buf.WriteString(test.escaper(string(c)))
content_test.go 25 // For each content sensitive escaper, see how it does on
272 // dependencies on the html escaper and the behavior of fmt w.r.t. nil.
  /external/jsilver/src/com/google/clearsilver/jsilver/
JSilver.java 406 * Registers a global escaper. This also makes it available as a Function named with "_escape"
409 public void registerGlobalEscaper(String name, TextFilter escaper) {
410 globalFunctions.registerFunction(name + "_escape", escaper, true);
411 globalFunctions.registerEscapeMode(name, escaper);
  /build/blueprint/
ninja_strings.go 266 escaper *strings.Replacer) string {
268 str := escaper.Replace(n.strings[0])
271 str += escaper.Replace(n.strings[i+1])
ninja_defs.go 376 escaper *strings.Replacer) []string {
380 result[i] = ninjaStr.ValueWithEscaper(pkgNames, escaper)
  /frameworks/support/samples/SupportLeanbackShowcase/libs/
gson-1.7.2.jar 
  /prebuilts/tools/common/m2/repository/xom/xom/1.0/
xom-1.0.jar 
  /external/guice/lib/build/
guava-testlib-16.0.1.jar 
  /prebuilts/gradle-plugin/com/android/tools/sdk-common/25.2.0-alpha1/
sdk-common-25.2.0-alpha1.jar 
  /prebuilts/gradle-plugin/com/android/tools/sdk-common/25.2.0-alpha3/
sdk-common-25.2.0-alpha3.jar 
  /prebuilts/gradle-plugin/com/android/tools/sdk-common/25.2.0-alpha4/
sdk-common-25.2.0-alpha4.jar 
  /prebuilts/gradle-plugin/com/android/tools/sdk-common/25.2.0-alpha6/
sdk-common-25.2.0-alpha6.jar 

Completed in 600 milliseconds

1 2 3