Merge pull request #105928 from Ivorforce/cowdata-reserve-capacity
Core: Add `reserve` function to `Array`, `Vector`, and `String`
This commit is contained in:
commit
62933b683e
11 changed files with 441 additions and 201 deletions
|
|
@ -1253,7 +1253,7 @@ Vector<float> String::split_floats_mk(const Vector<String> &p_splitters, bool p_
|
|||
|
||||
String buffer = *this;
|
||||
while (true) {
|
||||
int idx;
|
||||
int idx = 0;
|
||||
int end = findmk(p_splitters, from, &idx);
|
||||
int spl_len = 1;
|
||||
if (end < 0) {
|
||||
|
|
@ -1308,7 +1308,7 @@ Vector<int> String::split_ints_mk(const Vector<String> &p_splitters, bool p_allo
|
|||
int len = length();
|
||||
|
||||
while (true) {
|
||||
int idx;
|
||||
int idx = 0;
|
||||
int end = findmk(p_splitters, from, &idx);
|
||||
int spl_len = 1;
|
||||
if (end < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue