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

Method Set

Source/Engine/Profiler/ProfilerMemory.cpp:33–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32 template<typename T>
33 void Set(const T* str, bool autoFormat = false)
34 {
35 int32 max = StringUtils::Length(str), dst = 0;
36 T prev = 0;
37 for (int32 i = 0; i < max && dst < ARRAY_COUNT(Buffer) - 2; i++)
38 {
39 T cur = (T)str[i];
40 if (autoFormat && StringUtils::IsUpper(cur) && StringUtils::IsLower(prev))
41 {
42 Ansi[dst] = '/';
43 Buffer[dst++] = '/';
44 }
45 Ansi[dst] = (char)cur;
46 Buffer[dst++] = (Char)cur;
47 prev = cur;
48 }
49 Buffer[dst] = 0;
50 Ansi[dst] = 0;
51 }
52};
53
54// Compact groups stack container.

Callers 15

InitProfilerMemoryFunction · 0.45
RenameGroupMethod · 0.45
ClipboardGetTextFunction · 0.45
SetTextMethod · 0.45
ReadAllTextMethod · 0.45
ClipboardGetTextFunction · 0.45
ClipboardGetDataFunction · 0.45
SetTextMethod · 0.45
SetRawDataMethod · 0.45
GetRawDataMethod · 0.45

Calls 3

IsUpperFunction · 0.85
IsLowerFunction · 0.85
LengthFunction · 0.50

Tested by

no test coverage detected