From b4c6cc7d82d1fcdb3bed734c4e22c19e012c84df Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Mon, 6 May 2024 10:26:10 +0200 Subject: [Core] Add case-insensitive `String::containsn` --- core/string/ustring.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/string') diff --git a/core/string/ustring.h b/core/string/ustring.h index a020c7d372..9df2d56e80 100644 --- a/core/string/ustring.h +++ b/core/string/ustring.h @@ -429,6 +429,8 @@ public: _FORCE_INLINE_ bool is_empty() const { return length() == 0; } _FORCE_INLINE_ bool contains(const char *p_str) const { return find(p_str) != -1; } _FORCE_INLINE_ bool contains(const String &p_str) const { return find(p_str) != -1; } + _FORCE_INLINE_ bool containsn(const char *p_str) const { return findn(p_str) != -1; } + _FORCE_INLINE_ bool containsn(const String &p_str) const { return findn(p_str) != -1; } // path functions bool is_absolute_path() const; -- cgit v1.2.3