diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-08-30 14:06:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 14:06:28 +0200 |
commit | 0bf3f7915780f30fab4db323e843b35bf9210548 (patch) | |
tree | 14390176bc1ad83f43af8d27684e3f841565ff6e /core/string/ustring.h | |
parent | ebe4f8d3a4a706c5eb1b7a8283883c63c131cad7 (diff) | |
parent | d4555ef5fbf706c43faccf5fdb3f023696197727 (diff) |
Merge pull request #63902 from dalexeev/string-cases
Diffstat (limited to 'core/string/ustring.h')
-rw-r--r-- | core/string/ustring.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/string/ustring.h b/core/string/ustring.h index 2463fc35f7..31de7cc464 100644 --- a/core/string/ustring.h +++ b/core/string/ustring.h @@ -196,6 +196,7 @@ class String { bool _base_is_subsequence_of(const String &p_string, bool case_insensitive) const; int _count(const String &p_string, int p_from, int p_to, bool p_case_insensitive) const; + String _camelcase_to_underscore() const; public: enum { @@ -335,7 +336,9 @@ public: static double to_float(const char32_t *p_str, const char32_t **r_end = nullptr); String capitalize() const; - String camelcase_to_underscore(bool lowercase = true) const; + String to_camel_case() const; + String to_pascal_case() const; + String to_snake_case() const; String get_with_code_lines() const; int get_slice_count(String p_splitter) const; |