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

Function isWordChar

src/extraction/languages/cpp-macro-methods.ts:59–59  ·  view source on GitHub ↗
(c: number)

Source from the content-addressed store, hash-verified

57
58const isWordStart = (c: number): boolean => (c >= 97 && c <= 122) || (c >= 65 && c <= 90) || c === 95;
59const isWordChar = (c: number): boolean => isWordStart(c) || (c >= 48 && c <= 57);
60
61/** A function-like `#define` whose replacement, on any of its lines, writes `::` and a `{`. */
62const METHOD_MACRO_CANDIDATE = /^[ \t]*#[ \t]*define[ \t]+[A-Za-z_]\w*\([^)\n]*\)((?:[^\n]*\\\r?\n)*[^\n]*)/gm;

Callers 3

wordEndFunction · 0.70
qualifiedCallableAtFunction · 0.70
cppCodeScanFunction · 0.70

Calls 1

isWordStartFunction · 0.70

Tested by

no test coverage detected