Lines Matching refs:XmlParser
32 XmlParser::Node::Node(const ResXMLTree& tree) : Node(tree, get_tree_position(tree)) { in Node()
34 XmlParser::Node::Node(const ResXMLTree& tree, const ResXMLParser::ResXMLPosition& pos) in Node()
39 bool XmlParser::Node::operator==(const XmlParser::Node& rhs) const { in operator ==()
46 bool XmlParser::Node::operator!=(const XmlParser::Node& rhs) const { in operator !=()
50 ResXMLParser::ResXMLPosition XmlParser::Node::get_position() const { in get_position()
54 void XmlParser::Node::set_position(const ResXMLParser::ResXMLPosition& pos) { in set_position()
58 bool XmlParser::Node::Seek(bool inner_child) { in Seek()
59 if (parser_.getEventType() == XmlParser::Event::END_TAG) { in Seek()
64 XmlParser::Event code; in Seek()
65 while ((code = parser_.next()) != XmlParser::Event::BAD_DOCUMENT && in Seek()
66 code != XmlParser::Event::END_DOCUMENT) { in Seek()
67 if (code == XmlParser::Event::START_TAG) { in Seek()
71 } else if (code == XmlParser::Event::END_TAG) { in Seek()
81 XmlParser::Event XmlParser::Node::event() const { in event()
85 std::string XmlParser::Node::name() const { in name()
125 Result<Res_value> XmlParser::Node::GetAttributeValue(ResourceId attr, in GetAttributeValue()
132 Result<Res_value> XmlParser::Node::GetAttributeValue(const std::string& name) const { in GetAttributeValue()
144 Result<std::string> XmlParser::Node::GetAttributeStringValue(ResourceId attr, in GetAttributeStringValue()
150 Result<std::string> XmlParser::Node::GetAttributeStringValue(const std::string& name) const { in GetAttributeStringValue()
155 XmlParser::XmlParser(std::unique_ptr<ResXMLTree> tree) : tree_(std::move(tree)) { in XmlParser() function in android::idmap2::XmlParser
158 Result<XmlParser> XmlParser::Create(const void* data, size_t size, bool copy_data) { in Create()
165 XmlParser::Event event; in Create()
166 while ((event = tree->next()) != XmlParser::Event::BAD_DOCUMENT && in Create()
167 event != XmlParser::Event::END_DOCUMENT && event != XmlParser::Event::START_TAG) { in Create()
170 if (event == XmlParser::Event::END_DOCUMENT) { in Create()
174 if (event == XmlParser::Event::BAD_DOCUMENT) { in Create()
178 return XmlParser{std::move(tree)}; in Create()