summaryrefslogtreecommitdiffstats
path: root/core/ustring.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #20772 from dragmz/string_copy_oob_read_fixRémi Verschelde2018-08-141-6/+3
|\ \ | | | | | | Fix out of buffer read when copying from a non-null-terminated string
| * | fix out of buffer read when copying non-null terminated stringsMarcin Zawiejski2018-08-061-6/+3
| | |
* | | removed some surplus null appends that got typoed in ↵Ibrahn Sahir2018-08-071-2/+0
|/ / | | | | | | | | | | | | 0e29f7974b59e4440cf02e1388fb9d8ab2b5c5fd A couple of null appends got typoed to append a '0' character instead. Removed them here since String already takes care of the null terminator for us.
* / Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam2018-07-261-9/+19
|/ | | | | | | | | | | | | | | | | | | | | | | This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
* Fix format ignores case in placeholderAlexander Holland2018-07-251-3/+3
|
* removed redundant strlen calculation from String::substrIbrahn Sahir2018-07-241-6/+15
|
* Fix upper/lower case convertion for characters >= 0x80Marcelo Fernandez2018-07-221-4/+4
|
* reworked ustring.rsplit to fix behaviour.Ibrahn Sahir2018-07-171-22/+18
| | | | | | Previous problems include failure to remove the splitter from the last element found and a possible infinite loop dealing with multi-character splitter strings.
* Merge pull request #14715 from Krakean/string_add_rsplit2Max Hilbrunner2018-05-231-0/+40
|\ | | | | Added rsplit() method to String class
| * Added rsplit() for String classDmitry Koteroff2017-12-151-0/+40
| | | | | | | | Docs updated
* | Merge pull request #17316 from ShyRed/significantdigitsJuan Linietsky2018-05-071-2/+2
|\ \ | | | | | | Adjust decimal precision
| * | Adjust decimal precisionShyRed2018-03-061-2/+2
| | | | | | | | | | | | Increase the number of significant digits when converting from double to string.
* | | fix API string pathPaul Joannon2018-04-301-3/+3
| | |
* | | Merge pull request #18176 from nikibobi/string-trimGeorge Marques2018-04-221-0/+52
|\ \ \ | | | | | | | | Add string trim_prefix, trim_suffix, lstrip and rstrip methods
| * | | add string trim_prefix trim_suffix lstrip and rstrip methodsbosak2018-04-171-0/+52
| | | |
* | | | Fix some Coverity warnings in String APIRémi Verschelde2018-04-181-19/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - StringName::StringName(const StringName &p_name) Non-static class member _data is not initialized in this constructor nor in any functions that it calls. - StringName::_Data() Non-static class member idx is not initialized in this constructor nor in any functions that it calls. - String::num_uint64(...) This less-than-zero comparison of an unsigned value is never true. n % base < 0UL. - String::hex_to_int(...) and String::hex_to_int64(...) Execution cannot reach this statement (deadcode)
* | | | Revert "Unify http- and percent- encode/decode"Pedro J. Estébanez2018-04-121-2/+64
|/ / / | | | | | | | | | This reverts commit b76ee30917c63211ac9e94a21bebbddf518d169f.
* | | Fix buggy percent-encodingPedro J. Estébanez2018-04-051-4/+4
| | | | | | | | | | | | Fixes #17875.
* | | Unify http- and percent- encode/decodePedro J. Estébanez2018-03-271-64/+2
|/ / | | | | | | | | There was a percent-prefixed version, which was exposed, and a http-prefixed version which was not (only to GDNative). This commit keeps the percent-prefixed versions, but with the http-prefixed implementations.
* | Mono: Better versioning and gracefully unloading of Godot API assembliesIgnacio Etcheverry2018-02-251-0/+30
| |
* | improves portability with some compilersAriel Manzur2018-01-181-1/+1
| |
* | Fix typos in code and docs with codespellRémi Verschelde2018-01-181-5/+5
| | | | | | | | Using v1.11.0 from https://github.com/lucasdemarchi/codespell
* | Filled tutorial field in most relevent classes.Juan Linietsky2018-01-151-0/+3
| | | | | | | | Added tutorial display in doc.
* | Fix String::itos/String::num_int64(INT64_MIN) output.bruvzg2018-01-131-4/+3
| |
* | Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | | | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* | Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | | | | | Happy new year to the wonderful Godot community!
* | Merge pull request #14973 from poke1024/docs-word-selectionNoshyaar2018-01-011-0/+34
|\ \ | | | | | | Double-click word selection for RichTextLabel (i.e. docs)
| * | Double-click word selection for RichTextLabel (i.e. docs)Bernhard Liebl2017-12-281-0/+34
| | |
* | | Merge pull request #14744 from poke1024/stringname-compareJuan Linietsky2017-12-271-58/+3
|\ \ \ | |/ / |/| | Avoid string allocations in AlphCompare
| * | Avoid string allocations in AlphCompareBernhard Liebl2017-12-171-58/+3
| | |
* | | Merge pull request #14576 from poke1024/stringsRémi Verschelde2017-12-161-25/+129
|\ \ \ | |_|/ |/| | Some performance tweaking of string handling
| * | Some performance tweaking of string handlingpoke10242017-12-151-25/+129
| |/
* / Added third argument for String.split() function (see issue #14349)Dmitry Koteroff2017-12-151-3/+16
|/ | | | | | | | Remove negative limit, leave only positive and make it reflect behaviour like in Python Also limit renamed to maxsplit to match Python one. Also docs updated. Fix indent
* Improve slang, especially in user-visible partsUnknown2017-12-051-2/+0
|
* Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky2017-11-251-2/+2
| | | | | | wrong function, leading to unnecesary copy on writes and reduced performance.
* Allow configuring iOS exportRuslan Mustakov2017-11-211-0/+11
| | | | | | | | | | | | | | | | | - EditorExportPlugin's _export_begin accepts all the arguments related to the current export (is_debug, path, flags). - EditorExportPlugin API is extended with methods allowing to configure iOS export: add_ios_framework, add_ios_plist_content, add_ios_linker_flags, add_ios_bundle_file. - iOS export template now contains Godot as a static library so that it can be linked with third-party Frameworks and GDNative static libraries. - Adds method to DirAccess for recursive copying of a directory. - Fixes iOS export to work with Xcode 9 (released recently).
* Fixed a bug where capitalize didn't work with camelCase namesWill Nations2017-11-141-1/+1
|
* Added String::dedent() to remove text indentationZher Huei Lee2017-11-011-0/+42
| | | | | | | This functions similarly to Python's textwrap.dedent() It's also been applied to doc_data.cpp to remove extra whitespace while parsing the XML.
* Fix get_node() and $ autocompletion when using single quotesUnknown2017-10-301-0/+22
|
* Fixed a bunch of typos, including an error code.Ross Hadden2017-09-211-6/+6
|
* Fix use of unitialized variablesHein-Pieter van Braam2017-09-021-10/+10
| | | | The second in my quest to make Godot 3.x compile with -Werror on GCC7
* Fix signed and unsigned comparisonsHein-Pieter van Braam2017-09-011-1/+1
| | | | The first in my quest to make Godot 3.x compile with -Werror on GCC7
* Dead code tells no talesRémi Verschelde2017-08-271-333/+0
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Synchronize parameter names in definition and declarationTwistedTwigleg2017-08-161-3/+3
| | | | Fixes #10244.
* Fix crash with String copy from with NULL string parametergeequlim2017-06-251-0/+12
|
* Fixed a string class bugdumitru-stama2017-06-191-1/+1
|
* NaturalSort: strings start with . treated differentlyPoommetee Ketson2017-05-291-0/+12
|
* Fix natural sorting order in EditorFileDialog, FileDialog and ↵Damian Day2017-05-121-3/+52
| | | | | | | | | | EditorFileSystemDirectory Make EditorFileDialog, FileDialog and EditorFileSystemDirectory alphanumerical sorting more natural Added a new method 'naturalnocasecmp_to' and comparator 'NaturalNoCaseComparator' to String. Fixes #8712.
* Move core thirdparty files to thirdparty/{minizip,misc}Rémi Verschelde2017-04-281-2/+3
|