summaryrefslogtreecommitdiffstats
path: root/core/string
Commit message (Collapse)AuthorAgeFilesLines
* Rename internal is_ascii_char to is_ascii_alphabet_charAaron Franke2024-04-202-2/+2
|
* Prefer family name in fonts' names tableHaoyu Qiu2024-04-062-4/+8
|
* Add context support for editor property name i18nHaoyu Qiu2024-03-312-3/+3
|
* [Core] Fix incorrect file sort methodA Thousand Ships2024-03-241-4/+3
|
* Merge pull request #89671 from alesliehughes/string_underrunRémi Verschelde2024-03-241-2/+2
|\ | | | | | | Stop possible underrun when processing a string
| * Stop possible underrun when processing a stringAlistair Leslie-Hughes2024-03-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | Calling String::utf8("Unicode String", -1) assumes that the string will be NULL terminated. However, the length parameter is always used to find the end of the string. So there is the chance the character before th start of the string is read. Making the pointer NULL in the case where it's out of range, still allows the following to work as expected while (ptrtmp != ptrtmp_limit && *ptrtmp) ....
* | Fix sorting of files/dirs in dialogsA Thousand Ships2024-03-202-39/+97
|/ | | | Sorts leading `_` before other characters except `.`.
* Enforce template syntax `typename` over `class`Thaddeus Crews2024-03-072-4/+4
|
* Fix String::begins_with when both strings are emptyMika Viskari2024-03-051-1/+5
|
* Merge pull request #87191 from Mickeon/autocompletion-TranslationServerRémi Verschelde2024-03-012-0/+27
|\ | | | | | | Add autocompletion for TranslationServer
| * Add autocompletion for TranslationServerMicky2024-02-292-0/+27
| |
* | Merge pull request #86222 from YeldhamDev/give_me_those_strings_babyRémi Verschelde2024-02-294-22/+84
|\ \ | | | | | | | | | Add option to add built-in strings in the POT generation
| * | Add option to add built-in strings in the POT generationMichael Alexsander2024-02-284-22/+84
| | |
* | | Merge pull request #81822 from nlupugla/nodepath-sliceRémi Verschelde2024-02-292-2/+33
|\ \ \ | |/ / |/| | | | | Add `NodePath::slice` method
| * | Added NodePath::slice method.nlupugla2023-12-132-2/+33
| | |
* | | Remove word duplicates in comments and strings, and fix casing and punctuationRobert Yevdokimov2024-02-231-1/+1
| | |
* | | Merge pull request #84906 from /fix-some-defvalsRémi Verschelde2024-02-233-7/+62
|\ \ \
| * | | Fix some DEFVALs to use the right typeRaul Santos2024-02-233-7/+62
| | | | | | | | | | | | | | | | | | | | - Use `StringName()` in DEFVAL for StringNames. - Use `Variant()` in DEFVAL for Variants.
* | | | Add Unicode support to `String.to_*_case()` methodsDanil Alexeev2024-02-223-20/+1347
|/ / /
* | | Merge pull request #88339 from Rubonnek/remove-hashunionRémi Verschelde2024-02-151-5/+0
|\ \ \ | | | | | | | | | | | | Remove `_HashUnion` from `StringName`
| * | | Remove _HashUnion from StringNameWilson E. Alvarez2024-02-141-5/+0
| | | |
* | | | Add const lvalue ref to core/* container parametersMuller-Castro2024-02-144-15/+15
|/ / /
* | | Link xid_start and xid_continue externally to prevent data duplication in binaryBartłomiej T. Listwon2024-02-111-2/+2
| | |
* | | Remove unnecessary `this->` expressionsA Thousand Ships2024-01-292-16/+16
| |/ |/|
* | [Pseudolocalization] Prevent out of bounds reads.bruvzg2024-01-051-5/+5
| |
* | Merge pull request #84462 from MewPurPur/optimize-humanizesizeRémi Verschelde2024-01-041-16/+31
|\ \ | | | | | | | | | Optimize `String.humanize_size()`
| * | Optimize String.humanize_size()MewPurPur2023-11-051-16/+31
| | |
* | | Merge pull request #84445 from Rubonnek/add-const-references-clang-tidyRémi Verschelde2024-01-041-2/+2
|\ \ \ | | | | | | | | | | | | Add const references detected by clang-tidy
| * | | Add const references detected by clang-tidyWilson E. Alvarez2023-12-161-2/+2
| | | |
* | | | Merge pull request #84375 from Rubonnek/use-const-referenceRémi Verschelde2024-01-042-8/+8
|\ \ \ \ | |/ / / |/| | | | | | | Add const references in `String` class
| * | | Add const references in String classWilson E. Alvarez2023-11-022-8/+8
| |/ /
* | | Merge pull request #70315 from RandomShaper/d3d12_mesaRémi Verschelde2023-12-121-5/+21
|\ \ \ | |_|/ |/| | Direct3D 12 Rendering Driver (Mesa NIR approach)
| * | Add 'u' format modifier for unsigned int/hexPedro J. Estébanez2023-12-011-5/+21
| | |
* | | Do not reload resources and send notification if locale is not changed.bruvzg2023-12-051-1/+5
|/ /
* | Add unsigned char cast ifdef.bruvzg2023-11-291-0/+20
| |
* | Fix remapped font reloading on locale change.bruvzg2023-11-131-4/+6
| |
* | Allow auto-generated node names in `PopupMenu::add_submenu_item`Yuri Sizov2023-11-092-2/+7
| |
* | [X11] Add fallback from desktop GL to GLES, suppress PRIME detector error spam.bruvzg2023-11-061-1/+1
|/
* Fix StringName leaks in VariantParserYuri Sizov2023-10-191-6/+4
|
* 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.
* [Core] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-113-7/+7
|
* Extract ScriptInstance to simplify includesYuri Sizov2023-09-061-1/+0
| | | | | | | | | This allows to include script_instance.h directly in the generated gdvirtual.gen.inc, and remove excessive includes from the codebase. This should also allow Resource to use GDVIRTUAL macros, which wasn't possible previously due to a circular dependency.
* [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-162-0/+18
|\ | | | | | | Add `String.reverse` method
| * Add `String.reverse` methodYuri Roubinski2023-06-212-0/+18
| |
* | Merge pull request #79980 from bruvzg/fix_test_str_errsRémi Verschelde2023-08-091-1/+1
|\ \ | | | | | | | | | [String] Fix Unicode parsing error message encoding and related JSON tests.
| * | [String] Fix Unicode parsing error message encoding and related JSON tests.bruvzg2023-07-281-1/+1
| | |
* | | Merge pull request #79654 from timothyqiu/hanYuri Sizov2023-08-011-3/+3
|\ \ \ | |/ / |/| | | | | Fix script name of Hant and Hans