From 435b0bb31e7f4b9cc55ecdcb55082a1c12eed1bc Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 31 May 2023 15:10:38 +0200 Subject: [PATCH] Added missing method to the api json. --- gdnative_api.json | 11 +++++++++++ include/gdn/string.h | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) 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);