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

Function fxNewParserString

xs/sources/xsScript.c:212–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212txString fxNewParserString(txParser* parser, txString buffer, txSize size)
213{
214 if (parser->buffer) {
215 txString result = fxNewParserChunk(parser, size + 1);
216 c_memcpy(result, buffer, size);
217 result[size] = 0;
218 return result;
219 }
220 return buffer;
221}
222
223txSymbol* fxNewParserSymbol(txParser* parser, txString theString)
224{

Callers 13

fxRealDirectoryPathFunction · 0.85
fxRealFilePathFunction · 0.85
fxRealFilePathIfFunction · 0.85
mainFunction · 0.85
fxGetNextRegExpFunction · 0.85
fxGetNextStringFunction · 0.85
fxGetNextTokenAuxFunction · 0.85
fxGetNextTokenJSXChildFunction · 0.85
fxInitializeParserFunction · 0.85
fxNewParserSymbolFunction · 0.85
fxReportMemoryErrorFunction · 0.85

Calls 1

fxNewParserChunkFunction · 0.85

Tested by

no test coverage detected