diff --git a/gdnative_api.json b/gdnative_api.json index 250de63..5f6b65e 100644 --- a/gdnative_api.json +++ b/gdnative_api.json @@ -5907,6 +5907,17 @@ ["const pandemonium_string *", "p_self"] ] }, + { + "name": "pandemonium_string_strip_edges", + "return_type": "pandemonium_string", + "arguments": [ + ["const pandemonium_string *", "p_self"], + ["pandemonium_bool", "p_left"], + ["pandemonium_bool", "p_right"] + ] + }, + + { "name": "pandemonium_string_strip_escapes", "return_type": "pandemonium_string", diff --git a/include/gdn/string.h b/include/gdn/string.h index c63dbb5..1e284fa 100644 --- a/include/gdn/string.h +++ b/include/gdn/string.h @@ -310,7 +310,8 @@ pandemonium_string GDAPI pandemonium_string_right(const pandemonium_string *p_se pandemonium_string GDAPI pandemonium_string_indent(const pandemonium_string *p_self, const pandemonium_string *p_prefix); pandemonium_string GDAPI pandemonium_string_dedent(const pandemonium_string *p_self); -pandemonium_string GDAPI pandemonium_string_strip_edges(const pandemonium_string *p_self, pandemonium_bool p_left, pandemonium_bool p_right); // left, right variant //String strip_edges(bool left = true, bool right = true) const; +// left, right variant //String strip_edges(bool left = true, bool right = true) const; +pandemonium_string GDAPI pandemonium_string_strip_edges(const pandemonium_string *p_self, pandemonium_bool p_left, pandemonium_bool p_right); pandemonium_string GDAPI pandemonium_string_strip_escapes(const pandemonium_string *p_self); pandemonium_string GDAPI pandemonium_string_lstrip(const pandemonium_string *p_self, const pandemonium_string *p_chars);