summaryrefslogtreecommitdiffstats
path: root/core/ustring.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Update snake_case splittingMarco Melorio2017-04-231-1/+3
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-1463/+1323
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Merge pull request #7830 from volzhs/str-format-3Rémi Verschelde2017-02-261-6/+9
|\ | | | | Fix zero padding formatting
| * Fix zero padding formattingvolzhs2017-02-181-6/+9
| |
* | -renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky2017-02-211-0/+32
|/ | | | | | modified files) -.pck and .zip exporting redone, seems to be working..
* Merge pull request #7002 from RandomShaper/vcs-friendlinessJuan Linietsky2017-01-251-1/+10
|\ | | | | Greater VCS friendliness