MCPcopy Create free account
hub / github.com/MyGUI/mygui / parse_simple

Method parse_simple

Tools/EditorFramework/pugixml.cpp:2209–2235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2207 }
2208
2209 static char_t* parse_simple(char_t* s, char_t end_quote)
2210 {
2211 gap g;
2212
2213 while (true)
2214 {
2215 while (!PUGI__IS_CHARTYPE(*s, ct_parse_attr))
2216 ++s;
2217
2218 if (*s == end_quote)
2219 {
2220 *g.flush(s) = 0;
2221
2222 return s + 1;
2223 }
2224 else if (opt_escape::value && *s == '&')
2225 {
2226 s = strconv_escape(s, g);
2227 }
2228 else if (!*s)
2229 {
2230 return 0;
2231 }
2232 else
2233 ++s;
2234 }
2235 }
2236};
2237
2238PUGI__FN strconv_attribute_t get_strconv_attribute(unsigned int optmask)

Callers

nothing calls this directly

Calls 2

strconv_escapeFunction · 0.70
flushMethod · 0.45

Tested by

no test coverage detected