MCPcopy Index your code
hub / github.com/reactjs/react-rails / scanHexEscape

Function scanHexEscape

lib/assets/javascripts/JSXTransformer.js:2931–2944  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

2929 }
2930
2931 function scanHexEscape(prefix) {
2932 var i, len, ch, code = 0;
2933
2934 len = (prefix === 'u') ? 4 : 2;
2935 for (i = 0; i < len; ++i) {
2936 if (index < length && isHexDigit(source[index])) {
2937 ch = source[index++];
2938 code = code * 16 + '0123456789abcdef'.indexOf(ch.toLowerCase());
2939 } else {
2940 return '';
2941 }
2942 }
2943 return String.fromCharCode(code);
2944 }
2945
2946 function scanUnicodeCodePointEscape() {
2947 var ch, code, cu1, cu2;

Callers 4

getEscapedIdentifierFunction · 0.85
scanStringLiteralFunction · 0.85
scanTemplateFunction · 0.85
scanRegExpFlagsFunction · 0.85

Calls 1

isHexDigitFunction · 0.85

Tested by

no test coverage detected