| 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 | |
| 2238 | PUGI__FN strconv_attribute_t get_strconv_attribute(unsigned int optmask) |
nothing calls this directly
no test coverage detected