summaryrefslogtreecommitdiffstats
path: root/modules/regex/regex.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/regex/regex.h')
-rw-r--r--modules/regex/regex.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/regex/regex.h b/modules/regex/regex.h
index 13476d69de..cb8b0459ad 100644
--- a/modules/regex/regex.h
+++ b/modules/regex/regex.h
@@ -81,11 +81,17 @@ class RegEx : public RefCounted {
protected:
static void _bind_methods();
+#ifndef DISABLE_DEPRECATED
+ static Ref<RegEx> _create_from_string_bind_compat_95212(const String &p_pattern);
+ Error _compile_bind_compat_95212(const String &p_pattern);
+ static void _bind_compatibility_methods();
+#endif
+
public:
- static Ref<RegEx> create_from_string(const String &p_pattern);
+ static Ref<RegEx> create_from_string(const String &p_pattern, bool p_show_error = true);
void clear();
- Error compile(const String &p_pattern);
+ Error compile(const String &p_pattern, bool p_show_error = true);
Ref<RegExMatch> search(const String &p_subject, int p_offset = 0, int p_end = -1) const;
TypedArray<RegExMatch> search_all(const String &p_subject, int p_offset = 0, int p_end = -1) const;