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

Method getStringFromFile

core/platform/FileUtils.cpp:546–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546std::string FileUtils::getStringFromFile(std::string_view filename) const
547{
548 std::string s;
549 getContents(filename, &s);
550 return s;
551}
552#ifndef AX_CORE_PROFILE
553void FileUtils::getStringFromFile(std::string_view path, std::function<void(std::string)> callback) const
554{

Callers 15

parseConfigFileMethod · 0.80
loadProgramMethod · 0.80
operator()Method · 0.80
LoadObjFunction · 0.80
loadJsonMethod · 0.80
readFileMethod · 0.80
FileUtilsTests.cppFile · 0.80
loadMethod · 0.80
reloadMethod · 0.80
initMethod · 0.80
LabelTTFEmojiMethod · 0.80

Calls 3

getContentsFunction · 0.85
getInstanceFunction · 0.85

Tested by 6

loadMethod · 0.64
reloadMethod · 0.64
initMethod · 0.64
LabelTTFEmojiMethod · 0.64
onExitMethod · 0.64