summaryrefslogtreecommitdiffstats
path: root/core/string
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Style: Cleanup header guards for consistencyRémi Verschelde2022-09-261-2/+2
| | | | | | | | Fix file names for {Static,Lightmap}RaycasterEmbree.
* | HarfBuzz: Update to version 5.2.0, add new Unicode 15 blocks and scripts.bruvzg2022-09-171-0/+2
| |
* | Merge pull request #64714 from Chaosus/string_remove_eraseRémi Verschelde2022-09-011-2/+0
|\ \
| * | Remove `String::erase` method declarationYuri Rubinsky2022-08-221-2/+0
| | |
* | | Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev2022-08-302-39/+51
| | |
* | | Rename String `plus_file` to `path_join`Aaron Franke2022-08-292-2/+2
| |/ |/|
* | Replace Array return types with TypedArray 3kobewi2022-08-242-5/+5
| |
* | 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
|/
* Add tests for empty/unnamed arguments to ClassDB, Variant, GDScriptYuri Sizov2022-08-081-1/+1
|
* Merge pull request #61315 from lawnjelly/variant_bucket_poolsRémi Verschelde2022-08-022-7/+4
|\ | | | | Variant memory pools
| * Variant memory poolslawnjelly2022-07-042-7/+4
| | | | | | | | Memory pools via PagedAllocator for Transform2D, Transform3D, Basis and AABB.
* | [TextServer] Implement ICU/UAX 31 based `is_valid_identifier` function.bruvzg2022-08-022-0/+1476
| |
* | File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde2022-08-012-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-1/+2
| | | | | | | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* | Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows ↵bruvzg2022-07-072-150/+250
|/ | | | filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
* implement bone renamer in importerSilc Renew2022-07-012-0/+17
|
* Adding print_rich for printing with BBCodeVoylin2022-06-292-3/+104
|
* Fix parameter name for String.left and String.rightHaoyu Qiu2022-06-122-14/+14
|
* Fix `String.uri_encode` on WindowsHaoyu Qiu2022-06-031-9/+6
|
* Add a new HashSet templatereduz2022-05-201-2/+2
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Tweak 64-bit integer overflow message to mention that it's a signed typeHugo Locurcio2022-05-201-6/+6
|