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

Function format

core/base/UTF8.cpp:42–49  ·  view source on GitHub ↗

ifndef AX_CORE_PROFILE

Source from the content-addressed store, hash-verified

40{
41//#ifndef AX_CORE_PROFILE
42std::string AX_DLL format(const char* format, ...)
43{
44 va_list args;
45 va_start(args, format);
46 auto ret = vformat(format, args);
47 va_end(args);
48 return ret;
49}
50/*--- This a C++ universal sprintf in the future.
51** @pitfall: The behavior of vsnprintf between VS2013 and VS2015/2017 is different
52** VS2013 or Unix-Like System will return -1 when buffer not enough, but VS2015/2017 will return the actural needed

Callers 15

getDescriptionMethod · 0.70
loopMethod · 0.70
delayMethod · 0.70
killMethod · 0.70
~benchmark_printerMethod · 0.70
LogItemClass · 0.70
getFontAtlasTTFMethod · 0.50
getFontAtlasFNTMethod · 0.50
getFontAtlasCharMapMethod · 0.50
reloadFontAtlasFNTMethod · 0.50
getDescriptionMethod · 0.50
descriptionMethod · 0.50

Calls 1

vformatFunction · 0.70

Tested by 15

addTestMethod · 0.40
onEnterMethod · 0.40
onEnterMethod · 0.40
updateMethod · 0.40
coroutineCallbackMethod · 0.40
onEnterMethod · 0.40
onWindowPositionedMethod · 0.40
onWindowResizedMethod · 0.40
onMouseMoveMethod · 0.40
onMouseScrollMethod · 0.40