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

Method clear

depends/tinyxml/tinystr.h:178–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 }
177
178 void clear ()
179 {
180 //Lee:
181 //The original was just too strange, though correct:
182 // TiXmlString().swap(*this);
183 //Instead use the quit & re-init:
184 quit();
185 init(0,0);
186 }
187
188 /* Function to reserve a big amount of data when we know we'll need it. Be aware that this
189 function DOES NOT clear the content of the TiXmlString if any exists.

Callers 15

clear_nameMethod · 0.45
clear_packageMethod · 0.45
clear_type_nameMethod · 0.45
clear_extendeeMethod · 0.45
clear_default_valueMethod · 0.45
clear_input_typeMethod · 0.45
clear_output_typeMethod · 0.45
clear_java_packageMethod · 0.45
clear_name_partMethod · 0.45

Calls 1

initFunction · 0.50

Tested by

no test coverage detected