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

Method arrayWithContentsOfFile

core/platform/FileUtils.cpp:138–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 ValueVector arrayWithContentsOfFile(std::string_view fileName)
139 {
140 _resultType = SAX_RESULT_ARRAY;
141 SAXParser parser;
142
143 AXASSERT(parser.init("UTF-8"), "The file format isn't UTF-8");
144 parser.setDelegator(this);
145
146 parser.parse(fileName);
147 return _rootArray;
148 }
149
150 void startElement(void* ctx, const char* name, const char** atts) override
151 {

Callers 1

Calls 3

setDelegatorMethod · 0.80
initMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected