Home
last modified time | relevance | path

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

/external/autotest/site_utils/rpm_control_system/
DBeautifulSoup.py1867 def _detectEncoding(self, xml_data, isHTML=False): argument
1871 if xml_data[:4] == '\x4c\x6f\xa7\x94':
1873 xml_data = self._ebcdic_to_ascii(xml_data)
1874 elif xml_data[:4] == '\x00\x3c\x00\x3f':
1877 xml_data = unicode(xml_data, 'utf-16be').encode('utf-8')
1878 elif (len(xml_data) >= 4) and (xml_data[:2] == '\xfe\xff') \
1879 and (xml_data[2:4] != '\x00\x00'):
1882 xml_data = unicode(xml_data[2:], 'utf-16be').encode('utf-8')
1883 elif xml_data[:4] == '\x3c\x00\x3f\x00':
1886 xml_data = unicode(xml_data, 'utf-16le').encode('utf-8')
[all …]
/external/libweave/src/notification/
Dxmpp_stream_parser_unittest.cc115 const std::string xml_data = kXmppStreamData; in TEST_F() local
125 for (size_t step = 1; step <= xml_data.size(); step++) { in TEST_F()
128 for (size_t pos = 0; pos < xml_data.size(); pos += step) { in TEST_F()
129 parser_->ParseData(xml_data.substr(pos, step)); in TEST_F()