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

Function lowerWordAt

src/extraction/languages/pascal-preparse.ts:356–358  ·  view source on GitHub ↗

The word starting at `i`, lowercased, or '' when no word starts there.

(s: string, i: number)

Source from the content-addressed store, hash-verified

354
355/** The word starting at `i`, lowercased, or '' when no word starts there. */
356function lowerWordAt(s: string, i: number): string {
357 return isIdentStart(s.charCodeAt(i)) ? s.slice(i, wordEnd(s, i + 1)).toLowerCase() : '';
358}
359
360/**
361 * After a `for` keyword ending at `forEnd`, recognize `var Name in` or

Callers 5

scanForInVariableFunction · 0.85
anonymousRecordDeclStartFunction · 0.85
scanAnonymousRecordFunction · 0.85
preParsePascalFunction · 0.85

Calls 2

isIdentStartFunction · 0.85
wordEndFunction · 0.70

Tested by

no test coverage detected