From 269d5704202d29d1f367abfb2df44fa19997fd18 Mon Sep 17 00:00:00 2001 From: George Marques Date: Fri, 10 Jun 2016 14:57:56 -0300 Subject: Add 'from' argument to Array.find() --- core/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/array.h') diff --git a/core/array.h b/core/array.h index 9472a6dd21..4fb22a4dcc 100644 --- a/core/array.h +++ b/core/array.h @@ -71,7 +71,7 @@ public: void sort_custom(Object *p_obj,const StringName& p_function); void invert(); - int find(const Variant& p_value) const; + int find(const Variant& p_value, int p_from=0) const; int find_last(const Variant& p_value) const; int count(const Variant& p_value) const; -- cgit v1.2.3 From 46b6bb9dc49a7b187a7bf6e19e5da732a5656e19 Mon Sep 17 00:00:00 2001 From: George Marques Date: Fri, 10 Jun 2016 17:28:09 -0300 Subject: Add 'rfind' function to Array --- core/array.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/array.h') diff --git a/core/array.h b/core/array.h index 4fb22a4dcc..096660653e 100644 --- a/core/array.h +++ b/core/array.h @@ -72,6 +72,7 @@ public: void invert(); int find(const Variant& p_value, int p_from=0) const; + int rfind(const Variant& p_value, int p_from=-1) const; int find_last(const Variant& p_value) const; int count(const Variant& p_value) const; -- cgit v1.2.3