summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/String.hpp
diff options
context:
space:
mode:
authorKarroffel <therzog@mail.de>2017-03-06 08:49:24 +0100
committerKarroffel <therzog@mail.de>2017-03-06 08:49:24 +0100
commit632c953e4211eeddf9932918a26f0d2101c3fc38 (patch)
tree34f11acb2246c6ddc0d49e436daafb2cfc22069d /include/godot_cpp/core/String.hpp
parent92e1f553ec7b6c609a8503a0d9bbf21f236a9805 (diff)
downloadredot-cpp-632c953e4211eeddf9932918a26f0d2101c3fc38.tar.gz
buuunch of stuff
Diffstat (limited to 'include/godot_cpp/core/String.hpp')
-rw-r--r--include/godot_cpp/core/String.hpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/include/godot_cpp/core/String.hpp b/include/godot_cpp/core/String.hpp
new file mode 100644
index 0000000..5a99964
--- /dev/null
+++ b/include/godot_cpp/core/String.hpp
@@ -0,0 +1,62 @@
+#ifndef STRING_H
+#define STRING_H
+
+#include <godot/godot_string.h>
+
+namespace godot {
+
+class String
+{
+ godot_string _godot_string;
+public:
+ String();
+
+ String(const char *contents);
+
+ String(const wchar_t *contents);
+
+ String(const wchar_t c);
+
+ String(const String& other);
+
+ ~String();
+
+
+ String substr(int p_from,int p_chars) const;
+
+
+ wchar_t &operator [](const int idx);
+
+ wchar_t operator [](const int idx) const;
+
+ int length() const;
+
+ bool operator ==(const String &s);
+
+ bool operator !=(const String &s);
+
+ String operator +(const String &s);
+
+ void operator +=(const String &s);
+
+ void operator +=(const wchar_t c);
+
+ bool operator <(const String &s);
+
+ bool operator <=(const String &s);
+
+ bool operator >(const String &s);
+
+ bool operator >=(const String &s);
+
+ const wchar_t *c_string();
+
+};
+
+
+
+}
+
+
+
+#endif // STRING_H