MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_xml_error_pos

Function my_xml_error_pos

strings/xml.c:549–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547
548
549size_t my_xml_error_pos(MY_XML_PARSER *p)
550{
551 const char *beg=p->beg;
552 const char *s;
553 for ( s=p->beg ; s<p->cur; s++)
554 {
555 if (s[0] == '\n')
556 beg=s;
557 }
558 return (size_t) (p->cur-beg);
559}
560
561uint my_xml_error_lineno(MY_XML_PARSER *p)
562{

Callers 3

my_parse_charset_xmlFunction · 0.85
parse_xmlMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68