diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-09-27 11:31:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-27 11:31:56 +0200 |
| commit | 7a693df988c0b520d4a403cd66d5445ba6157179 (patch) | |
| tree | 11837daea88f8d6f379cf4abd94d5fb5788c68cb /include/core | |
| parent | 0fba89df67a7fe29092a717070d7c0bf3a7e0507 (diff) | |
| parent | bba8393af7880a653739befe031246e9d7ff8b9a (diff) | |
| download | redot-cpp-7a693df988c0b520d4a403cd66d5445ba6157179.tar.gz | |
Merge pull request #601 from colugomusic/fix-string-args-constness
Diffstat (limited to 'include/core')
| -rw-r--r-- | include/core/String.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/String.hpp b/include/core/String.hpp index 234cc5f..91400c7 100644 --- a/include/core/String.hpp +++ b/include/core/String.hpp @@ -105,14 +105,14 @@ public: CharString utf8() const; CharString ascii(bool p_extended = false) const; - bool begins_with(String &s) const; + bool begins_with(const String &s) const; bool begins_with_char_array(const char *p_char_array) const; PoolStringArray bigrams() const; String c_escape() const; String c_unescape() const; String capitalize() const; bool empty() const; - bool ends_with(String &text) const; + bool ends_with(const String &text) const; void erase(int position, int chars); int find(String what, int from = 0) const; int find_last(String what) const; |
