summaryrefslogtreecommitdiffstats
path: root/core/string/ustring.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add 'u' format modifier for unsigned int/hexPedro J. Estébanez2023-12-011-5/+21
|
* Add unsigned char cast ifdef.bruvzg2023-11-291-0/+20
|
* Allow auto-generated node names in `PopupMenu::add_submenu_item`Yuri Sizov2023-11-091-1/+6
|
* 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.
* [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-161-0/+17
|\ | | | | | | Add `String.reverse` method
| * Add `String.reverse` methodYuri Roubinski2023-06-211-0/+17
| |
* | [String] Fix Unicode parsing error message encoding and related JSON tests.bruvzg2023-07-281-1/+1
| |
* | Fix erroneous pad_zeros warningMewPurPur2023-07-081-4/+5
| |
* | Merge pull request #74760 from lassade/unicode-err-uses-replacement-charRémi Verschelde2023-06-221-31/+50
|\ \ | |/ |/| | | 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-121-31/+50
| | | | | | | | | | | | | | | | update tests also fix utf8 and ascii parse functions to use the replacement char created a _replacement_char const inside the string
* | Merge pull request #76735 from AThousandShips/natural_cmpRémi Verschelde2023-05-091-48/+110
|\ \ | | | | | | | | | Add `naturalcasecmp_to` function to `String`
| * | Add `naturalcasecmp_to` function to `String`Ninni Pipping2023-05-071-48/+110
| | | | | | | | | | | | Functions as a complement to `naturalnocasecmp_to`
* | | Merge pull request #75510 from SilicDev/string_eraseClay John2023-05-051-0/+6
|\ \ \ | | | | | | | | Reimplement `String.erase()` as immutable method
| * | | Reimplement String.eraseSilicDev2023-05-041-0/+6
| | | |
* | | | Merge pull request #72288 from MewPurPur/use-string-repeatClay John2023-05-051-24/+17
|\ \ \ \ | |_|/ / |/| | | Use `String.repeat()` to optimize several String methods
| * | | Use String.repeat() in more placesVolTer2023-05-011-24/+17
| | | |
* | | | Fix misuses of error macrosDanil Alexeev2023-04-181-1/+1
| | | |
* | | | Optimize Node::add_child validationJuan Linietsky2023-04-071-6/+73
| |/ / |/| | | | | | | | Adding 10k nodes is almost twice as fast.
* | | add `hex_decode()` to `String`bendn2023-04-051-0/+29
| | |
* | | Add GDScript `to_wchar_buffer` and `get_string_from_wchar` functions.bruvzg2023-03-211-0/+8
| |/ |/|
* | Fix String.split() with empty string and delimeterVolTer2023-02-021-0/+8
| |
* | Handle gltf binaryK. S. Ernest (iFire) Lee2023-01-271-1/+19
|/ | | | | | | | | | | | [ 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.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | 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".
* Fix String::word_wrap() for long wordsHaoyu Qiu2022-12-161-31/+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-241-0/+12
|
* Double precision of `String.split_floats`Micky2022-11-201-2/+2
|
* 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
| |
* | 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-041-4/+17
|/
* 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
|/
* 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.
* | Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev2022-08-301-38/+47
| |
* | Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-1/+1
|/
* Merge pull request #63728 from MarcusElg/%vRémi Verschelde2022-08-241-3/+72
|\ | | | | Add %v for formatting vectors
| * Add %v for formatting vectorsMarcus Elg2022-08-231-3/+72
| |
* | Improved performance of String repeat methodVolTer2022-08-221-12/+13
| |
* | Fix undefined behavior in `String::operator+=(const String &)`kleonc2022-08-181-2/+4
|/
* File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde2022-08-011-1/+9
| | | | | | | | | | | | This was removed in #63481, and we confirmed that it's better like this, but we add back the possibility to strip CR as an option, to optionally restore the previous behavior. For performance this is done directly in `String::parse_utf8`. Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR. Supersedes #63717.