MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxParseXMLStartTag

Function fxParseXMLStartTag

modules/piu/PC/Code/piuCodeXML.c:211–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void fxParseXMLStartTag(PiuCodeParser parser)
212{
213 int length;
214 PiuCodeParserColorAt(parser, 1, parser->offset);
215 fxParseXMLName(parser);
216 fxParseXMLSpace(parser, &length);
217 while ((parser->character) && (parser->character != '/') && (parser->character != '>')) {
218 if (!length)
219 PiuCodeParserError(parser);
220 fxParseXMLName(parser);
221 fxParseXMLSpace(parser, NULL);
222 if (parser->character != '=')
223 PiuCodeParserError(parser);
224 PiuCodeParserAdvance(parser);
225 fxParseXMLSpace(parser, NULL);
226 fxParseXMLValue(parser);
227 fxParseXMLSpace(parser, &length);
228 }
229 if (parser->character == '/')
230 PiuCodeParserAdvance(parser);
231 if (parser->character != '>')
232 PiuCodeParserError(parser);
233 PiuCodeParserAdvance(parser);
234}
235
236void fxParseXMLStopTag(PiuCodeParser parser)
237{

Callers 1

PiuCodeFormatXMLFunction · 0.85

Calls 6

PiuCodeParserColorAtFunction · 0.85
fxParseXMLNameFunction · 0.85
fxParseXMLSpaceFunction · 0.85
PiuCodeParserErrorFunction · 0.85
PiuCodeParserAdvanceFunction · 0.85
fxParseXMLValueFunction · 0.85

Tested by

no test coverage detected