summaryrefslogtreecommitdiffstats
path: root/core/string/ustring.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows ↵bruvzg2022-07-071-148/+245
| | | | filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
* Fix parameter name for String.left and String.rightHaoyu Qiu2022-06-121-12/+12
|
* Fix `String.uri_encode` on WindowsHaoyu Qiu2022-06-031-9/+6
|
* Tweak 64-bit integer overflow message to mention that it's a signed typeHugo Locurcio2022-05-201-6/+6
|
* Create onready variables when dropping nodes and holding CtrlHaoyu Qiu2022-05-171-9/+26
|
* Add documentation comments for internationalization C++ macrosHugo Locurcio2022-05-121-3/+60
|
* Fix left aligned integer sign in string formattingHaoyu Qiu2022-05-011-15/+18
|
* Merge pull request #59979 from bruvzg/cpp_check2Rémi Verschelde2022-04-271-5/+0
|\
| * Fix more issues found by cppcheck.bruvzg2022-04-201-5/+0
| |
* | Implement Scene Unique Nodesreduz2022-04-251-1/+2
|/ | | | | | | | Implements https://github.com/godotengine/godot-proposals/issues/4096 * Nodes can be marked unique to the scene in the editor (or via code). * Unique nodes can be accessed via the **%** prefix at any point in the path. From that point in the path (depending on whether the scene of the path is), the unique node will be fetched. * Implementation is very optimal, as these nodes are cached.
* Unify TextServer built-in module and GDExtension code.bruvzg2022-03-171-0/+6
|
* Optimize String concatenation and copy functionsBartłomiej T. Listwon2022-02-241-45/+38
|
* Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-33/+13
|