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

Function fxGetNextDigitsD

xs/sources/xsLexical.c:223–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223txString fxGetNextDigitsD(txParser* parser, txString p, txString q, int* base)
224{
225 int c = parser->character;
226 *base = 8;
227 while (('0' <= c) && (c <= '9')) {
228 if (p < q) *p++ = (char)c;
229 if (('8' <= c) && (c <= '9'))
230 *base = 10;
231 fxGetNextCharacter(parser);
232 c = parser->character;
233 }
234 return p;
235}
236
237txString fxGetNextDigitsE(txParser* parser, txString p, txString q)
238{

Callers 1

fxGetNextNumberOFunction · 0.85

Calls 1

fxGetNextCharacterFunction · 0.85

Tested by

no test coverage detected