25 #ifndef SFML_STRING_HPP
26 #define SFML_STRING_HPP
31 #include <SFML/System/Export.hpp>
50 typedef std::basic_string<Uint32>::iterator
Iterator;
76 String(
char ansiChar,
const std::locale& locale = std::locale());
104 String(
const char* ansiString,
const std::locale& locale = std::locale());
116 String(
const std::string& ansiString,
const std::locale& locale = std::locale());
124 String(
const wchar_t* wideString);
132 String(
const std::wstring& wideString);
140 String(
const Uint32* utf32String);
148 String(
const std::basic_string<Uint32>& utf32String);
173 operator std::string()
const;
188 operator std::wstring()
const;
205 std::string toAnsiString(
const std::locale& locale = std::locale())
const;
218 std::wstring toWideString()
const;
251 Uint32 operator [](std::size_t index)
const;
264 Uint32& operator [](std::size_t index);
284 std::size_t getSize()
const;
294 bool isEmpty()
const;
306 void erase(std::size_t position, std::size_t count = 1);
318 void insert(std::size_t position,
const String& str);
332 std::size_t find(
const String& str, std::size_t start = 0)
const;
345 const Uint32* getData()
const;
397 friend SFML_SYSTEM_API
bool operator ==(
const String& left,
const String& right);
398 friend SFML_SYSTEM_API
bool operator <(
const String& left,
const String& right);
403 std::basic_string<Uint32> m_string;
416 SFML_SYSTEM_API
bool operator ==(
const String& left,
const String& right);
428 SFML_SYSTEM_API
bool operator !=(
const String& left,
const String& right);
440 SFML_SYSTEM_API
bool operator <(
const String& left,
const String& right);
452 SFML_SYSTEM_API
bool operator >(
const String& left,
const String& right);
464 SFML_SYSTEM_API
bool operator <=(
const String& left,
const String& right);
476 SFML_SYSTEM_API
bool operator >=(
const String& left,
const String& right);
493 #endif // SFML_STRING_HPP