MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / reserve

Method reserve

Libraries/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 14

normalizeEOLFunction · 0.45
decodeStringMethod · 0.45
valueToQuotedStringFunction · 0.45
valueToQuotedStringNFunction · 0.45
isMultineArrayMethod · 0.45
getMemberNamesMethod · 0.45
tinyxml.cppFile · 0.45
operator +Function · 0.45
ReadImageInfoFunction · 0.45
UTF16ToUTF8Function · 0.45
TokenizeFunction · 0.45
ReadResponseMethod · 0.45

Calls 6

capacityFunction · 0.50
lengthFunction · 0.50
dataFunction · 0.50
swapFunction · 0.50
initMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected