123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef STRING_H
- #define STRING_H
- #include <godot/string.h>
- namespace godot {
- class NodePath;
- 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;
- void operator =(const String &s);
- 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);
- operator NodePath() const;
- const char *c_string() const;
- };
- String operator +(const char *a, const String& b);
- }
- #endif // STRING_H
|