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

Function parse

MyGUIEngine/include/MyGUI_Align.h:127–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 using MapAlign = std::map<std::string, Align>;
126
127 static Align parse(std::string_view _value)
128 {
129 Align result(Enum(0));
130 const MapAlign& map_names = Align::getValueNames();
131 std::vector<std::string> vec = utility::split(_value);
132 for (const auto& pos : vec)
133 {
134 auto iter = map_names.find(pos);
135 if (iter != map_names.end())
136 {
137 result |= iter->second;
138 }
139 }
140 return result;
141 }
142
143 std::string print() const
144 {

Callers 15

Gui.hFile · 0.50
MessageBoxStyleClass · 0.50
snapToParentMethod · 0.50
loadFromFileMethod · 0.50
BaseGraphConnectionMethod · 0.50
load_buffer_implMethod · 0.50
pugixml.cppFile · 0.50
parseTagMethod · 0.50
deserializationMethod · 0.50
deserializationMethod · 0.50
ColourMethod · 0.50

Calls 4

splitFunction · 0.85
EnumEnum · 0.70
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected