Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
ultralight::String16 Class Reference

#include <Ultralight/String16.h>

Details

A UTF-16 string container.

Public Member Functions

 String16 ()
 
 String16 (const Char16 *str, size_t len)
 
 String16 (const unsigned short *str, size_t len)
 
 String16 (const String16 &other)
 
 ~String16 ()
 
String16operator= (const String16 &other)
 
String16operator+= (const String16 &other)
 
Char16data ()
 
const Char16data () const
 
unsigned short * udata ()
 
const unsigned short * udata () const
 
size_t length () const
 
size_t size () const
 
size_t sizeBytes () const
 
bool empty () const
 
Char16operator[] (size_t pos)
 
const Char16operator[] (size_t pos) const
 
String8 utf8 () const
 
String32 utf32 () const
 

Friends

String16 operator+ (String16 lhs, const String16 &rhs)
 

Constructor & Destructor Documentation

◆ String16() [1/4]

ultralight::String16::String16 ( )

◆ String16() [2/4]

ultralight::String16::String16 ( const Char16 str,
size_t  len 
)

◆ String16() [3/4]

ultralight::String16::String16 ( const unsigned short *  str,
size_t  len 
)

◆ String16() [4/4]

ultralight::String16::String16 ( const String16 other)

◆ ~String16()

ultralight::String16::~String16 ( )

Member Function Documentation

◆ data() [1/2]

Char16 * ultralight::String16::data ( )
inline

◆ data() [2/2]

const Char16 * ultralight::String16::data ( ) const
inline

◆ empty()

bool ultralight::String16::empty ( ) const
inline

◆ length()

size_t ultralight::String16::length ( ) const
inline

◆ operator+=()

String16 & ultralight::String16::operator+= ( const String16 other)

◆ operator=()

String16 & ultralight::String16::operator= ( const String16 other)

◆ operator[]() [1/2]

Char16 & ultralight::String16::operator[] ( size_t  pos)
inline

◆ operator[]() [2/2]

const Char16 & ultralight::String16::operator[] ( size_t  pos) const
inline

◆ size()

size_t ultralight::String16::size ( ) const
inline

◆ sizeBytes()

size_t ultralight::String16::sizeBytes ( ) const
inline

◆ udata() [1/2]

unsigned short * ultralight::String16::udata ( )
inline

◆ udata() [2/2]

const unsigned short * ultralight::String16::udata ( ) const
inline

◆ utf32()

String32 ultralight::String16::utf32 ( ) const

◆ utf8()

String8 ultralight::String16::utf8 ( ) const

Friends And Related Symbol Documentation

◆ operator+

String16 operator+ ( String16  lhs,
const String16 rhs 
)
friend

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