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

Function SoundConvertComponent

source/script2.cpp:7180–7195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7178
7179
7180void SoundConvertComponent(LPTSTR aBuf, SoundComponentSearch &aSearch)
7181{
7182 if (IsNumeric(aBuf) == PURE_INTEGER)
7183 {
7184 *aSearch.target_name = '\0';
7185 aSearch.target_instance = ATOI(aBuf);
7186 }
7187 else
7188 {
7189 tcslcpy(aSearch.target_name, aBuf, _countof(aSearch.target_name));
7190 LPTSTR colon_pos = _tcsrchr(aSearch.target_name, ':');
7191 aSearch.target_instance = colon_pos ? ATOI(colon_pos + 1) : 1;
7192 if (colon_pos)
7193 *colon_pos = '\0';
7194 }
7195}
7196
7197
7198bool SoundSetGet_FindComponent(IPart *aRoot, SoundComponentSearch &aSearch)

Callers 1

BIF_DECLFunction · 0.85

Calls 2

IsNumericFunction · 0.85
ATOIFunction · 0.85

Tested by

no test coverage detected