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

Function fxCacheUTF8Length

xs/sources/xsString.c:132–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132txSize fxCacheUTF8Length(txMachine* the, txString string)
133{
134 txStringInfo* info = fxCacheStringInfo(the, string);
135 if (info)
136 return info->utf8Length;
137 return (txSize)c_strlen(string);
138}
139
140txSize fxCacheUTF8ToUnicodeOffset(txMachine* the, txString string, txSize offset)
141{

Callers 5

fxMatchRegExpFunction · 0.85

Calls 1

fxCacheStringInfoFunction · 0.85

Tested by

no test coverage detected