summaryrefslogtreecommitdiffstats
path: root/core/string
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary `this->` expressionsA Thousand Ships2024-01-292-16/+16
|
* [Pseudolocalization] Prevent out of bounds reads.bruvzg2024-01-051-5/+5
|
* Merge pull request #84462 from MewPurPur/optimize-humanizesizeRémi Verschelde2024-01-041-16/+31
|\ | | | | | | Optimize `String.humanize_size()`
| * Optimize String.humanize_size()MewPurPur2023-11-051-16/+31
| |
* | Merge pull request #84445 from Rubonnek/add-const-references-clang-tidyRémi Verschelde2024-01-041-2/+2
|\ \ | | | | | | | | | Add const references detected by clang-tidy
| * | Add const references detected by clang-tidyWilson E. Alvarez2023-12-161-2/+2
| | |
* | | Merge pull request #84375 from Rubonnek/use-const-referenceRémi Verschelde2024-01-042-8/+8
|\ \ \ | |/ / |/| | | | | Add const references in `String` class
| * | Add const references in String classWilson E. Alvarez2023-11-022-8/+8
| |/
* | Merge pull request #70315 from RandomShaper/d3d12_mesaRémi Verschelde2023-12-121-5/+21
|\ \ | | | | | | Direct3D 12 Rendering Driver (Mesa NIR approach)
| * | Add 'u' format modifier for unsigned int/hexPedro J. Estébanez2023-12-011-5/+21
| | |
* | | Do not reload resources and send notification if locale is not changed.bruvzg2023-12-051-1/+5
|/ /
* | Add unsigned char cast ifdef.bruvzg2023-11-291-0/+20
| |
* | Fix remapped font reloading on locale change.bruvzg2023-11-131-4/+6
| |
* | Allow auto-generated node names in `PopupMenu::add_submenu_item`Yuri Sizov2023-11-092-2/+7
| |
* | [X11] Add fallback from desktop GL to GLES, suppress PRIME detector error spam.bruvzg2023-11-061-1/+1
|/
* Fix StringName leaks in VariantParserYuri Sizov2023-10-191-6/+4
|
* Do not replace starting digit with underscore when making identifierAlfonso J. Ramos2023-10-041-11/+13
|
* Fix platform-dependent hashing for char* and wchar_t*Jan Haller2023-09-241-6/+14
| | | | | | 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.
* [Core] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-113-7/+7
|
* Extract ScriptInstance to simplify includesYuri Sizov2023-09-061-1/+0
| | | | | | | | | This allows to include script_instance.h directly in the generated gdvirtual.gen.inc, and remove excessive includes from the codebase. This should also allow Resource to use GDVIRTUAL macros, which wasn't possible previously due to a circular dependency.
* [String] Fix string conversion for -0.0 float values.bruvzg2023-09-051-5/+5
|
* Optimize String.left() and String.right()MewPurPur2023-08-201-2/+6
|
* Merge pull request #78529 from Chaosus/string_reverseRémi Verschelde2023-08-162-0/+18
|\ | | | | | | Add `String.reverse` method
| * Add `String.reverse` methodYuri Roubinski2023-06-212-0/+18
| |
* | Merge pull request #79980 from bruvzg/fix_test_str_errsRémi Verschelde2023-08-091-1/+1
|\ \ | | | | | | | | | [String] Fix Unicode parsing error message encoding and related JSON tests.
| * | [String] Fix Unicode parsing error message encoding and related JSON tests.bruvzg2023-07-281-1/+1
| | |
* | | Merge pull request #79654 from timothyqiu/hanYuri Sizov2023-08-011-3/+3
|\ \ \ | |/ / |/| | | | | Fix script name of Hant and Hans
| * | Fix script name of Hant and HansHaoyu Qiu2023-07-201-3/+3
| | |
* | | Merge pull request #78747 from RandomShaper/fix_trans_threadingYuri Sizov2023-07-262-0/+11
|\ \ \ | |/ / |/| | | | | Support loading of translations on threads
| * | Support loading of translations on threadsPedro J. Estébanez2023-06-292-0/+11
| | |
* | | Merge pull request #79017 from bruvzg/esc_fixYuri Sizov2023-07-141-0/+2
|\ \ \ | | | | | | | | | | | | [Terminal Output] Reset text properties after `print_rich`.
| * | | [Terminal Output] Reset text properties after `print_rich`.bruvzg2023-07-041-0/+2
| |/ /
* / / Fix erroneous pad_zeros warningMewPurPur2023-07-081-4/+5
|/ /
* | Merge pull request #74760 from lassade/unicode-err-uses-replacement-charRémi Verschelde2023-06-222-31/+51
|\ \ | |/ |/| | | Don't append non unicode scalar values on the string, instead use the unicode replacement char
| * use the unicode replacement char on errorFelipe Jorge2023-03-122-31/+51
| | | | | | | | | | | | | | | | update tests also fix utf8 and ascii parse functions to use the replacement char created a _replacement_char const inside the string
* | Fix `StringName` comparisonNinni Pipping2023-05-181-0/+9
| |
* | Merge pull request #76735 from AThousandShips/natural_cmpRémi Verschelde2023-05-092-48/+111
|\ \ | | | | | | | | | Add `naturalcasecmp_to` function to `String`
| * | Add `naturalcasecmp_to` function to `String`Ninni Pipping2023-05-072-48/+111
| | | | | | | | | | | | Functions as a complement to `naturalnocasecmp_to`
* | | Merge pull request #76540 from reduz/redo-remote-filesystemRémi Verschelde2023-05-082-5/+11
|\ \ \ | | | | | | | | | | | | Redo how the remote filesystem works
| * | | Redo how the remote filesystem worksJuan Linietsky2023-05-082-5/+11
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Instead of reading files over the network, the new version uses a local file cache and only updates files when it changes. The original remote filesystem was created 14 years ago, when ethernet was faster than hard drives or even flash. Also, mobile devices have a very small amount of storage. Nowadays, this is no longer the case so the approach is changed to using a persistent cache in the target device. Co-authored-by: m4gr3d
* | | Merge pull request #75510 from SilicDev/string_eraseClay John2023-05-052-0/+7
|\ \ \ | | | | | | | | Reimplement `String.erase()` as immutable method
| * | | Reimplement String.eraseSilicDev2023-05-042-0/+7
| | | |
* | | | Merge pull request #72288 from MewPurPur/use-string-repeatClay John2023-05-052-36/+22
|\ \ \ \ | |_|/ / |/| | | Use `String.repeat()` to optimize several String methods
| * | | Use String.repeat() in more placesVolTer2023-05-012-36/+22
| | | |
* | | | Fix misuses of error macrosDanil Alexeev2023-04-181-1/+1
| | | |
* | | | Optimize Object::get_class_nameJuan Linietsky2023-04-082-0/+10
| | | | | | | | | | | | | | | | | | | | * Run the static function once per class instead of one per instance. * Saves some memory in Object derived classes.
* | | | Optimize Node::add_child validationJuan Linietsky2023-04-072-7/+75
| |/ / |/| | | | | | | | Adding 10k nodes is almost twice as fast.
* | | add `hex_decode()` to `String`bendn2023-04-052-0/+31
| | |
* | | Add GDScript `to_wchar_buffer` and `get_string_from_wchar` functions.bruvzg2023-03-212-0/+9
| |/ |/|
* | Improve layout direction/locale automatic selection.bruvzg2023-02-221-1/+19
| |