/external/guava/guava-gwt/test/com/google/common/escape/ |
D | UnicodeEscaperTest_gwt.java | 16 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()
|
D | EscapersTest_gwt.java | 16 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()
|
D | ArrayBasedUnicodeEscaperTest_gwt.java | 16 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()
|
D | ArrayBasedCharEscaperTest_gwt.java | 16 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()
|
D | ArrayBasedEscaperMapTest_gwt.java | 16 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/ |
D | XmlEscapersTest.java | 19 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	b
c
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/ |
D | EscapersTest.java | 17 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 …]
|
D | ArrayBasedUnicodeEscaperTest.java | 17 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()
|
D | ArrayBasedCharEscaperTest.java | 17 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()
|
D | UnicodeEscaperTest.java | 17 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/ |
D | HtmlEscapersTest.java | 32 assertEquals("xxx", htmlEscaper().escape("xxx")); in testHtmlEscaper() 33 assertEquals(""test"", htmlEscaper().escape("\"test\"")); in testHtmlEscaper() 34 assertEquals("'test'", htmlEscaper().escape("\'test'")); in testHtmlEscaper() 35 assertEquals("test & test & test", htmlEscaper().escape("test & test & test")); in testHtmlEscaper() 36 assertEquals("test << 1", htmlEscaper().escape("test << 1")); in testHtmlEscaper() 37 assertEquals("test >> 1", htmlEscaper().escape("test >> 1")); in testHtmlEscaper() 38 assertEquals("<tab>", htmlEscaper().escape("<tab>")); in testHtmlEscaper() 41 assertEquals("foo&bar", htmlEscaper().escape("foo&bar")); in testHtmlEscaper() 46 assertSame(s, htmlEscaper().escape(s)); in testHtmlEscaper() 49 assertEquals("<p>", htmlEscaper().escape("<p>")); in testHtmlEscaper() [all …]
|
/external/v8/test/mjsunit/ |
D | escape.js | 37 assertEquals(unescaped, escape(unescaped)); 39 assertEquals("%20/%20", escape(" / ")); 41 assertEquals("%000", escape("\0" + "0")); 43 assertEquals("A%20B%u1234%00%20C", escape(String.fromCharCode(0x41, 0x20, 0x42, 0x1234, 0, 0x20, 0x… 45 assertEquals("%u0123", escape(String.fromCharCode(0x123))); 47 assertEquals("%uABCD", escape(String.fromCharCode(0xabcd))); 48 assertEquals("%AB", escape(String.fromCharCode(0xab))); 49 assertEquals("%0A", escape("\n")); 55 assertFalse(s == escape(s)); 57 assertTrue(s == escape(s)); [all …]
|
/external/opencv3/3rdparty/jinja2/markupsafe/ |
D | __init__.py | 80 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/ |
D | PercentEscaperTest.java | 19 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 …]
|
D | UrlEscapersTest.java | 19 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/jetty/src/java/org/eclipse/jetty/util/ |
D | QuotedStringTokenizer.java | 105 boolean escape=false; in hasMoreTokens() 169 if (escape) in hasMoreTokens() 171 escape=false; in hasMoreTokens() 184 escape=true; in hasMoreTokens() 194 if (escape) in hasMoreTokens() 196 escape=false; in hasMoreTokens() 209 escape=true; in hasMoreTokens() 357 char escape = escapes[c]; in quote() local 358 if (escape == 0xFFFF) in quote() 368 buffer.append('\\').append(escape); in quote() [all …]
|
/external/libcxx/test/std/input.output/iostream.format/quoted.manip/ |
D | quoted.pass.cpp | 69 void round_trip_e ( const char *p, char escape ) { in round_trip_e() argument 71 ss << std::quoted(p, '"', escape ); in round_trip_e() 73 ss >> std::quoted(s, '"', escape ); in round_trip_e() 79 std::string quote ( const char *p, char delim='"', char escape='\\' ) { in quote() argument 81 ss << std::quoted(p, delim, escape); in quote() 87 std::string unquote ( const char *p, char delim='"', char escape='\\' ) { in unquote() argument 91 ss >> std::quoted(s, delim, escape); in unquote() 140 void round_trip_e ( const wchar_t *p, wchar_t escape ) { in round_trip_e() argument 142 ss << std::quoted(p, wchar_t('"'), escape ); in round_trip_e() 144 ss >> std::quoted(s, wchar_t('"'), escape ); in round_trip_e() [all …]
|
/external/libcxx/test/std/experimental/string.view/string.view.nonmem/ |
D | quoted.pass.cpp | 66 void round_trip_e ( const char *p, char escape ) { in round_trip_e() argument 70 ss << std::quoted(sv, '"', escape ); in round_trip_e() 72 ss >> std::quoted(s, '"', escape ); in round_trip_e() 78 std::string quote ( const char *p, char delim='"', char escape='\\' ) { in quote() argument 80 ss << std::quoted(p, delim, escape); in quote() 86 std::string unquote ( const char *p, char delim='"', char escape='\\' ) { in unquote() argument 90 ss >> std::quoted(s, delim, escape); in unquote() 131 void round_trip_e ( const wchar_t *p, wchar_t escape ) { in round_trip_e() argument 135 ss << std::quoted(sv, wchar_t('"'), escape ); in round_trip_e() 137 ss >> std::quoted(s, wchar_t('"'), escape ); in round_trip_e() [all …]
|
/external/guava/guava/src/com/google/common/escape/ |
D | Escapers.java | 17 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/ |
D | EscaperAsserts.java | 17 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/ |
D | ScriptBuilderEscapingTest.java | 52 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/ |
D | index.py | 13 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/libchrome/base/strings/ |
D | pattern.cc | 22 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()
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/com/google/gdata/util/common/base/ |
D | UnicodeEscaper.java | 87 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/dexmaker/src/dx/java/com/android/dx/ssa/ |
D | EscapeAnalysis.java | 60 EscapeState escape; field in EscapeAnalysis.EscapeSet 78 escape = escState; in EscapeSet() 369 if (escSet.escape.compareTo(mergeSet.escape) < 0) { in processPhiUse() 370 escSet.escape = mergeSet.escape; in processPhiUse() 405 if (escSet.escape.compareTo(EscapeState.METHOD) < 0) { in processUse() 406 escSet.escape = EscapeState.METHOD; in processUse() 432 if (escSet.escape.compareTo(parentSet.escape) < 0) { in processUse() 433 escSet.escape = parentSet.escape; in processUse() 441 if (childSet.escape.compareTo(escSet.escape) < 0) { in processUse() 442 childSet.escape = escSet.escape; in processUse() [all …]
|