MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / parse_simple

Method parse_simple

src/pugiXML/pugixml.cpp:1988–2012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1986 }
1987
1988 static char_t* parse_simple(char_t* s, char_t end_quote)
1989 {
1990 gap g;
1991
1992 while (true)
1993 {
1994 while (!PUGI__IS_CHARTYPE(*s, ct_parse_attr)) ++s;
1995
1996 if (*s == end_quote)
1997 {
1998 *g.flush(s) = 0;
1999
2000 return s + 1;
2001 }
2002 else if (opt_escape::value && *s == '&')
2003 {
2004 s = strconv_escape(s, g);
2005 }
2006 else if (!*s)
2007 {
2008 return 0;
2009 }
2010 else ++s;
2011 }
2012 }
2013 };
2014
2015 PUGI__FN 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