MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / IsClassDefinition

Function IsClassDefinition

source/script.cpp:1653–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1651
1652
1653inline LPTSTR IsClassDefinition(LPTSTR aBuf)
1654{
1655 if (_tcsnicmp(aBuf, _T("Class"), 5) || !IS_SPACE_OR_TAB(aBuf[5])) // i.e. it's not "Class" followed by a space or tab.
1656 return NULL;
1657 LPTSTR class_name = omit_leading_whitespace(aBuf + 6);
1658 if (_tcschr(EXPR_ALL_SYMBOLS, *class_name))
1659 // It's probably something like "Class := GetClass()".
1660 return NULL;
1661 // Validation of the name is left up to the caller, for simplicity.
1662 return class_name;
1663}
1664
1665
1666

Callers 1

LoadIncludedFileMethod · 0.85

Calls 1

omit_leading_whitespaceFunction · 0.85

Tested by

no test coverage detected