| 500 | } |
| 501 | |
| 502 | bool DebugCommands::Iterate(const StringView& searchText, int32& index) |
| 503 | { |
| 504 | EnsureInited(); |
| 505 | if (index >= 0) |
| 506 | { |
| 507 | ScopeLock lock(Locker); |
| 508 | while (index < Commands.Count()) |
| 509 | { |
| 510 | auto& command = Commands.Get()[index]; |
| 511 | if (command.Name.StartsWith(searchText, StringSearchCase::IgnoreCase)) |
| 512 | { |
| 513 | return true; |
| 514 | } |
| 515 | index++; |
| 516 | } |
| 517 | } |
| 518 | return false; |
| 519 | } |
| 520 | |
| 521 | StringView DebugCommands::GetCommandName(int32 index) |
| 522 | { |
nothing calls this directly
no test coverage detected