MCPcopy
hub / github.com/CodeboxIDE/codebox / skipWhitespace

Function skipWhitespace

core/cb.addons/require-tools/less/lessc.js:197–212  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

195 }
196
197 function skipWhitespace(length) {
198 var oldi = i, oldj = j,
199 endIndex = i + chunks[j].length,
200 mem = i += length;
201
202 while (i < endIndex) {
203 if (! isWhitespace(input.charAt(i))) { break; }
204 i++;
205 }
206 chunks[j] = chunks[j].slice(length + (i - mem));
207 current = i;
208
209 if (chunks[j].length === 0 && j < chunks.length - 1) { j++; }
210
211 return oldi !== i || oldj !== j;
212 }
213
214 function expect(arg, msg) {
215 var result = $(arg);

Callers 1

$Function · 0.85

Calls 1

isWhitespaceFunction · 0.85

Tested by

no test coverage detected