class OSGTEXT_EXPORT osgText::String


Inheritance:


Public Classes

[more]enum Encoding
Types of string encodings supported

Public Methods

[more] String()
[more] String(const String& str)
[more] String(const std::string& str)
[more] String(const wchar_t* text)
[more] String(const std::string& text, Encoding encoding)
[more]virtual ~String()
[more]String& operator = (const String& str)
[more]void set(const std::string& str)
[more]void set(const wchar_t* text)
Set the text using a wchar_t string, which is converted to an internal TextString
[more]void set(const std::string& text, Encoding encoding)
Set the text using a Unicode encoded std::string, which is converted to an internal TextString.
[more]std::string createUTF8EncodedString() const
returns a UTF8 encoded version of this osgText::String


Documentation

oenum Encoding
Types of string encodings supported

o ENCODING_UNDEFINED

o ENCODING_ASCII
not using Unicode

o ENCODING_UTF8
unsigned char ASCII

o ENCODING_UTF16
8-bit unicode transformation format

o ENCODING_UTF16_BE
16-bit signature

o ENCODING_UTF16_LE
16-bit big-endian

o ENCODING_UTF32
16-bit little-endian

o ENCODING_UTF32_BE
32-bit signature

o ENCODING_UTF32_LE
32-bit big-endian

o ENCODING_SIGNATURE
32-bit little-endian

o String()

o String(const String& str)

o String(const std::string& str)

o String(const wchar_t* text)

o String(const std::string& text, Encoding encoding)

ovirtual ~String()

oString& operator = (const String& str)

ovoid set(const std::string& str)

ovoid set(const wchar_t* text)
Set the text using a wchar_t string, which is converted to an internal TextString

ovoid 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 specificies which Unicode encodeding is used in the std::string.

ostd::string createUTF8EncodedString() const
returns a UTF8 encoded version of this osgText::String


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.