MCPcopy Create free account
hub / github.com/DFHack/dfhack / reserve

Method reserve

depends/tinyxml/tinystr.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37void TiXmlString::reserve (size_type cap)
38{
39 if (cap > capacity())
40 {
41 TiXmlString tmp;
42 tmp.init(length(), cap);
43 memcpy(tmp.start(), data(), length());
44 swap(tmp);
45 }
46}
47
48
49TiXmlString& TiXmlString::assign(const char* str, size_type len)

Callers 15

to_search_normalizedFunction · 0.80
DF2UTFFunction · 0.80
heap_take_snapshotFunction · 0.80
manageJobStartedEventFunction · 0.80
manageJobCompletedEventFunction · 0.80
manageConstructionEventFunction · 0.80
listNewlyCreatedMethod · 0.80
listBlocksMethod · 0.80
tinyxml.cppFile · 0.80
operator +Function · 0.80
ToCamelCaseFunction · 0.80
PaddedHexFunction · 0.80

Calls 2

initMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected