MCPcopy Index your code
hub / github.com/dataease/SQLBot / indentString

Function indentString

frontend/public/swagger-ui-bundle.js:34046–34054  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

34044 (this.duplicates = []),
34045 (this.usedDuplicates = null))
34046 }
34047 function indentString(s, o) {
34048 for (var i, a = er.repeat(' ', o), u = 0, _ = -1, w = '', x = s.length; u < x; )
34049 (-1 === (_ = s.indexOf('\n', u))
34050 ? ((i = s.slice(u)), (u = x))
34051 : ((i = s.slice(u, _ + 1)), (u = _ + 1)),
34052 i.length && '\n' !== i && (w += a),
34053 (w += i))
34054 return w
34055 }
34056 function generateNextLine(s, o) {
34057 return '\n' + er.repeat(' ', s.indent * o)

Callers 1

writeScalarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected