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

Method GetBuiltInFunc

source/script.cpp:6808–6823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6806
6807
6808FuncEntry *Script::GetBuiltInFunc(LPTSTR aFuncName)
6809{
6810 int left, right, mid, result;
6811 for (left = 0, right = _countof(g_BIF) - 1; left <= right;)
6812 {
6813 mid = (left + right) / 2;
6814 result = _tcsicmp(aFuncName, g_BIF[mid].mName);
6815 if (result > 0)
6816 left = mid + 1;
6817 else if (result < 0)
6818 right = mid - 1;
6819 else // Match found.
6820 return &g_BIF[mid];
6821 }
6822 return NULL;
6823}
6824
6825
6826

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected