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

Function lowerWordAt

src/extraction/languages/pascal-preparse.ts:351–353  ·  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

349
350/** The word starting at `i`, lowercased, or '' when no word starts there. */
351function lowerWordAt(s: string, i: number): string {
352 return isIdentStart(s.charCodeAt(i)) ? s.slice(i, wordEnd(s, i + 1)).toLowerCase() : '';
353}
354
355/**
356 * 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