sf::Unicode::Text Class Reference

This class is an abstract definition of a unicode text, it can be converted from and to any kind of string and encoding. More...

#include <Unicode.hpp>

Public Member Functions

 Text ()
 Default constructor (empty text).
 Text (const char *Str)
 Construct the unicode text from any type of string.
 Text (const wchar_t *Str)
 Text (const Uint8 *Str)
 Text (const Uint16 *Str)
 Text (const Uint32 *Str)
 Text (const std::string &Str)
 Text (const std::wstring &Str)
 Text (const Unicode::UTF8String &Str)
 Text (const Unicode::UTF16String &Str)
 Text (const Unicode::UTF32String &Str)
 operator std::string () const
 Operator to cast the text to any type of string.
 operator std::wstring () const
 operator Unicode::UTF8String () const
 operator Unicode::UTF16String () const
 operator const Unicode::UTF32String & () const

Detailed Description

This class is an abstract definition of a unicode text, it can be converted from and to any kind of string and encoding.

Definition at line 63 of file Unicode.hpp.

Constructor & Destructor Documentation

◆ Text() [1/11]

sf::Unicode::Text::Text ( )

Default constructor (empty text).

Definition at line 105 of file Unicode.cpp.

◆ Text() [2/11]

sf::Unicode::Text::Text ( const char * Str)

Construct the unicode text from any type of string.

Parameters
Str: String to convert

Definition at line 114 of file Unicode.cpp.

◆ Text() [3/11]

sf::Unicode::Text::Text ( const wchar_t * Str)

Definition at line 126 of file Unicode.cpp.

◆ Text() [4/11]

sf::Unicode::Text::Text ( const Uint8 * Str)

Definition at line 144 of file Unicode.cpp.

◆ Text() [5/11]

sf::Unicode::Text::Text ( const Uint16 * Str)

Definition at line 156 of file Unicode.cpp.

◆ Text() [6/11]

sf::Unicode::Text::Text ( const Uint32 * Str)

Definition at line 168 of file Unicode.cpp.

◆ Text() [7/11]

sf::Unicode::Text::Text ( const std::string & Str)

Definition at line 173 of file Unicode.cpp.

◆ Text() [8/11]

sf::Unicode::Text::Text ( const std::wstring & Str)

Definition at line 178 of file Unicode.cpp.

◆ Text() [9/11]

sf::Unicode::Text::Text ( const Unicode::UTF8String & Str)

Definition at line 208 of file Unicode.cpp.

◆ Text() [10/11]

sf::Unicode::Text::Text ( const Unicode::UTF16String & Str)

Definition at line 213 of file Unicode.cpp.

◆ Text() [11/11]

sf::Unicode::Text::Text ( const Unicode::UTF32String & Str)

Definition at line 218 of file Unicode.cpp.

Member Function Documentation

◆ operator std::string()

sf::Unicode::Text::operator std::string ( ) const

Operator to cast the text to any type of string.

Returns
Converted string

Definition at line 227 of file Unicode.cpp.

◆ operator std::wstring()

sf::Unicode::Text::operator std::wstring ( ) const

Definition at line 234 of file Unicode.cpp.


The documentation for this class was generated from the following files: