| 6806 | |
| 6807 | |
| 6808 | FuncEntry *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 |
nothing calls this directly
no outgoing calls
no test coverage detected