summaryrefslogtreecommitdiff
path: root/core/string_builder.cpp
AgeCommit message (Collapse)Author
2018-01-20fixed crash with StringBuilderkarroffel
When using a newly created StringBuilder then the as_string() method will crash when trying to free an allocated 0-sized chunk of memory. When 0 bytes get allocated with memnew_arr then a NULL pointer gets returned. When trying to free that pointer the programm will crash.
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-09-01added StringBuilder classKarroffel
When doing large string concatenations the default push_back on the String class can slow down things quite a bit. This is because it has to constantly reallocate the memory and copy the contents. This StringBuilder class delays the concatenation until the size of the resulting string is known.