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

Function ReturnLoopFilePath

source/script2.cpp:10191–10201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10189}
10190
10191void ReturnLoopFilePath(ResultToken &aResultToken, LPTSTR aPattern, LPTSTR aPrefix, size_t aPrefixLen, LPTSTR aSuffix, size_t aSuffixLen)
10192{
10193 if (!TokenSetResult(aResultToken, nullptr, aPrefixLen + aSuffixLen))
10194 return;
10195 aResultToken.symbol = SYM_STRING;
10196 LPTSTR buf = aResultToken.marker;
10197 tmemcpy(buf, aPrefix, aPrefixLen);
10198 tmemcpy(buf + aPrefixLen, aSuffix, aSuffixLen + 1); // +1 for \0.
10199 FixLoopFilePath(buf, aPattern);
10200 aResultToken.marker_length = -1; // Let caller determine actual length.
10201}
10202
10203BIV_DECL_R(BIV_LoopFilePath)
10204{

Callers 1

BIV_DECL_RFunction · 0.85

Calls 2

TokenSetResultFunction · 0.85
FixLoopFilePathFunction · 0.85

Tested by

no test coverage detected