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

Function fxPatternParserDecimal

xs/sources/xsre.c:2283–2291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2281}
2282
2283txBoolean fxPatternParserDecimal(txPatternParser* parser, txU4* value)
2284{
2285 txInteger c = parser->character;
2286 if (('0' <= c) && (c <= '9'))
2287 *value = (*value * 10) + (c - '0');
2288 else
2289 return 0;
2290 return 1;
2291}
2292
2293void fxPatternParserError(txPatternParser* parser, txString format, ...)
2294{

Callers 2

fxQuantifierParseDigitsFunction · 0.85
fxSequenceParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected