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

Function fxUTF8Buffer

xs/sources/xsLexical.c:112–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110};
111
112static txString fxUTF8Buffer(txParser* parser, txInteger character, txString string, txString limit)
113{
114 if (string + mxStringByteLength(character) > limit) {
115 fxReportMemoryError(parser, parser->states[2].line, "buffer overflow");
116 }
117 return mxStringByteEncode(string, character);
118}
119
120void fxCheckStrictKeyword(txParser* parser)
121{

Callers 6

fxGetNextRegExpFunction · 0.85
fxGetNextStringFunction · 0.85
fxGetNextTokenAuxFunction · 0.85
fxGetNextEntityFunction · 0.85
fxGetNextTokenJSXChildFunction · 0.85

Calls 1

fxReportMemoryErrorFunction · 0.85

Tested by

no test coverage detected