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

Function fxParseHexEscape

xs/sources/xsCommon.c:850–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848}
849
850txBoolean fxParseHexEscape(txString* string, txInteger* character)
851{
852 txU1* p = *((txU1**)string);
853 txU4 value = 0;
854 txU1 i, c;
855 for (i = 0; i < 2; i++) {
856 c = c_read8(p);
857 if (!fxParseHex(c, &value))
858 return 0;
859 p++;
860 }
861 *character = (txInteger)value;
862 *string = (txString)p;
863 return 1;
864}
865
866txBoolean fxParseUnicodeEscape(txString* string, txInteger* character, txInteger braces, txInteger separator)
867{

Callers 5

fx_parseQueryPlusFunction · 0.85
fxGetNextStringFunction · 0.85
fx_unescapeFunction · 0.85
fxDecodeURIFunction · 0.85
fxPatternParserEscapeFunction · 0.85

Calls 1

fxParseHexFunction · 0.85

Tested by

no test coverage detected