|
openscenegraph
|
#include <String>
Public Types | |
| enum | Encoding { ENCODING_UNDEFINED , ENCODING_ASCII = ENCODING_UNDEFINED , ENCODING_UTF8 , ENCODING_UTF16 , ENCODING_UTF16_BE , ENCODING_UTF16_LE , ENCODING_UTF32 , ENCODING_UTF32_BE , ENCODING_UTF32_LE , ENCODING_SIGNATURE , ENCODING_CURRENT_CODE_PAGE } |
| typedef VectorUInt | vector_type |
Public Member Functions | |
| String () | |
| String (const String &str) | |
| String (const std::string &str) | |
| String (const wchar_t *text) | |
| String (const std::string &text, Encoding encoding) | |
| String & | operator= (const String &str) |
| void | set (const std::string &str) |
| void | set (const wchar_t *text) |
| void | set (const std::string &text, Encoding encoding) |
| std::string | createUTF8EncodedString () const |
| Public Member Functions inherited from osgText::VectorUInt | |
| VectorUInt () | |
| VectorUInt (const VectorUInt ©) | |
| VectorUInt (unsigned int *beg, unsigned int *end) | |
| VectorUInt (unsigned int n) | |
Types of string encodings supported
|
inline |
Referenced by operator=(), and String().
| osgText::String::String | ( | const String & | str | ) |
References String().
|
inline |
References set().
|
inline |
References set().
| std::string osgText::String::createUTF8EncodedString | ( | ) | const |
returns a UTF8 encoded version of this osgText::String.
| void osgText::String::set | ( | const std::string & | str | ) |
| void osgText::String::set | ( | const std::string & | text, |
| Encoding | encoding ) |
Set the text using a Unicode encoded std::string, which is converted to an internal TextString. The encoding parameter specifies which Unicode encoding is used in the std::string.
| void osgText::String::set | ( | const wchar_t * | text | ) |
Set the text using a wchar_t string, which is converted to an internal TextString.