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

Function asciiSlice

static/word2md/mammoth.browser.js:10705–10713  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

10703}
10704
10705function asciiSlice (buf, start, end) {
10706 var ret = ''
10707 end = Math.min(buf.length, end)
10708
10709 for (var i = start; i < end; ++i) {
10710 ret += String.fromCharCode(buf[i] & 0x7F)
10711 }
10712 return ret
10713}
10714
10715function latin1Slice (buf, start, end) {
10716 var ret = ''

Callers 1

slowToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected