summaryrefslogtreecommitdiffstats
path: root/core/ustring.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-04-08 19:18:03 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-04-08 19:18:51 -0300
commita20235aeb02c0c9e5ce58c0236f88a19865d571c (patch)
tree9232009f86a08dedf4f6f709a8f1fd18a5df8322 /core/ustring.h
parent9ab17b664dbecad4bf773048c422c66320bd45eb (diff)
downloadredot-engine-a20235aeb02c0c9e5ce58c0236f88a19865d571c.tar.gz
Add ability to edit editor feature profiles
Allows enabling/disabling parts of the editor and storing/loading profiles for that.
Diffstat (limited to 'core/ustring.h')
-rw-r--r--core/ustring.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/ustring.h b/core/ustring.h
index 9288c1526e..85103057df 100644
--- a/core/ustring.h
+++ b/core/ustring.h
@@ -335,6 +335,7 @@ public:
bool is_valid_hex_number(bool p_with_prefix) const;
bool is_valid_html_color() const;
bool is_valid_ip_address() const;
+ bool is_valid_filename() const;
/**
* The constructors must not depend on other overloads
@@ -406,11 +407,18 @@ _FORCE_INLINE_ bool is_str_less(const L *l_ptr, const R *r_ptr) {
//tool translate
#ifdef TOOLS_ENABLED
+//gets parsed
String TTR(const String &);
+//use for c strings
+#define TTRC(m_value) m_value
+//use to avoid parsing (for use later with C strings)
+#define TTRGET(m_value) TTR(m_value)
#else
#define TTR(m_val) (String())
+#define TTRCDEF(m_value) (m_value)
+#define TTRC(m_value) (m_value)
#endif