summaryrefslogtreecommitdiff
path: root/core/string
AgeCommit message (Collapse)Author
2023-02-07Prepare for moving editor and classref translations to godot-editor-l10n repoHaoyu Qiu
- 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.
2023-02-06StringName: fix returning dangling data from char constructor.Lyuma
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.
2023-02-01Remove unused `has_slashes` from NodePathAaron Franke
2023-01-27Handle gltf binaryK. S. Ernest (iFire) Lee
[ 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.
2023-01-06Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde
Add PropertyInfo overload for GLOBAL_DEF
2023-01-05One Copyright Update to rule them allRémi Verschelde
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".
2022-12-20Add missing != operator to `StringName`Yuri Rubinsky
2022-12-16Fix String::word_wrap() for long wordsHaoyu Qiu
- 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>
2022-12-11Add PropertyInfo overload for GLOBAL_DEFkobewi
2022-11-24Improve logic for detecting and tracking extensionsBastiaan Olij
2022-11-20Double precision of `String.split_floats`Micky
2022-11-14Merge pull request #68229 from Mickeon/c-escape-hellRémi Verschelde
Remove "?" from String.c_escape()
2022-11-14Remove redundant Variant-types initializationsMarkus Sauermann
2022-11-14Merge pull request #68448 from bruvzg/font_imp_trRémi Verschelde
[Font] Add an import option to pre-render all glyphs required for the translation.
2022-11-10[Font] Add an import option to pre-render all glyphs required for the ↵bruvzg
translation.
2022-11-09fix a buffer overflow due to a misbehaving vcrt snprintf call on ↵gnumaru
String::num, at core/string/ustring.cpp
2022-11-04Add support for empty delimiter in String.splitkobewi
2022-11-03Remove "?" from String.c_escape()Micky
2022-10-31Merge pull request #67931 from bruvzg/locale_no_defRémi Verschelde
Do not auto add default script and country codes to the locale.
2022-10-31Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde
Unify usage of GLOBAL/EDITOR_GET
2022-10-27Do not auto add default script and country codes to the locale.bruvzg
2022-10-20Fix localize_path with custom protocol identifiersGilles Roudière
2022-10-18Unify usage of GLOBAL/EDITOR_GETkobewi
2022-10-15Fix big negative numbers printing incorrect decimals in num_realAaron Franke
2022-10-13Make String.simplify_path keep the protocol identifier for urlsGilles Roudière
2022-10-11Merge pull request #64268 from timothyqiu/is-finiteRémi Verschelde
Add `is_finite` method for checking built-in types
2022-10-09Fix simplify_path() breaking uid://kobewi
2022-10-08Add `is_finite` method for checking built-in typesHaoyu Qiu
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-03Merge pull request #64833 from MarcusElg/naninfprintingRémi Verschelde
Improve string formatting (%f and %v) for inf and nan
2022-09-28Fix MSVC warning C4706: assignment within conditional expressionRémi Verschelde
Part of #66537.
2022-09-26Style: Cleanup header guards for consistencyRémi Verschelde
Fix file names for {Static,Lightmap}RaycasterEmbree.
2022-09-17HarfBuzz: Update to version 5.2.0, add new Unicode 15 blocks and scripts.bruvzg
2022-09-01Merge pull request #64714 from Chaosus/string_remove_eraseRémi Verschelde
2022-08-30Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev
2022-08-29Rename String `plus_file` to `path_join`Aaron Franke
2022-08-25Improve string formatting for %f and %v for inf and nanMarcus Elg
2022-08-24Replace Array return types with TypedArray 3kobewi
2022-08-24Merge pull request #63728 from MarcusElg/%vRémi Verschelde
Add %v for formatting vectors
2022-08-23Add %v for formatting vectorsMarcus Elg
2022-08-22Improved performance of String repeat methodVolTer
2022-08-22Remove `String::erase` method declarationYuri Rubinsky
2022-08-18Fix undefined behavior in `String::operator+=(const String &)`kleonc
2022-08-08Add tests for empty/unnamed arguments to ClassDB, Variant, GDScriptYuri Sizov
2022-08-02Merge pull request #61315 from lawnjelly/variant_bucket_poolsRémi Verschelde
Variant memory pools
2022-08-02[TextServer] Implement ICU/UAX 31 based `is_valid_identifier` function.bruvzg
2022-08-01File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde
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.
2022-07-25Code quality: Fix header guards consistencyRémi Verschelde
Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
2022-07-07Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows ↵bruvzg
filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
2022-07-04Variant memory poolslawnjelly
Memory pools via PagedAllocator for Transform2D, Transform3D, Basis and AABB.