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

Function ClassHasOpenBrace

source/script.cpp:1679–1693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1677
1678
1679bool ClassHasOpenBrace(LPTSTR aBuf, size_t aBufLength, LPTSTR aNextBuf, size_t &aNextBufLength)
1680{
1681 if (aBuf[aBufLength - 1] == '{') // Brace on same line (OTB).
1682 {
1683 rtrim(aBuf, aBufLength - 1);
1684 return true;
1685 }
1686 if (*aNextBuf == '{') // Brace on next line.
1687 {
1688 // Remove '{' from aNextBuf since ACT_BLOCK_END is unwanted in this context.
1689 RemoveBufChar0(aNextBuf, aNextBufLength);
1690 return true;
1691 }
1692 return false;
1693}
1694
1695
1696

Callers 1

LoadIncludedFileMethod · 0.85

Calls 2

rtrimFunction · 0.85
RemoveBufChar0Function · 0.85

Tested by

no test coverage detected