summaryrefslogtreecommitdiffstats
path: root/src/core/String.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace bindgins to work with extensionsGeorge Marques2021-09-271-522/+0
|
* Merge pull request #601 from colugomusic/fix-string-args-constnessRémi Verschelde2021-09-271-2/+2
|\
| * Fix argument constness in String::begins_with, String::ends_withColugo2021-08-221-2/+2
| |
* | Add license headers to all source and header filesHugo Locurcio2021-08-021-0/+30
|/ | | | | | This is consistent with the core Godot source code, and ensures the license isn't detached from its original code when individual files are distributed.
* edited according to clang-formatDhruvMaroo2021-06-011-2/+2
|
* used godot_string_new_copy to copyDhruvMaroo2021-05-311-2/+2
|
* removed _deleted class memberDhruvMaroo2021-05-311-6/+1
|
* added class member, safety check in the destructorDhruvMaroo2021-05-311-5/+8
|
* changed spaces to tabsDhruvMaroo2021-05-301-2/+2
|
* added move assignment operatorDhruvMaroo2021-05-301-0/+6
|
* added mover constructorDhruvMaroo2021-05-301-0/+5
|
* Update clang-format to version 11George Marques2021-02-281-2/+0
| | | | | | | This is taken from the Godot repository, so formatting is similar. This updates the style rules as well. Also fix style in files to conform with this version.
* Merge branch 'master' into container_leaksMarc2021-01-311-3/+6
|\
| * Merge branch 'master' into masterMarc2021-01-311-139/+43
| |\
| * | Fix compilation warnings about unused varsMika Pi2020-02-231-4/+4
| | |
* | | Fix container and string leaksMarc Gilleron2021-01-071-27/+20
| |/ |/| | | | | | | | | | | Some functions return a new instance of such containers, but instead we made a copy of them, without taking ownership of the original created by the function. Now we use a specific constructor taking ownership on the godot_* struct.
* | Merge pull request #441 from TerraAr/masterMarc2020-08-161-1/+2
|\ \ | | | | | | Create an operator
| * | Updated operatorTerraAr2020-08-151-2/+2
| | | | | | | | | I've updated the operator that I had created to use the private constructor of the class.
| * | Fixed operatorTerraAr2020-08-141-1/+2
| | | | | | | | | Fixed String::operator+=(const wchar_t). The problem was that a temporary variable don't have an address.
| * | Created operator.TerraAr2020-08-141-1/+1
| |/ | | | | Created String::operator+=(const wchar_t), that was mark as Todo.
* / Fixed memory leak with String objectsDaniel Rakos2020-08-151-137/+37
|/ | | | | | | The member _godot_string should never be straight out overwritten ever without first destroying the underlying string object's memory. This change solves the problem through the introduction of a new private constructor to create String objects with a pre-existing godot_string handle.
* Fix String::operator+ memory leaksheepandshepherd2019-10-051-2/+2
|
* Merge pull request #296 from lupoDharkael/missingThomas Herzog2019-08-051-0/+30
|\ | | | | Add missing class methods
| * Add missing class methodslupoDharkael2019-08-051-0/+30
| |
* | Synced with Godot 3.1 stableBastiaan Olij2019-04-071-1/+1
|/
* Implementing clang-format and applying it to all classesBastiaan Olij2018-11-241-4/+3
|
* Add missing String::(r)find(n) form argumentbruvzg2018-11-181-10/+23
| | | | Add missing String::(*)casecmp_to functions
* Nativescript 1.1karroffel2018-11-071-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implemented instance binding data usage This commit changes the way C++ wrapper classes work. Previously, wrapper classes were merely wrapper *interfaces*. They used the `this` pointer to store the actual foreign Godot Object. With the NativeScript 1.1 extension it is now possible to have low-overhead language binding data attached to Objects. The C++ bindings use that feature to implement *proper* wrappers and enable regular C++ inheritance usage that way. Some things might still be buggy and untested, but the C++ SimpleDemo works with those changes. new and free change, custom free will crash engine, be wary fix exporting of non-object types fix free() crash with custom resources added type tags and safe object casting fix global type registration order fix cast_to changed build system to be more self contained updated .gitignore use typeid() for type tags now fix indentation in bindings generator remove accidentally added files fix gitignore Fixed up registering tool and updated godot_headers Fix crash when calling String::split/split_floats Was casting to the wrong object type. Also adds parse_ints function to String with the same logic Better warning/error macros Change gitignore so we get our gen folders New documentation based on nativescript 1.1 Fixed GODOT_SUBCLASS macro Preventing crash when function returned null ptr Adds needed include <typeinfo> Solves this issue #168 due to not having the include of typeinfo Fix compile error of 'WARN_PRINT' and 'ERR_PRINT'. cannot pass non-trivial object of type 'godot::String' to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs] update vector3::distance_to Remove godot_api.json as its now in the godot_headers submodule (api.json)
* Fix const for += operator in stringTimothy Werquin2018-05-151-1/+1
|
* Fix String const operators.Timothy Werquin2018-05-151-8/+8
| | | | Added const to various operators.
* adds variadic printing function, makes String.format custom placeholder workdanielytics2018-03-071-1/+10
|
* String and math fixesMarc Gilleron2018-01-231-0/+49
| | | | | | | | - Added missing static String constructors - Implemented String operator for math types - Added XYZ and YXZ euler angles methods - Fixed wrong det checks in Basis - Fixed operator Quat in Basis
* caller-defined entry methods and string API updatekarroffel2018-01-111-23/+47
|
* Added alloc_c_stringBastiaan Olij2017-11-251-0/+16
|
* Update bindings to use new Api extensions and rename Rect3->AABBBastiaanOlij2017-11-231-2/+10
|
* Implemented using api structBastiaan Olij2017-10-231-77/+78
|
* Fixes #41Ramesh Ravone2017-10-031-1/+1
|
* String bindings updated (at most)Ramesh Ravone2017-10-031-55/+348
|
* updated bindingsRamesh Ravone2017-10-031-1/+1
|
* updated to use the new NativeScript and GDNative interfaceKarroffel2017-07-241-1/+1
|
* String operator_plus fixRamesh Ravone2017-07-221-2/+2
|
* updated core to new GDNative interfaceKarroffel2017-06-181-6/+6
|
* rewrote binding generator in pythonKarroffel2017-05-121-0/+140