| 1651 | |
| 1652 | |
| 1653 | inline 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 |
no test coverage detected