Loading...
Searching...
No Matches
String8

#include <Ultralight/String8.h>

Overview

A null-terminated UTF-8 string container.

Public Types

typedef char CharType
 

Public Member Functions

 String8 ()
 
 String8 (const char *c_str)
 
 String8 (const char *c_str, size_t len)
 
 String8 (const String8 &other)
 
 String8 (String8 &&other)
 
 ~String8 ()
 
String8operator= (const String8 &other)
 
String8operator= (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
 
size_t Hash () const
 
bool operator< (const String8 &other) const
 
bool operator== (const String8 &other) const
 
bool operator!= (const String8 &other) const
 

Friends

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

Member Typedef Documentation

◆ CharType

typedef char CharType

Constructor & Destructor Documentation

◆ String8() [1/5]

String8 ( )

◆ String8() [2/5]

String8 ( const char * c_str)

◆ String8() [3/5]

String8 ( const char * c_str,
size_t len )

◆ String8() [4/5]

String8 ( const String8 & other)

◆ String8() [5/5]

String8 ( String8 && other)

◆ ~String8()

~String8 ( )

Member Function Documentation

◆ data() [1/2]

char * data ( )
inline

◆ data() [2/2]

const char * data ( ) const
inline

◆ empty()

bool empty ( ) const
inline

◆ Hash()

size_t Hash ( ) const

◆ length()

size_t length ( ) const
inline

◆ operator!=()

bool operator!= ( const String8 & other) const

◆ operator+=()

String8 & operator+= ( const String8 & other)

◆ operator<()

bool operator< ( const String8 & other) const

◆ operator=() [1/2]

String8 & operator= ( const String8 & other)

◆ operator=() [2/2]

String8 & operator= ( String8 && other)

◆ operator==()

bool operator== ( const String8 & other) const

◆ operator[]() [1/2]

char & operator[] ( size_t pos)
inline

◆ operator[]() [2/2]

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

◆ size()

size_t size ( ) const
inline

◆ sizeBytes()

size_t sizeBytes ( ) const
inline

◆ utf16()

String16 utf16 ( ) const

◆ utf32()

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