MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / reserve

Method reserve

cpp/tinyxml/tinystr.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

LoadFileMethod · 0.45
tinyxml.cppFile · 0.45
operator +Function · 0.45
StringStreamToStringFunction · 0.45
UrlEncodeMethod · 0.45

Calls 2

startMethod · 0.80
initMethod · 0.45

Tested by 3

StringStreamToStringFunction · 0.36
UrlEncodeMethod · 0.36