#include <String>
|
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 |
|
◆ vector_type
◆ Encoding
Types of string encodings supported
Enumerator |
---|
ENCODING_UNDEFINED | |
ENCODING_ASCII | not using Unicode
|
ENCODING_UTF8 | unsigned char ASCII
|
ENCODING_UTF16 | 8-bit unicode transformation format
|
ENCODING_UTF16_BE | 16-bit signature
|
ENCODING_UTF16_LE | 16-bit big-endian
|
ENCODING_UTF32 | 16-bit little-endian
|
ENCODING_UTF32_BE | 32-bit signature
|
ENCODING_UTF32_LE | 32-bit big-endian
|
ENCODING_SIGNATURE | 32-bit little-endian
|
ENCODING_CURRENT_CODE_PAGE | detect encoding from signature
Use Windows Current Code Page ecoding
|
◆ String() [1/5]
osgText::String::String |
( |
| ) |
|
|
inline |
◆ String() [2/5]
osgText::String::String |
( |
const String & |
str | ) |
|
◆ String() [3/5]
osgText::String::String |
( |
const std::string & |
str | ) |
|
|
inline |
◆ String() [4/5]
osgText::String::String |
( |
const wchar_t * |
text | ) |
|
|
inline |
◆ String() [5/5]
osgText::String::String |
( |
const std::string & |
text, |
|
|
Encoding |
encoding |
|
) |
| |
|
inline |
◆ createUTF8EncodedString()
std::string osgText::String::createUTF8EncodedString |
( |
| ) |
const |
◆ operator=()
◆ set() [1/3]
void osgText::String::set |
( |
const std::string & |
str | ) |
|
◆ set() [2/3]
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.
◆ set() [3/3]
void osgText::String::set |
( |
const wchar_t * |
text | ) |
|
Set the text using a wchar_t string, which is converted to an internal TextString.
The documentation for this class was generated from the following file: