| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Performs a single allocation, only when any instances are found, and
avoids concatenations and other unnecessary conversions.
(cherry picked from commit cbaec62b0335bc70c7cf7d55651678591bafafd2)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(cherry picked from commit e8542b06acca3c1bdeee4b528411771f0819f084)
Credits:
Co-authored-by: Skogi <skogi.b@gmail.com>
Co-authored-by: Spartan322 <Megacake1234@gmail.com>
Co-authored-by: swashberry <swashdev@pm.me>
Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se>
Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com>
Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com>
Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com>
Co-authored-by: radenthefolf <radenthefolf@gmail.com>
Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com>
Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com>
Co-authored-by: decryptedchaos <nixgod@gmail.com>
Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com>
Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com>
Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com>
Co-authored-by: Mister Puma <MisterPuma80@gmail.com>
Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com>
Co-authored-by: SingleError <isaaconeoneone@gmail.com>
Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
|
|
|
|
| |
(cherry picked from commit f483c3aafa5f3cfb1ab763ab4eb077aac74e88d6)
|
|
|
|
|
|
|
| |
* Replaces `find(...) != -1` with `contains` for `String`
* Replaces `find(...) == -1` with `!contains` for `String`
* Replaces `find(...) != -1` with `has` for containers
* Replaces `find(...) == -1` with `!has` for containers
|
|
|
|
| |
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
|
| |
|
| |
|
|\
| |
| |
| | |
Stop possible underrun when processing a string
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Calling String::utf8("Unicode String", -1) assumes that the string will be NULL terminated.
However, the length parameter is always used to find the end of the string. So there is the
chance the character before th start of the string is read.
Making the pointer NULL in the case where it's out of range, still allows the following
to work as expected
while (ptrtmp != ptrtmp_limit && *ptrtmp)
....
|
|/
|
|
| |
Sorts leading `_` before other characters except `.`.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
Optimize `String.humanize_size()`
|
| | |
|
|\ \
| | |
| | |
| | | |
Add const references detected by clang-tidy
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | | |
Add const references in `String` class
|
| |/ |
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
| |
Since char/wchar_t can be either signed or unsigned, its conversion to uint32_t leads to different values depending on platform.
In particular, the same string represented as char* (Latin-1; StringName direct construction) or uint32_t (UTF-8; constructed
via String) previously resulted in different hashes.
|
| |
|
| |
|
|\
| |
| |
| | |
Add `String.reverse` method
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/|
| | |
Don't append non unicode scalar values on the string, instead use the unicode replacement char
|
| |
| |
| |
| |
| |
| |
| |
| | |
update tests
also fix utf8 and ascii parse functions to use the replacement char
created a _replacement_char const inside the string
|
|\ \
| | |
| | |
| | | |
Add `naturalcasecmp_to` function to `String`
|
| | |
| | |
| | |
| | | |
Functions as a complement to `naturalnocasecmp_to`
|
|\ \ \
| | | |
| | | | |
Reimplement `String.erase()` as immutable method
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
Use `String.repeat()` to optimize several String methods
|
| | | | |
|
| | | | |
|
| |/ /
|/| |
| | |
| | | |
Adding 10k nodes is almost twice as fast.
|
| | | |
|
| |/
|/| |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
[ Ignore and Warn | Extract Textures (default) | Optimize Loading Embedded as Basisu ]
Enable compressed mip maps from Basis Universal for faster compressions.
Increase the quality of Basis to avoid corruption.
To keep compatibility use the first mip of the previous internal Godot format.
Because texture names may have invalid filename characters, adds String::validate_filename to sanitize filenames for import pipeline use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.
It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).
We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).
Also fixed "cf." Frenchism - it's meant as "refer to / see".
|