MCPcopy Create free account
hub / github.com/beefytech/Beef / FilterThreadName

Function FilterThreadName

IDEHelper/WinDebugger.cpp:62–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60USING_NS_BF_DBG;
61
62static void FilterThreadName(String& name)
63{
64 for (int i = 0; i < (int)name.length(); i++)
65 {
66 uint8 c = name[i];
67 if (c == 0)
68 {
69 name.RemoveToEnd(i);
70 return;
71 }
72
73 if (c < 32)
74 {
75 name.Remove(i);
76 i--;
77 continue;
78 }
79 }
80}
81
82static bool IsHandleValid(HANDLE handle)
83{

Callers 2

TryGetThreadNameMethod · 0.85
DoUpdateMethod · 0.85

Calls 3

lengthMethod · 0.45
RemoveToEndMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected