Loading...
Searching...
No Matches
String16

#include <Ultralight/String16.h>

Overview

A null-terminated UTF-16 string container.

Public Types

typedef Char16 CharType
 

Public Member Functions

 String16 ()
 
 String16 (const Char16 *str, size_t len)
 
 String16 (const unsigned short *str, size_t len)
 
 String16 (const String16 &other)
 
 String16 (String16 &&other)
 
 ~String16 ()
 
String16operator= (const String16 &other)
 
String16operator= (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
 
size_t Hash () const
 
bool operator< (const String16 &other) const
 
bool operator== (const String16 &other) const
 
bool operator!= (const String16 &other) const
 

Friends

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

Member Typedef Documentation

◆ CharType

typedef Char16 CharType

Constructor & Destructor Documentation

◆ String16() [1/5]

String16 ( )

◆ String16() [2/5]

String16 ( const Char16 * str,
size_t len )

◆ String16() [3/5]

String16 ( const unsigned short * str,
size_t len )

◆ String16() [4/5]

String16 ( const String16 & other)

◆ String16() [5/5]

String16 ( String16 && other)

◆ ~String16()

~String16 ( )

Member Function Documentation

◆ data() [1/2]

Char16 * data ( )
inline

◆ data() [2/2]

const Char16 * data ( ) const
inline

◆ empty()

bool empty ( ) const
inline

◆ Hash()

size_t Hash ( ) const

◆ length()

size_t length ( ) const
inline

◆ operator!=()

bool operator!= ( const String16 & other) const

◆ operator+=()

String16 & operator+= ( const String16 & other)

◆ operator<()

bool operator< ( const String16 & other) const

◆ operator=() [1/2]

String16 & operator= ( const String16 & other)

◆ operator=() [2/2]

String16 & operator= ( String16 && other)

◆ operator==()

bool operator== ( const String16 & other) const

◆ operator[]() [1/2]

Char16 & operator[] ( size_t pos)
inline

◆ operator[]() [2/2]

const Char16 & operator[] ( size_t pos) const
inline

◆ size()

size_t size ( ) const
inline

◆ sizeBytes()

size_t sizeBytes ( ) const
inline

◆ udata() [1/2]

unsigned short * udata ( )
inline

◆ udata() [2/2]

const unsigned short * udata ( ) const
inline

◆ utf32()

String32 utf32 ( ) const

◆ utf8()

String8 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: