MCPcopy Create free account
hub / github.com/reactjs/react-rails / asciiSlice

Function asciiSlice

lib/assets/javascripts/JSXTransformer.js:945–953  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

943}
944
945function asciiSlice (buf, start, end) {
946 var ret = ''
947 end = Math.min(buf.length, end)
948
949 for (var i = start; i < end; i++) {
950 ret += String.fromCharCode(buf[i] & 0x7F)
951 }
952 return ret
953}
954
955function binarySlice (buf, start, end) {
956 var ret = ''

Callers 1

JSXTransformer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected