Home
last modified time | relevance | path

Searched refs:escape (Results 1 – 25 of 733) sorted by relevance

12345678910>>...30

/external/guava/guava-gwt/test/com/google/common/escape/
DUnicodeEscaperTest_gwt.java16 package com.google.common.escape;
22 …com.google.common.escape.UnicodeEscaperTest testCase = new com.google.common.escape.UnicodeEscaper… in testBadStrings()
27 …com.google.common.escape.UnicodeEscaperTest testCase = new com.google.common.escape.UnicodeEscaper… in testCodePointAt_IndexOutOfBoundsException()
32 …com.google.common.escape.UnicodeEscaperTest testCase = new com.google.common.escape.UnicodeEscaper… in testFalsePositivesForNextEscapedIndex()
37 …com.google.common.escape.UnicodeEscaperTest testCase = new com.google.common.escape.UnicodeEscaper… in testGrowBuffer()
42 …com.google.common.escape.UnicodeEscaperTest testCase = new com.google.common.escape.UnicodeEscaper… in testNopEscaper()
47 …com.google.common.escape.UnicodeEscaperTest testCase = new com.google.common.escape.UnicodeEscaper… in testNullInput()
52 …com.google.common.escape.UnicodeEscaperTest testCase = new com.google.common.escape.UnicodeEscaper… in testSimpleEscaper()
57 …com.google.common.escape.UnicodeEscaperTest testCase = new com.google.common.escape.UnicodeEscaper… in testSurrogatePairs()
62 …com.google.common.escape.UnicodeEscaperTest testCase = new com.google.common.escape.UnicodeEscaper… in testTrailingHighSurrogate()
DEscapersTest_gwt.java16 package com.google.common.escape;
22 com.google.common.escape.EscapersTest testCase = new com.google.common.escape.EscapersTest(); in testAsUnicodeEscaper()
27 com.google.common.escape.EscapersTest testCase = new com.google.common.escape.EscapersTest(); in testBuilderCreatesIndependentEscapers()
32 com.google.common.escape.EscapersTest testCase = new com.google.common.escape.EscapersTest(); in testBuilderInitialStateNoReplacement()
37 com.google.common.escape.EscapersTest testCase = new com.google.common.escape.EscapersTest(); in testBuilderInitialStateNoneUnsafe()
42 com.google.common.escape.EscapersTest testCase = new com.google.common.escape.EscapersTest(); in testBuilderRetainsState()
47 com.google.common.escape.EscapersTest testCase = new com.google.common.escape.EscapersTest(); in testNullEscaper()
DArrayBasedUnicodeEscaperTest_gwt.java16 package com.google.common.escape;
22 …com.google.common.escape.ArrayBasedUnicodeEscaperTest testCase = new com.google.common.escape.Arra… in testCodePointsFromSurrogatePairs()
27 …com.google.common.escape.ArrayBasedUnicodeEscaperTest testCase = new com.google.common.escape.Arra… in testDeleteUnsafeChars()
32 …com.google.common.escape.ArrayBasedUnicodeEscaperTest testCase = new com.google.common.escape.Arra… in testReplacementPriority()
37 …com.google.common.escape.ArrayBasedUnicodeEscaperTest testCase = new com.google.common.escape.Arra… in testReplacements()
42 …com.google.common.escape.ArrayBasedUnicodeEscaperTest testCase = new com.google.common.escape.Arra… in testSafeRange()
DArrayBasedCharEscaperTest_gwt.java16 package com.google.common.escape;
22 …com.google.common.escape.ArrayBasedCharEscaperTest testCase = new com.google.common.escape.ArrayBa… in testDeleteUnsafeChars()
27 …com.google.common.escape.ArrayBasedCharEscaperTest testCase = new com.google.common.escape.ArrayBa… in testReplacementPriority()
32 …com.google.common.escape.ArrayBasedCharEscaperTest testCase = new com.google.common.escape.ArrayBa… in testSafeRange()
37 …com.google.common.escape.ArrayBasedCharEscaperTest testCase = new com.google.common.escape.ArrayBa… in testSafeRange_maxLessThanMin()
DArrayBasedEscaperMapTest_gwt.java16 package com.google.common.escape;
22 …com.google.common.escape.ArrayBasedEscaperMapTest testCase = new com.google.common.escape.ArrayBas… in testEmptyMap()
27 …com.google.common.escape.ArrayBasedEscaperMapTest testCase = new com.google.common.escape.ArrayBas… in testMapLength()
32 …com.google.common.escape.ArrayBasedEscaperMapTest testCase = new com.google.common.escape.ArrayBas… in testMapping()
37 …com.google.common.escape.ArrayBasedEscaperMapTest testCase = new com.google.common.escape.ArrayBas… in testNullMap()
/external/guava/guava-tests/test/com/google/common/xml/
DXmlEscapersTest.java19 import static com.google.common.escape.testing.EscaperAsserts.assertEscaping;
20 import static com.google.common.escape.testing.EscaperAsserts.assertUnescaped;
23 import com.google.common.escape.CharEscaper;
40 assertEquals("\"test\"", xmlContentEscaper.escape("\"test\"")); in testXmlContentEscaper()
41 assertEquals("'test'", xmlContentEscaper.escape("'test'")); in testXmlContentEscaper()
48 assertEquals(""test"", xmlAttributeEscaper.escape("\"test\"")); in testXmlAttributeEscaper()
49 assertEquals("'test'", xmlAttributeEscaper.escape("\'test'")); in testXmlAttributeEscaper()
52 xmlAttributeEscaper.escape("a\"b<c>d&e\"f'")); in testXmlAttributeEscaper()
54 assertEquals("a&#x9;b&#xA;c&#xD;d", xmlAttributeEscaper.escape("a\tb\nc\rd")); in testXmlAttributeEscaper()
61 assertEquals("xxx", xmlEscaper.escape("xxx")); in assertBasicXmlEscaper()
[all …]
/external/guava/guava-tests/test/com/google/common/escape/
DEscapersTest.java17 package com.google.common.escape;
21 import com.google.common.escape.testing.EscaperAsserts;
36 assertEquals("null escaper should have no effect", s, escaper.escape(s)); in testNullEscaper()
42 assertEquals("The Quick Brown Fox", escaper.escape("The Quick Brown Fox")); in testBuilderInitialStateNoReplacement()
48 assertEquals("\0\uFFFF", escaper.escape("\0\uFFFF")); in testBuilderInitialStateNoneUnsafe()
57 builder.build().escape("The Quick Brown Fox!")); in testBuilderRetainsState()
62 builder.build().escape("The Quick Brown Fox!")); in testBuilderRetainsState()
66 builder.build().escape("The Quick Brown Fox!")); in testBuilderRetainsState()
84 assertEquals("Xhe_Xuick_Xrown_XoxX", first.escape("The Quick Brown Fox!")); in testBuilderCreatesIndependentEscapers()
85 assertEquals("Xhe-Xuick-Xrown-Xox$", second.escape("The Quick Brown Fox!")); in testBuilderCreatesIndependentEscapers()
[all …]
DArrayBasedUnicodeEscaperTest.java17 package com.google.common.escape;
21 import com.google.common.escape.testing.EscaperAsserts;
53 escaper.escape("\tFish & Chips\n")); in testReplacements()
57 assertEquals(safeChars, escaper.escape(safeChars)); in testReplacements()
62 escaper.escape(badUnicode); in testReplacements()
79 assertEquals("{[}FOO{@}BAR{]}", wrappingEscaper.escape("[FOO@BAR]")); in testSafeRange()
91 deletingEscaper.escape("\tEverything\0 outside the\uD800\uDC00 " + in testDeleteUnsafeChars()
108 replacingEscaper.escape("\tFish &\0 Chips\r\n")); in testReplacementPriority()
123 assertEquals(safeInput, surrogateEscaper.escape(safeInput)); in testCodePointsFromSurrogatePairs()
129 assertEquals("X", surrogateEscaper.escape(unsafeInput)); in testCodePointsFromSurrogatePairs()
DArrayBasedCharEscaperTest.java17 package com.google.common.escape;
21 import com.google.common.escape.testing.EscaperAsserts;
51 assertEquals("{[}FOO{@}BAR{]}", wrappingEscaper.escape("[FOO@BAR]")); in testSafeRange()
64 assertEquals("{[}{F}{O}{O}{]}", wrappingEscaper.escape("[FOO]")); in testSafeRange_maxLessThanMin()
77 deletingEscaper.escape("\tEverything\0 outside the\uD800\uDC00 " + in testDeleteUnsafeChars()
94 replacingEscaper.escape("\tFish &\0 Chips\r\n")); in testReplacementPriority()
DUnicodeEscaperTest.java17 package com.google.common.escape;
43 protected char[] escape(int c) {
51 protected char[] escape(int cp) {
80 assertEquals(expected.toString(), SIMPLE_ESCAPER.escape(input.toString())); in testGrowBuffer()
130 e.escape((String) null); in testNullInput()
163 protected char[] escape(int cp) { in testFalsePositivesForNextEscapedIndex()
177 e.escape("\0HeLLo \uD800\uDC00 WorlD!\n")); in testFalsePositivesForNextEscapedIndex()
189 return e.escape(s); in escapeAsString()
/external/guava/guava-tests/test/com/google/common/html/
DHtmlEscapersTest.java32 assertEquals("xxx", htmlEscaper().escape("xxx")); in testHtmlEscaper()
33 assertEquals("&quot;test&quot;", htmlEscaper().escape("\"test\"")); in testHtmlEscaper()
34 assertEquals("&#39;test&#39;", htmlEscaper().escape("\'test'")); in testHtmlEscaper()
35 assertEquals("test &amp; test &amp; test", htmlEscaper().escape("test & test & test")); in testHtmlEscaper()
36 assertEquals("test &lt;&lt; 1", htmlEscaper().escape("test << 1")); in testHtmlEscaper()
37 assertEquals("test &gt;&gt; 1", htmlEscaper().escape("test >> 1")); in testHtmlEscaper()
38 assertEquals("&lt;tab&gt;", htmlEscaper().escape("<tab>")); in testHtmlEscaper()
41 assertEquals("foo&amp;bar", htmlEscaper().escape("foo&bar")); in testHtmlEscaper()
46 assertSame(s, htmlEscaper().escape(s)); in testHtmlEscaper()
49 assertEquals("&lt;p&gt;", htmlEscaper().escape("<p>")); in testHtmlEscaper()
[all …]
/external/python/cpython3/Lib/
Dsre_parse.py294 def _class_escape(source, escape): argument
296 code = ESCAPES.get(escape)
299 code = CATEGORIES.get(escape)
303 c = escape[1:2]
306 escape += source.getwhile(2, HEXDIGITS)
307 if len(escape) != 4:
308 raise source.error("incomplete escape %s" % escape, len(escape))
309 return LITERAL, int(escape[2:], 16)
312 escape += source.getwhile(4, HEXDIGITS)
313 if len(escape) != 6:
[all …]
/external/libmojo/third_party/markupsafe/
D__init__.py80 return self.__class__(super(Markup, self).__add__(self.escape(other)))
85 return self.escape(other).__add__(self)
96 arg = tuple(_MarkupEscapeHelper(x, self.escape) for x in arg)
98 arg = _MarkupEscapeHelper(arg, self.escape)
108 return self.__class__(text_type.join(self, map(self.escape, seq)))
157 def escape(cls, s): member in Markup
162 rv = escape(s)
170 args = _escape_argspec(list(args), enumerate(args), self.escape)
187 text_type.partition(self, self.escape(sep))))
190 text_type.rpartition(self, self.escape(sep))))
[all …]
/external/guava/guava-tests/test/com/google/common/net/
DPercentEscaperTest.java19 import static com.google.common.escape.testing.EscaperAsserts.assertEscaping;
20 import static com.google.common.escape.testing.EscaperAsserts.assertUnescaped;
21 import static com.google.common.escape.testing.EscaperAsserts.assertUnicodeEscaping;
25 import com.google.common.escape.UnicodeEscaper;
61 assertEquals("", e.escape("")); in testSimpleEscaper()
62 assertEquals("safestring", e.escape("safestring")); in testSimpleEscaper()
63 assertEquals("embedded%00null", e.escape("embedded\0null")); in testSimpleEscaper()
64 assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar")); in testSimpleEscaper()
74 basicEscaper.escape("string with spaces")); in testPlusForSpace()
76 plusForSpaceEscaper.escape("string with spaces")); in testPlusForSpace()
[all …]
DUrlEscapersTest.java19 import static com.google.common.escape.testing.EscaperAsserts.assertEscaping;
20 import static com.google.common.escape.testing.EscaperAsserts.assertUnescaped;
21 import static com.google.common.escape.testing.EscaperAsserts.assertUnicodeEscaping;
27 import com.google.common.escape.UnicodeEscaper;
45 e.escape((String) null); in assertBasicUrlEscaperExceptPercent()
74 assertEquals("", e.escape("")); in assertBasicUrlEscaperExceptPercent()
75 assertEquals("safestring", e.escape("safestring")); in assertBasicUrlEscaperExceptPercent()
76 assertEquals("embedded%00null", e.escape("embedded\0null")); in assertBasicUrlEscaperExceptPercent()
77 assertEquals("max%EF%BF%BFchar", e.escape("max\uffffchar")); in assertBasicUrlEscaperExceptPercent()
108 assertEquals("safe+with+spaces", e.escape("safe with spaces")); in testUrlFormParameterEscaper()
[all …]
/external/python/cpython2/Lib/
Dsre_parse.py236 def _class_escape(source, escape): argument
238 code = ESCAPES.get(escape)
241 code = CATEGORIES.get(escape)
245 c = escape[1:2]
248 while source.next in HEXDIGITS and len(escape) < 4:
249 escape = escape + source.get()
250 escape = escape[2:]
251 if len(escape) != 2:
252 raise error, "bogus escape: %s" % repr("\\" + escape)
253 return LITERAL, int(escape, 16) & 0xff
[all …]
DDocXMLRPCServer.py26 def markup(self, text, escape=None, funcs={}, classes={}, methods={}): argument
29 escape = escape or self.escape
45 results.append(escape(text[here:start]))
49 url = escape(all).replace('"', '&quot;')
53 results.append('<a href="%s">%s</a>' % (url, escape(all)))
56 results.append('<a href="%s">%s</a>' % (url, escape(all)))
64 results.append(escape(text[here:]))
75 self.escape(anchor), self.escape(name))
117 server_name = self.escape(server_name)
/external/libcxx/test/std/strings/string.view/string.view.nonmem/
Dquoted.pass.cpp68 void round_trip_e ( const char *p, char escape ) { in round_trip_e() argument
72 ss << std::quoted(sv, '"', escape ); in round_trip_e()
74 ss >> std::quoted(s, '"', escape ); in round_trip_e()
80 std::string quote ( const char *p, char delim='"', char escape='\\' ) { in quote() argument
82 ss << std::quoted(p, delim, escape); in quote()
88 std::string unquote ( const char *p, char delim='"', char escape='\\' ) { in unquote() argument
92 ss >> std::quoted(s, delim, escape); in unquote()
133 void round_trip_e ( const wchar_t *p, wchar_t escape ) { in round_trip_e() argument
137 ss << std::quoted(sv, wchar_t('"'), escape ); in round_trip_e()
139 ss >> std::quoted(s, wchar_t('"'), escape ); in round_trip_e()
[all …]
/external/aac/libSACenc/src/
Dsacenc_huff_tab.h139 HUFF_ENTRY escape; member
145 HUFF_ENTRY escape; member
151 HUFF_ENTRY escape; member
157 HUFF_ENTRY escape; member
163 HUFF_ENTRY escape; member
169 HUFF_ENTRY escape; member
175 HUFF_ENTRY escape; member
/external/guava/guava/src/com/google/common/escape/
DEscapers.java17 package com.google.common.escape;
52 @Override public String escape(String string) {
56 @Override protected char[] escape(char c) {
206 return stringOrNull(escaper.escape(c)); in computeReplacement()
220 return stringOrNull(escaper.escape(cp)); in computeReplacement()
230 @Override protected char[] escape(int cp) { in wrap()
233 return escaper.escape((char) cp); in wrap()
241 char[] hiChars = escaper.escape(surrogateChars[0]); in wrap()
242 char[] loChars = escaper.escape(surrogateChars[1]); in wrap()
/external/guava/guava-testlib/src/com/google/common/escape/testing/
DEscaperAsserts.java17 package com.google.common.escape.testing;
19 import static com.google.common.escape.Escapers.computeReplacement;
23 import com.google.common.escape.CharEscaper;
24 import com.google.common.escape.Escaper;
25 import com.google.common.escape.UnicodeEscaper;
50 Assert.assertEquals("", escaper.escape("")); in assertBasic()
53 escaper.escape((String) null); in assertBasic()
/external/vogar/test/vogar/
DScriptBuilderEscapingTest.java52 assertEquals(qc, ScriptBuilder.escape(uc)); in runTest()
53 assertEquals("a" + qc, ScriptBuilder.escape("a" + uc)); in runTest()
54 assertEquals(qc + "b", ScriptBuilder.escape(uc + "b")); in runTest()
55 assertEquals("a" + qc + "b", ScriptBuilder.escape("a" + uc + "b")); in runTest()
57 ScriptBuilder.escape(uc + "a" + uc + uc + uc + "b" + uc)); in runTest()
71 ScriptBuilder.escape(" '\"<>&|$")); in runTest()
/external/libxml2/doc/examples/
Dindex.py13 from apibuild import CParser, escape
103 output.write(" <synopsis>%s</synopsis>\n" % escape(synopsis));
108 output.write(" <purpose>%s</purpose>\n" % escape(purpose));
113 output.write(" <usage>%s</usage>\n" % escape(usage));
118 output.write(" <test>%s</test>\n" % escape(test));
126 output.write(" <author>%s</author>\n" % escape(author));
131 output.write(" <copy>%s</copy>\n" % escape(copy));
136 output.write(" <section>%s</section>\n" % escape(section));
149 escape(topic), escape(str)))
153 output.write(" <include>%s</include>\n" % (escape(include)))
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/com/google/gdata/util/common/base/
DUnicodeEscaper.java87 protected abstract char[] escape(int cp); in escape() method in UnicodeEscaper
125 if (cp < 0 || escape(cp) != null) { in nextEscapeIndex()
160 public String escape(String string) { in escape() method in UnicodeEscaper
200 char[] escaped = escape(cp); in escapeSlow()
285 public Appendable escape(final Appendable out) { in escape() method in UnicodeEscaper
315 char[] escaped = escape(Character.toCodePoint((char) pendingHighSurrogate, in escape()
353 char[] escaped = escape(cp); in escape()
382 char[] escaped = escape(Character.toCodePoint((char) pendingHighSurrogate, c)); in escape()
399 char[] escaped = escape(c); in escape()
/external/libchrome/base/strings/
Dpattern.cc22 const CHAR* escape = NULL; in EatSameChars() local
24 if (!escape && IsWildcard(**pattern)) { in EatSameChars()
31 if (!escape && **pattern == '\\') { in EatSameChars()
32 escape = *pattern; in EatSameChars()
51 if (escape) { in EatSameChars()
52 *pattern = escape; in EatSameChars()
57 escape = NULL; in EatSameChars()

12345678910>>...30