MCPcopy Create free account
hub / github.com/WheretIB/nullc / parse_simple

Method parse_simple

external/pugixml/pugixml.cpp:1816–1840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1814 }
1815
1816 static char_t* parse_simple(char_t* s, char_t end_quote)
1817 {
1818 gap g;
1819
1820 while (true)
1821 {
1822 while (!IS_CHARTYPE(*s, ct_parse_attr)) ++s;
1823
1824 if (*s == end_quote)
1825 {
1826 *g.flush(s) = 0;
1827
1828 return s + 1;
1829 }
1830 else if (opt_escape::value && *s == '&')
1831 {
1832 s = strconv_escape(s, g);
1833 }
1834 else if (!*s)
1835 {
1836 return 0;
1837 }
1838 else ++s;
1839 }
1840 }
1841 };
1842
1843 strconv_attribute_t get_strconv_attribute(unsigned int optmask)

Callers

nothing calls this directly

Calls 2

strconv_escapeFunction · 0.85
flushMethod · 0.45

Tested by

no test coverage detected