MCPcopy Create free account
hub / github.com/KDAB/codebrowser / countSlashes

Function countSlashes

data/codebrowser.js:161–166  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

159
160 // count the number of slashes before character i in origin
161 function countSlashes(i) {
162 var count = 0;
163 while(count < i && origin.charAt(i-count-1) == '\\')
164 count++;
165 return count;
166 }
167
168 var len = origin.length;
169 var result = "";

Callers 1

identAndHighlightMacroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected