MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / skipBlank

Function skipBlank

src/extraction/languages/cpp-macro-methods.ts:205–208  ·  view source on GitHub ↗

Past the blanks at `i`.

(text: string, i: number)

Source from the content-addressed store, hash-verified

203
204/** Past the blanks at `i`. */
205function skipBlank(text: string, i: number): number {
206 while (i < text.length && /\s/.test(text[i]!)) i++;
207 return i;
208}
209
210/** The end of the identifier at `i`, or -1. */
211function wordEnd(text: string, i: number): number {

Callers 3

qualifiedCallableAtFunction · 0.70
bodyOpenAfterFunction · 0.70
skipBlankAndCommentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected