MCPcopy Create free account
hub / github.com/AmelieHeinrich/Termina / StringFormat

Function StringFormat

Sources/ThirdParty/Jolt/Core/StringTools.cpp:11–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9JPH_SUPPRESS_WARNINGS_STD_BEGIN
10#include <cstdarg>
11JPH_SUPPRESS_WARNINGS_STD_END
12
13JPH_NAMESPACE_BEGIN
14
15String StringFormat(const char *inFMT, ...)
16{
17 char buffer[1024];
18
19 // Format the string
20 va_list list;
21 va_start(list, inFMT);
22 vsnprintf(buffer, sizeof(buffer), inFMT, list);
23 va_end(list);
24
25 return String(buffer);
26}
27
28void StringReplace(String &ioString, const string_view &inSearch, const string_view &inReplace)
29{

Callers 15

DumpShapeMethod · 0.85
HRFailedFunction · 0.85
CreateComputeShaderMethod · 0.85
VKFailedFunction · 0.85
DumpChartMethod · 0.85
SplitIslandMethod · 0.85
FlushFunction · 0.85
ConvexHullShapeMethod · 0.85
HeightFieldShapeMethod · 0.85
MeshShapeMethod · 0.85
UpdatePrepareMethod · 0.85
UpdateFinalizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected