summaryrefslogtreecommitdiffstats
path: root/modules/mono/glue/Managed/Files/StringExtensions.cs
Commit message (Collapse)AuthorAgeFilesLines
* Mono/C#: Re-structure API solution and GodotTools post-build targetIgnacio Etcheverry2019-12-281-1046/+0
| | | | | | | | | | | | | | | | | | | | | | Previously we had a placeholder solution called 'Managed' to benefit from tooling while editing the a part of the C# API. Later the bindings generator would create the final 'GodotSharp' solution including these C# files as well as the auto-generated C# API. Now we replaced the 'Managed' solution with the final 'GodotSharp' solution which is no longer auto-generated, and the bindings generator only takes care of the auto-generated C# API. This has the following benefits: - It's less confusing as there will no longer be two versions of the same file (the original and a generated copy of it). Now there's only one. - We no longer need placeholder for auto-generated API classes, like Node or Resource. We used them for benefiting from tooling. Now we can just use the auto-generated API itself. - Simplifies the build system and bindings generator. Removed lot of code that is not needed anymore. Also added a post-build target to the GodotTools project to copy the output to the data dir. This makes it easy to iterate when doing changes to GodotTools, as SCons doesn't have to be executed anymore just to copy these new files.
* Mono/C#: Fix project export and fix FindLast/GetFile regressionIgnacio Etcheverry2019-12-171-17/+21
| | | | | | | | | | | | | d09193b08ae8fdb082bee6ffd3828eb19fd45ce6 introduced a regression in StringExtensions.FindLast. StringExtensions.GetFile was also affected as it relies on FindLast. This in turn broke the project exporter as it uses GetFile. The cause of the regression is that now FindLast is calling LastIndexOf with 'startIndex: 0'. This should be 'startIndex: str.Length - 1' instead. Also fixed another regression in the project exporter: de7c2ad21b4cc2d889a5aeda64ead962036d2aa4 moved 'GodotTools/GodotSharpExport.cs' to 'GodotTools/Export/ExportPlugin.cs' and in doing so accidently reverted the changes from commit e439581198de92e63661c4fe71108cb59cc2d999.
* Fix string Find methods having reversed case sensitivityAaron Franke2019-12-121-7/+7
|
* Added count method to StringChaosus2019-07-231-0/+60
|
* Re-write mono module editor code in C#Ignacio Etcheverry2019-07-051-4/+5
| | | | | | | | Make the build system automatically build the C# Api assemblies to be shipped with the editor. Make the editor, editor player and debug export templates use Api assemblies built with debug symbols. Always run MSBuild to build the editor tools and Api assemblies when building Godot. Several bugs fixed related to assembly hot reloading and restoring state. Fix StringExtensions internal calls not being registered correctly, resulting in MissingMethodException.
* Remove trailing whitespaceRémi Verschelde2018-11-201-4/+4
| | | | | With `sed -i $(rg -l '[[:blank:]]*$' -g'!thirdparty') -e 's/[[:blank:]]*$//g'` (+ manual revert of some thirdparty code under `platform/android`).
* Move modules/mono/glue/cs_files to modules/mono/glue/Managed/FilesIgnacio Etcheverry2018-09-121-0/+981
Added dummy MSBuild project and solution to get tooling help when editing these files.