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

Function my_xpath_parse_term

sql/item_xmlfunc.cc:1439–1450  ·  view source on GitHub ↗

Scan the given token SYNOPSYS Scan the given token and rotate lasttok to prevtok on success. RETURN 1 - success 0 - failure */

Source from the content-addressed store, hash-verified

1437 0 - failure
1438*/
1439static int
1440my_xpath_parse_term(MY_XPATH *xpath, int term)
1441{
1442 if (xpath->lasttok.term == term && !xpath->error)
1443 {
1444 xpath->prevtok= xpath->lasttok;
1445 my_xpath_lex_scan(xpath, &xpath->lasttok,
1446 xpath->lasttok.end, xpath->query.end);
1447 return 1;
1448 }
1449 return 0;
1450}
1451
1452
1453/*

Calls 1

my_xpath_lex_scanFunction · 0.85

Tested by

no test coverage detected