summaryrefslogtreecommitdiff
path: root/core/ustring.h
AgeCommit message (Collapse)Author
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
2018-08-06fix out of buffer read when copying non-null terminated stringsMarcin Zawiejski
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
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.
2018-07-24removed redundant strlen calculation from String::substrIbrahn Sahir
2018-05-23Merge pull request #14715 from Krakean/string_add_rsplit2Max Hilbrunner
Added rsplit() method to String class
2018-04-22Merge pull request #18176 from nikibobi/string-trimGeorge Marques
Add string trim_prefix, trim_suffix, lstrip and rstrip methods
2018-04-17add string trim_prefix trim_suffix lstrip and rstrip methodsbosak
2018-04-12Revert "Unify http- and percent- encode/decode"Pedro J. Estébanez
This reverts commit b76ee30917c63211ac9e94a21bebbddf518d169f.
2018-03-27Unify http- and percent- encode/decodePedro J. Estébanez
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.
2018-02-25Mono: Better versioning and gracefully unloading of Godot API assembliesIgnacio Etcheverry
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
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.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-01-01Merge pull request #14973 from poke1024/docs-word-selectionNoshyaar
Double-click word selection for RichTextLabel (i.e. docs)
2017-12-28Double-click word selection for RichTextLabel (i.e. docs)Bernhard Liebl
2017-12-27Merge pull request #14744 from poke1024/stringname-compareJuan Linietsky
Avoid string allocations in AlphCompare
2017-12-17Avoid string allocations in AlphCompareBernhard Liebl
2017-12-16Merge pull request #14576 from poke1024/stringsRémi Verschelde
Some performance tweaking of string handling
2017-12-15Added rsplit() for String classDmitry Koteroff
Docs updated
2017-12-15Added third argument for String.split() function (see issue #14349)Dmitry Koteroff
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
2017-12-15Some performance tweaking of string handlingpoke1024
2017-11-21Allow configuring iOS exportRuslan Mustakov
- 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).
2017-11-01Added String::dedent() to remove text indentationZher Huei Lee
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.
2017-10-30Fix get_node() and $ autocompletion when using single quotesUnknown
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-16Synchronize parameter names in definition and declarationTwistedTwigleg
Fixes #10244.
2017-05-12Fix natural sorting order in EditorFileDialog, FileDialog and ↵Damian Day
EditorFileSystemDirectory Make EditorFileDialog, FileDialog and EditorFileSystemDirectory alphanumerical sorting more natural Added a new method 'naturalnocasecmp_to' and comparator 'NaturalNoCaseComparator' to String. Fixes #8712.
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
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
2017-02-21-renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky
modified files) -.pck and .zip exporting redone, seems to be working..
2017-01-25Merge pull request #7002 from RandomShaper/vcs-friendlinessJuan Linietsky
Greater VCS friendliness
2017-01-16Improve .tscn VCSPedro J. Estébanez
Serialize dictionaries adding newlines between key-value pairs Serialize group lists also with newlines in between Serialize string properties escaping only " and \ (needed for a good diff experience with built-in scripts and shaders) Bonus: Make AnimationPlayer serialize its blend times always sorted so their order is predictable in the .tscn file. This PR is back-compat; won't break the load of existing files.
2017-01-14Merge pull request #7010 from AlexHolly/format-string2Juan Linietsky
advanced string format
2017-01-14rename String.extension() -> String.get_extension() / String.basename() -> ↵Juan Linietsky
String.get_basename()
2017-01-08Variant INT and REAL are now 64 bits (other types remain at 32)Juan Linietsky
2017-01-01Welcome in 2017, dear changelog reader!Rémi Verschelde
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
2016-11-01advanced string formatAlexHolly
2016-10-20added implementation of is_valid_ip_address()Ariel Manzur
2016-09-30Fix typo for word_wrapvolzhs
2016-06-23Add sha256_buffer() function to StringGeorge Marques
2016-06-19Add similarity comparison to StringGeorge Marques
Uses the Sorensen-Dice coefficient to calculate similarity. This also adds String.bigrams() as a convenience function needed by the comparison.
2016-06-19Remove CHARTYPE_16BITS unused checksJ08nY
fix #5263
2016-06-17Add sha256 to String and File/FileAccess.Bojidar Marinov
Probably does #4166
2016-06-12Add 'is_subsequence_of' function to StringGeorge Marques
2016-05-17-Added configuration warning system for nodesJuan Linietsky
-Added a new "add" and "instance" buttons for scene tree -Added a vformat() function to ease translation work
2016-05-11Added possibility to strip left and right to strip_edges (#4594)Mattias Cibien
2016-05-03Modified editor strings to be translatable in the futureJuan Linietsky
2016-03-09remove trailing whitespaceHubert Jarosz
2016-02-17Fixed String::camelcase_to_underscore() so it works in all cases. Fixes PR #1650Julian Murgia - StraToN
2016-01-10added a new function to escape properly json, fixes #3282Juan Linietsky
2016-01-03-Replaced tinyjpg for jpgd (public domain), fixes progressive encoded jpgs ↵Juan Linietsky
and speeds up. Closes #2040 -Removed support of loading BitMap as image, now it must be load as a pnm, also closes #2040