15#define OSGTEXT_STRING 1
31 typedef std::vector<value_type> vector_type;
35 VectorUInt(
unsigned int* beg,
unsigned int* end): vector_type(beg, end) {}
76 void set(
const std::string& str);
80 void set(
const wchar_t* text);
The osgText library is a NodeKit that extends the core scene graph to support high quality text.
VectorUInt(unsigned int *beg, unsigned int *end)
Definition String:35
VectorUInt()
Definition String:33
VectorUInt(const VectorUInt ©)
Definition String:34
VectorUInt(unsigned int n)
Definition String:36
std::string createUTF8EncodedString() const
returns a UTF8 encoded version of this osgText::String.
String(const std::string &text, Encoding encoding)
Definition String:72
String(const String &str)
void set(const std::string &text, Encoding encoding)
Set the text using a Unicode encoded std::string, which is converted to an internal TextString.
VectorUInt vector_type
Definition String:47
String(const std::string &str)
Definition String:70
void set(const wchar_t *text)
Set the text using a wchar_t string, which is converted to an internal TextString.
String()
Definition String:68
String(const wchar_t *text)
Definition String:71
void set(const std::string &str)
Encoding
Types of string encodings supported.
Definition String:53
@ ENCODING_UTF32
16-bit little-endian
Definition String:60
@ ENCODING_ASCII
not using Unicode
Definition String:55
@ ENCODING_UTF16_BE
16-bit signature
Definition String:58
@ ENCODING_UTF16_LE
16-bit big-endian
Definition String:59
@ ENCODING_CURRENT_CODE_PAGE
detect encoding from signature
Definition String:64
@ ENCODING_UTF8
unsigned char ASCII
Definition String:56
@ ENCODING_UTF16
8-bit unicode transformation format
Definition String:57
@ ENCODING_UTF32_LE
32-bit big-endian
Definition String:62
@ ENCODING_UNDEFINED
Definition String:54
@ ENCODING_UTF32_BE
32-bit signature
Definition String:61
@ ENCODING_SIGNATURE
32-bit little-endian
Definition String:63
#define OSGTEXT_EXPORT
Definition Export:39