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

Function fromCodePoint

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

Source from the content-addressed store, hash-verified

880}
881
882function fromCodePoint(str, base, prefix) {
883 const codePoint = Number.parseInt(str, base);
884
885 if (codePoint >= 0 && codePoint <= 0x10FFFF) {
886 return String.fromCodePoint(codePoint);
887 } else {
888 return prefix + str + ";";
889 }
890}
891
892function transformTagName(fn, tagName, tagExp, options) {
893 if (fn) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected