summaryrefslogtreecommitdiffstats
path: root/core/string
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Fix String::word_wrap() for long wordsHaoyu Qiu2022-12-162-32/+0
|/ | | | | | | | | - Changes `TextServer.string_get_word_breaks()` - Returns pairs of boundary start and end offsets - Accepts `chars_per_line` to return line breaks - Removes `String::word_wrap()` Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
* Improve logic for detecting and tracking extensionsBastiaan Olij2022-11-242-0/+13
|
* Double precision of `String.split_floats`Micky2022-11-202-3/+3
|
* Merge pull request #68229 from Mickeon/c-escape-hellRémi Verschelde2022-11-141-2/+0
|\ | | | | | | Remove "?" from String.c_escape()
| * Remove "?" from String.c_escape()Micky2022-11-031-2/+0
| |
* | Remove redundant Variant-types initializationsMarkus Sauermann2022-11-141-1/+1
| |
* | Merge pull request #68448 from bruvzg/font_imp_trRémi Verschelde2022-11-146-0/+66
|\ \ | | | | | | | | | [Font] Add an import option to pre-render all glyphs required for the translation.
| * | [Font] Add an import option to pre-render all glyphs required for the ↵bruvzg2022-11-106-0/+66
| | | | | | | | | | | | translation.
* | | fix a buffer overflow due to a misbehaving vcrt snprintf call on ↵gnumaru2022-11-091-3/+13
|/ / | | | | | | String::num, at core/string/ustring.cpp
* / Add support for empty delimiter in String.splitkobewi2022-11-042-6/+19
|/
* Merge pull request #67931 from bruvzg/locale_no_defRémi Verschelde2022-10-312-17/+24
|\ | | | | | | Do not auto add default script and country codes to the locale.
| * Do not auto add default script and country codes to the locale.bruvzg2022-10-272-17/+24
| |
* | Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde2022-10-311-1/+1
|\ \ | |/ |/| | | Unify usage of GLOBAL/EDITOR_GET
| * Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
| |
* | Fix localize_path with custom protocol identifiersGilles Roudière2022-10-201-1/+1
|/
* Fix big negative numbers printing incorrect decimals in num_realAaron Franke2022-10-151-4/+5
|
* Make String.simplify_path keep the protocol identifier for urlsGilles Roudière2022-10-131-25/+36
|
* Merge pull request #64268 from timothyqiu/is-finiteRémi Verschelde2022-10-111-6/+6
|\ | | | | | | Add `is_finite` method for checking built-in types
| * Add `is_finite` method for checking built-in typesHaoyu Qiu2022-10-081-6/+6
| |
* | Fix simplify_path() breaking uid://kobewi2022-10-091-4/+7
|/
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-072-61/+58
| | | | change warnings=all to use /W4.
* Merge pull request #64833 from MarcusElg/naninfprintingRémi Verschelde2022-10-031-4/+12
|\ | | | | | | Improve string formatting (%f and %v) for inf and nan
| * Improve string formatting for %f and %v for inf and nanMarcus Elg2022-08-251-4/+12
| |
* | Fix MSVC warning C4706: assignment within conditional expressionRémi Verschelde2022-09-281-10/+15
| | | | | | | | Part of #66537.