summaryrefslogtreecommitdiffstats
path: root/core/string/ustring.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@fd4c29a189e53a1e085df5b9b9a05cac9351b3efSpartan3222024-11-191-20/+20
|\
| * Use `(r)find_char` instead of `(r)find` for single charactersA Thousand Ships2024-11-171-20/+20
| |
* | Merge commit godotengine/godot@0f5f3bc9546b46b2029fc8896dc859697f1eab97Spartan3222024-11-111-1/+14
|\|
| * Merge pull request #98278 from a-johnston/fuzzy-search-rebaseThaddeus Crews2024-11-101-1/+14
| |\ | | | | | | | | | Add fuzzy string matching to quick open search
| | * Add fuzzy string matching to quick open searchAdam Johnston2024-10-281-1/+14
| | | | | | | | | | | | Co-authored-by: sam <samsface@gmail.com>
* | | Merge commit godotengine/godot@c6c464cf9ae56e8b68620af65125dd980d0e8122Spartan3222024-11-021-7/+21
|\| |
| * | Merge pull request #47502 from KoBeWi/add_0Thaddeus Crews2024-10-311-7/+21
| |\ \ | | | | | | | | | | | | Always add decimal when converting float to string
| | * | Always add decimal when printing floatkobewi2024-10-231-7/+21
| | | |
* | | | Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-1/+12
|\| | |
| * | | Add `Object` support for `String.format`Mansur Isaev2024-10-291-1/+12
| | |/ | |/|
* | | Merge pull request #818 from Spartan322/fixup/copyright-headersGeorge L. Albany2024-10-271-2/+2
|\ \ \ | | | | | | | | Fix copyright headers referring to Godot
| * | | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| | | |
* | | | Merge commit godotengine/godot@61accf060515416da07d913580419fd8c8490f7bSpartan3222024-10-261-0/+4
|\ \ \ \ | |/ / / |/| / / | |/ /
| * / Add checks for valid base in String::num_int64, uint64().yeojunh2024-10-201-0/+4
| |/ | | | | | | | | | | - Ensure String::num_int64, uint64 returns an empty string for bases less than 2 or greater than 36. - Added corresponding test cases to verify the behavior. - Error messages are printed when invalid bases are encountered. These messages are suppressed in the test output.
* / Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Parse fragment from URLHaoyu Qiu2024-09-271-4/+21
|
* Fix script editor wrongly replaces and quotes non-ASCII lettersHaoyu Qiu2024-09-231-1/+24
|
* Add `String.is_valid_unicode_identifier()`Haoyu Qiu2024-08-271-2/+22
| | | | | | | - Adds `is_valid_unicode_identifier()` - Adds `is_valid_ascii_identifier()` - Deprecates `is_valid_identifier()` - Renames `validate_identifier()` to `validate_ascii_identifier()`
* Merge pull request #92548 from AThousandShips/string_cleaningRémi Verschelde2024-08-261-29/+48
|\ | | | | | | [Core] Optimize some `String` methods
| * [Core] Optimize some `String` methodsA Thousand Ships2024-08-151-29/+48
| | | | | | | | Avoids unnecessary COW checks by using pointers directly.
* | Merge pull request #92546 from AThousandShips/faster_replaceRémi Verschelde2024-08-191-60/+157
|\ \ | | | | | | | | | [Core] Optimize `String::replace` methods
| * | [Core] Optimize `String::replace` methodsA Thousand Ships2024-08-151-60/+157
| |/ | | | | | | | | Performs a single allocation, only when any instances are found, and avoids concatenations and other unnecessary conversions.
* | Merge pull request #95184 from jsjtxietian/shader-include-relativeRémi Verschelde2024-08-171-4/+1
|\ \ | | | | | | | | | Fix `String::simplify_path` handling of relative paths to parent dir (`../`), fixes relative shader includes
| * | Fix error when use relative #include in .gdshader / .gdshaderinc filejsjtxietian2024-08-081-4/+1
| |/
* | Merge pull request #95613 from timothyqiu/split-emptyRémi Verschelde2024-08-161-2/+8
|\ \ | | | | | | | | | Fix `split_floats` behavior when spaces are used as separators
| * | Fix split_floats behavior when spaces are used as separatorsHaoyu Qiu2024-08-161-2/+8
| | |
* | | Merge pull request #95549 from timothyqiu/split-translation-serverRémi Verschelde2024-08-161-1/+1
|\ \ \ | |/ / |/| | | | | Split `TranslationServer` into its own file
| * | Split TranslationServer into its own fileHaoyu Qiu2024-08-151-1/+1
| |/
* | Merge pull request #94558 from stuartcarnie/sgc/sprintf_allocationsRémi Verschelde2024-08-161-9/+14
|\ \ | | | | | | | | | Reduce allocations in `String::sprintf`
| * | use operator += (char32_t)Stuart Carnie2024-07-251-9/+14
| |/ | | | | | | | | | | This prevents an allocation of a new string for every character. Additionally, use some static constants for padding and sign characters
* | Merge pull request #92555 from AThousandShips/insert_improveRémi Verschelde2024-08-161-6/+16
|\ \ | | | | | | | | | [Core] Optimize `String::insert`
| * | [Core] Optimize `String::insert`A Thousand Ships2024-08-151-6/+16
| |/
* / [Core] Optimize `String::join`A Thousand Ships2024-08-151-4/+34
|/ | | | Avoid reallocation by pre-computing size
* Replace `find` with `contains/has` where applicableA Thousand Ships2024-05-081-1/+1
| | | | | | | * Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers
* Add const char * overloads to String classWilson E. Alvarez2024-05-071-8/+426
| | | | Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* Prefer family name in fonts' names tableHaoyu Qiu2024-04-061-3/+7
|
* [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-201-39/+88
|/ | | | Sorts leading `_` before other characters except `.`.
* Enforce template syntax `typename` over `class`Thaddeus Crews2024-03-071-1/+1
|
* Fix String::begins_with when both strings are emptyMika Viskari2024-03-051-1/+5
|
* Add option to add built-in strings in the POT generationMichael Alexsander2024-02-281-14/+7
|
* Remove word duplicates in comments and strings, and fix casing and punctuationRobert Yevdokimov2024-02-231-1/+1
|
* Add Unicode support to `String.to_*_case()` methodsDanil Alexeev2024-02-221-5/+5
|
* Add const lvalue ref to core/* container parametersMuller-Castro2024-02-141-1/+1
|
* Remove unnecessary `this->` expressionsA Thousand Ships2024-01-291-14/+14
|
* 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