MCPcopy Create free account
hub / github.com/ZDoom/Raze / FormatHelper

Method FormatHelper

source/common/utility/zstring.cpp:299–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299char* FString::FormatHelper (const char *cstr, void* data, int len)
300{
301 FString *str = (FString *)data;
302 size_t len1 = str->Len();
303 if (len1 + len > str->Data()->AllocLen || str->Chars == &NullString.Nothing[0])
304 {
305 str->ReallocBuffer((len1 + len + 127) & ~127);
306 }
307 StrCopy (str->Chars + len1, cstr, len);
308 str->Data()->Len = (unsigned int)(len1 + len);
309 return (char*)cstr;
310}
311
312FString FString::operator + (const FString &tail) const
313{

Callers

nothing calls this directly

Calls 3

LenMethod · 0.80
ReallocBufferMethod · 0.80
DataMethod · 0.45

Tested by

no test coverage detected