| 2954 | |
| 2955 | // modified version of https://github.com/mathiasbynens/he/blob/master/src/he.js#L94-L119 |
| 2956 | function decodeCodePoint(codePoint){ |
| 2957 | |
| 2958 | if((codePoint >= 0xD800 && codePoint <= 0xDFFF) || codePoint > 0x10FFFF){ |
| 2959 | return "\uFFFD"; |
| 2960 | } |
| 2961 | |
| 2962 | if(codePoint in decodeMap){ |
| 2963 | codePoint = decodeMap[codePoint]; |
| 2964 | } |
| 2965 | |
| 2966 | var output = ""; |
| 2967 | |
| 2968 | if(codePoint > 0xFFFF){ |
| 2969 | codePoint -= 0x10000; |
| 2970 | output += String.fromCharCode(codePoint >>> 10 & 0x3FF | 0xD800); |
| 2971 | codePoint = 0xDC00 | codePoint & 0x3FF; |
| 2972 | } |
| 2973 | |
| 2974 | output += String.fromCharCode(codePoint); |
| 2975 | return output; |
| 2976 | } |
| 2977 | |
| 2978 | },{"../maps/decode.json":15}],14:[function(require,module,exports){ |
| 2979 | var inverseXML = getInverseObj(require("../maps/xml.json")), |