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

Method _loadLanguageXML

MyGUIEngine/src/MyGUI_LanguageManager.cpp:141–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 }
140
141 void LanguageManager::_loadLanguageXML(IDataStream* _stream, bool _user)
142 {
143 xml::Document doc;
144 // формат xml
145 if (doc.open(_stream))
146 {
147 xml::ElementPtr root = doc.getRoot();
148 if (root)
149 {
150 xml::ElementEnumerator tag = root->getElementEnumerator();
151 while (tag.next("Tag"))
152 {
153 auto& map = _user ? mUserMapLanguage : mMapLanguage;
154 mapSet(map, tag->findAttribute("name"), tag->getContent());
155 }
156 }
157 }
158 }
159
160 void LanguageManager::_loadLanguage(IDataStream* _stream, bool _user)
161 {

Callers

nothing calls this directly

Calls 6

getElementEnumeratorMethod · 0.80
findAttributeMethod · 0.80
mapSetFunction · 0.50
openMethod · 0.45
getRootMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected