diff options
author | bosak <bosakmaw@gmail.com> | 2018-04-13 17:40:27 +0300 |
---|---|---|
committer | bosak <bosakmaw@gmail.com> | 2018-04-17 14:15:43 +0300 |
commit | 79ecdee49631c1571b6629005b73b0d9aa3dbc34 (patch) | |
tree | 37538bee3cc4d44ed95e6240e457dc7fe6d29c56 /core/ustring.h | |
parent | ab75fae5641675a2e9c8b38c3b40231a00bb428d (diff) | |
download | redot-engine-79ecdee49631c1571b6629005b73b0d9aa3dbc34.tar.gz |
add string trim_prefix trim_suffix lstrip and rstrip methods
Diffstat (limited to 'core/ustring.h')
-rw-r--r-- | core/ustring.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ustring.h b/core/ustring.h index 8023c9b95d..0ec1bd08e2 100644 --- a/core/ustring.h +++ b/core/ustring.h @@ -137,6 +137,8 @@ public: String insert(int p_at_pos, const String &p_string) const; String pad_decimals(int p_digits) const; String pad_zeros(int p_digits) const; + String trim_prefix(const String &p_prefix) const; + String trim_suffix(const String &p_suffix) const; String lpad(int min_length, const String &character = " ") const; String rpad(int min_length, const String &character = " ") const; String sprintf(const Array &values, bool *error) const; @@ -188,6 +190,8 @@ public: String dedent() const; String strip_edges(bool left = true, bool right = true) const; String strip_escapes() const; + String lstrip(const Vector<CharType> &p_chars) const; + String rstrip(const Vector<CharType> &p_chars) const; String get_extension() const; String get_basename() const; String plus_file(const String &p_file) const; |