Lines Matching refs:parser
216 XmlPullParser* parser = reinterpret_cast<XmlPullParser*>(user_data); in StartNamespaceHandler() local
218 parser->namespace_uris_.push(namespace_uri); in StartNamespaceHandler()
219 parser->event_queue_.push( in StartNamespaceHandler()
221 XML_GetCurrentLineNumber(parser->parser_), parser->depth_++, in StartNamespaceHandler()
228 XmlPullParser* parser = reinterpret_cast<XmlPullParser*>(user_data); in StartElementHandler() local
231 XML_GetCurrentLineNumber(parser->parser_), in StartElementHandler()
232 parser->depth_++}; in StartElementHandler()
247 parser->event_queue_.push(std::move(data)); in StartElementHandler()
252 XmlPullParser* parser = reinterpret_cast<XmlPullParser*>(user_data); in CharacterDataHandler() local
254 parser->event_queue_.push(EventData{Event::kText, XML_GetCurrentLineNumber(parser->parser_), in CharacterDataHandler()
255 parser->depth_, std::string(s, len)}); in CharacterDataHandler()
260 XmlPullParser* parser = reinterpret_cast<XmlPullParser*>(user_data); in EndElementHandler() local
263 XML_GetCurrentLineNumber(parser->parser_), in EndElementHandler()
264 --(parser->depth_)}; in EndElementHandler()
268 parser->event_queue_.push(std::move(data)); in EndElementHandler()
273 XmlPullParser* parser = reinterpret_cast<XmlPullParser*>(user_data); in EndNamespaceHandler() local
275 parser->event_queue_.push( in EndNamespaceHandler()
276 EventData{Event::kEndNamespace, XML_GetCurrentLineNumber(parser->parser_), in EndNamespaceHandler()
277 --(parser->depth_), prefix != nullptr ? prefix : std::string(), in EndNamespaceHandler()
278 parser->namespace_uris_.top()}); in EndNamespaceHandler()
279 parser->namespace_uris_.pop(); in EndNamespaceHandler()
284 XmlPullParser* parser = reinterpret_cast<XmlPullParser*>(user_data); in CommentDataHandler() local
286 parser->event_queue_.push(EventData{Event::kComment, in CommentDataHandler()
287 XML_GetCurrentLineNumber(parser->parser_), in CommentDataHandler()
288 parser->depth_, comment}); in CommentDataHandler()
292 XmlPullParser* parser = reinterpret_cast<XmlPullParser*>(user_data); in StartCdataSectionHandler() local
294 parser->event_queue_.push(EventData{Event::kCdataStart, in StartCdataSectionHandler()
295 XML_GetCurrentLineNumber(parser->parser_), in StartCdataSectionHandler()
296 parser->depth_ }); in StartCdataSectionHandler()
300 XmlPullParser* parser = reinterpret_cast<XmlPullParser*>(user_data); in EndCdataSectionHandler() local
302 parser->event_queue_.push(EventData{Event::kCdataEnd, in EndCdataSectionHandler()
303 XML_GetCurrentLineNumber(parser->parser_), in EndCdataSectionHandler()
304 parser->depth_ }); in EndCdataSectionHandler()
307 Maybe<StringPiece> FindAttribute(const XmlPullParser* parser, in FindAttribute() argument
309 auto iter = parser->FindAttribute("", name); in FindAttribute()
310 if (iter != parser->end_attributes()) { in FindAttribute()
316 Maybe<StringPiece> FindNonEmptyAttribute(const XmlPullParser* parser, in FindNonEmptyAttribute() argument
318 auto iter = parser->FindAttribute("", name); in FindNonEmptyAttribute()
319 if (iter != parser->end_attributes()) { in FindNonEmptyAttribute()