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

#include <Ultralight/String8.h>

Details

A UTF-8 string container.

Public Member Functions

 String8 ()
 
 String8 (const char *c_str)
 
 String8 (const char *c_str, size_t len)
 
 String8 (const String8 &other)
 
 ~String8 ()
 
String8operator= (const String8 &other)
 
String8operator+= (const String8 &other)
 
char * data ()
 
const char * data () const
 
size_t length () const
 
size_t size () const
 
size_t sizeBytes () const
 
bool empty () const
 
char & operator[] (size_t pos)
 
const char & operator[] (size_t pos) const
 
String16 utf16 () const
 
String32 utf32 () const
 

Friends

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

Constructor & Destructor Documentation

◆ String8() [1/4]

ultralight::String8::String8 ( )

◆ String8() [2/4]

ultralight::String8::String8 ( const char *  c_str)

◆ String8() [3/4]

ultralight::String8::String8 ( const char *  c_str,
size_t  len 
)

◆ String8() [4/4]

ultralight::String8::String8 ( const String8 other)

◆ ~String8()

ultralight::String8::~String8 ( )

Member Function Documentation

◆ data() [1/2]

char * ultralight::String8::data ( )
inline

◆ data() [2/2]

const char * ultralight::String8::data ( ) const
inline

◆ empty()

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

◆ length()

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

◆ operator+=()

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

◆ operator=()

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

◆ operator[]() [1/2]

char & ultralight::String8::operator[] ( size_t  pos)
inline

◆ operator[]() [2/2]

const char & ultralight::String8::operator[] ( size_t  pos) const
inline

◆ size()

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

◆ sizeBytes()

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

◆ utf16()

String16 ultralight::String8::utf16 ( ) const

◆ utf32()

String32 ultralight::String8::utf32 ( ) const

Friends And Related Symbol Documentation

◆ operator+

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

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