summaryrefslogtreecommitdiffstats
path: root/core/string
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Don't warn when using TTRN() in a language without pluralsHaoyu Qiu2023-02-111-5/+0
| |
* | Merge pull request #72547 from MewPurPur/string-split-fixRémi Verschelde2023-02-091-0/+8
|\ \ | | | | | | | | | Fix String.split() with empty string and delimeter
| * | Fix String.split() with empty string and delimeterVolTer2023-02-021-0/+8
| | |
* | | Prepare for moving editor and classref translations to godot-editor-l10n repoHaoyu Qiu2023-02-072-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Separate editor interface and property translations. - Add property translation in TranslationServer. - The split and merge of the POT/PO/Makefiles and extract scripts is done directly in godot-editor-l10n, the files will be removed in the next commit. - Remove the hardcoded "to_include" lists from the SCsub, we'll only commit the files which are ready to inclue.
* | | StringName: fix returning dangling data from char constructor.Lyuma2023-02-061-33/+26
| | | | | | | | | | | | | | | | | | Fixes a copy paste mistake in the `StringName(const char *,bool)` constructor, to match the same form as the other two constrcutors. This fixes a case where this constructor can return a dangling pointer and cause use-after-free.
* | | Remove unused `has_slashes` from NodePathAaron Franke2023-02-012-6/+0
|/ /
* / Handle gltf binaryK. S. Ernest (iFire) Lee2023-01-272-1/+20
|/ | | | | | | | | | | | [ 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.
* Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde2023-01-061-1/+1
|\ | | | | Add PropertyInfo overload for GLOBAL_DEF
| * Add PropertyInfo overload for GLOBAL_DEFkobewi2022-12-111-1/+1
| |
* | One Copyright Update to rule them allRémi Verschelde2023-01-0521-609/+609
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* | Add missing != operator to `StringName`Yuri Rubinsky2022-12-202-0/+5
| |