MCPcopy Create free account
hub / github.com/axmolengine/axmol / dictionaryWithContentsOfFile

Method dictionaryWithContentsOfFile

core/platform/FileUtils.cpp:114–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 ~DictMaker() {}
113
114 ValueMap dictionaryWithContentsOfFile(std::string_view fileName)
115 {
116 _resultType = SAX_RESULT_DICT;
117 SAXParser parser;
118
119 AXASSERT(parser.init("UTF-8"), "The file format isn't UTF-8");
120 parser.setDelegator(this);
121
122 parser.parse(fileName);
123 return _rootDict;
124 }
125
126 ValueMap dictionaryWithDataOfFile(const char* filedata, int filesize)
127 {

Callers 1

getValueMapFromFileMethod · 0.80

Calls 3

setDelegatorMethod · 0.80
initMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected