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

Function parse

MyGUIEngine/include/MyGUI_FlowDirection.h:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 static FlowDirection parse(std::string_view _value)
35 {
36 FlowDirection type;
37 int value = 0;
38 while (true)
39 {
40 std::string_view name = type.getValueName(value);
41 if (name.empty() || name == _value)
42 break;
43 value++;
44 }
45 type.mValue = static_cast<Enum>(value);
46 return type;
47 }
48
49 bool isHorizontal() const
50 {

Callers 1

Calls 2

getValueNameMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected