MCPcopy Create free account
hub / github.com/TruthHun/BookStack / asciiToBytes

Function asciiToBytes

static/word2md/mammoth.browser.js:11440–11447  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

11438}
11439
11440function asciiToBytes (str) {
11441 var byteArray = []
11442 for (var i = 0; i < str.length; ++i) {
11443 // Node's code seems to be doing this and not & 0x7F..
11444 byteArray.push(str.charCodeAt(i) & 0xFF)
11445 }
11446 return byteArray
11447}
11448
11449function utf16leToBytes (str, units) {
11450 var c, hi, lo

Callers 1

asciiWriteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected