MCPcopy Create free account
hub / github.com/NaturalIntelligence/fast-xml-parser / fromCodePoint

Function fromCodePoint

src/xmlparser/OrderedObjParser.js:818–826  ·  view source on GitHub ↗
(str, base, prefix)

Source from the content-addressed store, hash-verified

816}
817
818function fromCodePoint(str, base, prefix) {
819 const codePoint = Number.parseInt(str, base);
820
821 if (codePoint >= 0 && codePoint <= 0x10FFFF) {
822 return String.fromCodePoint(codePoint);
823 } else {
824 return prefix + str + ";";
825 }
826}
827
828function transformTagName(fn, tagName, tagExp, options) {
829 if (fn) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected