MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Iterate

Method Iterate

Source/Engine/Debug/DebugCommands.cpp:502–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502bool 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
521StringView DebugCommands::GetCommandName(int32 index)
522{

Callers

nothing calls this directly

Calls 4

EnsureInitedFunction · 0.85
CountMethod · 0.45
GetMethod · 0.45
StartsWithMethod · 0.45

Tested by

no test coverage detected