Home
last modified time | relevance | path

Searched refs:xmlAttributeEscaper (Results 1 – 2 of 2) sorted by relevance

/external/guava/guava-tests/test/com/google/common/xml/
DXmlEscapersTest.java45 CharEscaper xmlAttributeEscaper = (CharEscaper) XmlEscapers.xmlAttributeEscaper(); in testXmlAttributeEscaper() local
46 assertBasicXmlEscaper(xmlAttributeEscaper, true, true); in testXmlAttributeEscaper()
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()
/external/guava/guava/src/com/google/common/xml/
DXmlEscapers.java112 public static Escaper xmlAttributeEscaper() { in xmlAttributeEscaper() method in XmlEscapers