summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/core/String.hpp
blob: 5a99964521244f178604395c58c7afd806b5406e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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