(str)
| 5938 | 0x27: "'" |
| 5939 | }; |
| 5940 | function* codePointIter(str) { |
| 5941 | for (let i = 0, ii = str.length; i < ii; i++) { |
| 5942 | const char = str.codePointAt(i); |
| 5943 | if (char > 0xd7ff && (char < 0xe000 || char > 0xfffd)) { |
| 5944 | i++; |
| 5945 | } |
| 5946 | yield char; |
| 5947 | } |
| 5948 | } |
| 5949 | function encodeToXmlString(str) { |
| 5950 | const buffer = []; |
| 5951 | let start = 0; |