MCPcopy Create free account
hub / github.com/MyGUI/mygui / parse

Function parse

MyGUIEngine/include/MyGUI_LogLevel.h:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 static LogLevel parse(std::string_view _value)
40 {
41 LogLevel type;
42 int value = 0;
43 while (true)
44 {
45 std::string_view name = type.getValueName(value);
46 if (name.empty() || name == _value)
47 break;
48 value++;
49 }
50 type.mValue = static_cast<Enum>(value);
51 return type;
52 }
53
54 friend bool operator<(LogLevel const& a, LogLevel const& b)
55 {

Callers 1

MyGUI_LogLevel.hFile · 0.70

Calls 2

getValueNameMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected