summaryrefslogtreecommitdiffstats
path: root/core/string
Commit message (Collapse)AuthorAgeFilesLines
* Fix `url_decode` with mixed percent-encoding/Unicode strings. Treat Unix ↵bruvzg2021-04-301-9/+10
| | | | drive names as UTF-8 encoded.
* Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde2021-04-271-4/+4
| | | | | | | | We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
* Remove uses of `auto` for better readability and online code reviewsHugo Locurcio2021-04-262-11/+11
| | | | | | | | The current code style guidelines forbid the use of `auto`. Some uses of `auto` are still present, such as in UWP code (which can't be currently tested) and macros (where removing `auto` isn't easy).
* NodePath: Remove unimplemented `get_parent()` methodRémi Verschelde2021-04-231-2/+0
| | | | Fixes #48100.
* Merge pull request #47512 from DanielKriz/bugfix/uri_encodeFabio Alessandrelli2021-04-101-2/+2
|\ | | | | fix wrong encoding format in uri_encode
| * fix wrong encoding in uri_encodeDaniel Kříž2021-04-101-2/+2
| |
* | Merge pull request #46991 from madmiraal/rename-invert-reverseRémi Verschelde2021-04-011-1/+1
|\ \ | |/ |/| Rename Array.invert() to Array.reverse()
| * Rename Array.invert() to Array.reverse()Marcel Admiraal2021-03-211-1/+1
| | | | | | | | | | Does the same internally for List and Vector<>, which includes all PackedArray types.
* | Merge pull request #45234 from madmiraal/rename-phashtranslationRémi Verschelde2021-03-233-23/+23
|\ \ | | | | | | Rename PHashTranslation to OptimizedTranslation
| * | Rename PHashTranslation to OptimizedTranslationMarcel Admiraal2021-03-203-23/+23
| |/
* | Merge pull request #34587 from ↵Rémi Verschelde2021-03-221-1/+1
|\ \ | |/ |/| | | | | YeldhamDev/translation_resource_notification_removal Remove translation change notification when setting the locale of a Translation resource
| * Make translation change notification when setting the locale of a ↵Michael Alexsander2020-11-081-1/+1
| | | | | | | | Translation resource only happen when loaded in the server
* | Fixes small typos and grammar correctionAnshul7sp12021-03-123-4/+4
| |
* | Merge pull request #45545 from abaire/relaxes_gltf_name_sanitizationRémi Verschelde2021-03-092-0/+16
|\ \ | | | | | | Relaxes node name sanitization in gltf documents.
| * | Relaxes Node naming constraints in glTF documents to match the Editor.abaire2021-02-242-0/+16
| | |
* | | Merge pull request #45914 from HenryWConklin/45841-xml-entitiesRémi Verschelde2021-02-241-16/+46
|\ \ \ | | | | | | | | Add support for numeric XML entities to XMLParser
| * | | Add support for numeric XML entities to XMLParserHenry Conklin2021-02-141-16/+46
| |/ / | | | | | | | | | | | | | | | | | | * Add support for decimal numeric entities to String::xml_unescape * Add more error checks to String::xml_unescape * Refactor XMLParser to use String::xml_unescape instead of an internal implementation
* | | Merge pull request #46195 from AndyBarcia/FixLanguageCodesIncosistenciesRémi Verschelde2021-02-241-3/+16
|\ \ \ | | | | | | | | Fix some inconsistent ISO-639 language codes
| * | | Fixes some inconsistent ISO-639 language codesandybarcia2021-02-181-3/+16
| |/ / | | | | | | | | | And also adds tmz (Central Atlas Tamazight) as a language
* / / Reorganize Project Settingsreduz2021-02-181-6/+6
|/ / | | | | | | | | | | | | -Advanced Settings toggle also hides advanced properties when disabled -Simplified Advanced Bar (errors were just plain redundant) -Reorganized rendering quality settings. -Reorganized miscelaneous settings for clean up.
* | Make String::ends_with don't use String::rfindkleonc2021-02-091-13/+20
| |
* | Unify URI encoding/decoding and add to C#Aaron Franke2021-01-282-64/+6
| | | | | | | | http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
* | Make hex_to_int and bin_to_int handle the prefix automaticallyAaron Franke2021-01-282-15/+11
| | | | | | Also add BinToInt to C#
* | Merge pull request #45489 from aaronfranke/coreRémi Verschelde2021-01-271-3/+4
|\ \ | | | | | | Type consistencies in core
| * | Type consistencies in coreAaron Franke2021-01-261-3/+4
| | |
* | | Renamed String.ord_at to unicode_atYuri Roubinsky2021-01-262-7/+7
|/ /
* | Fix String.ends_with() for empty string argumentsVedat Günel2021-01-191-1/+6
| |
* | Update copyright statements to 2021Rémi Verschelde2021-01-0118-36/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* | Rename empty() to is_empty()Marcel Admiraal2020-12-286-39/+39
| |
* | Fix the `String::get_base_dir()` logic to properly check for top level ↵Fredia Huya-Kouadio2020-12-231-1/+4
| | | | | | | | directories on Windows.
* | Static analyzer fixes:bruvzg2020-12-091-1/+1
| | | | | | | | | | | | Removes unused code in OS. Fixes return types. Fixes few typos.
* | [Complex Text Layouts] Refactor Font class, default themes and controls to ↵bruvzg2020-11-262-0/+23
| | | | | | | | | | | | | | | | use Text Server interface. Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
* | [Complex Text Layouts] Implement TextServer interface. Implement Fallback ↵bruvzg2020-11-262-6/+6
| | | | | | | | TextServer.
* | Remove empty lines around braces with the formatting scriptAaron Franke2020-11-163-3/+0
| |
* | Create Variant built-in functions.reduz2020-11-101-0/+20
| | | | | | | | | | | | | | -Moved Expression to use this, removed its own. -Eventually GDScript/VisualScript/GDNative need to be moved to this. -Given the JSON functions were hacked-in, removed them and created a new JSONParser class -Made sure these functions appear properly in documentation, since they will be removed from GDScript
* | Variant: Sync docs with new constructors, fixups after #43403Rémi Verschelde2020-11-091-1/+1
|/ | | | | Change DocData comparators for MethodDoc and ArgumentDoc to get a better ordering of constructors.
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-0719-0/+10672
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code