WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
|
u8stringとstringとwstringをshared_ptrで持ち共有する More...
#include <webcface/common/encoding.h>
Classes | |
struct | Hash |
Public Member Functions | |
SharedString () | |
SharedString (std::nullptr_t) | |
SharedString (std::shared_ptr< internal::SharedStringData > &&data) | |
const std::string & | u8String () const |
std::string_view | u8StringView () const |
const std::string & | decode () const |
const std::wstring & | decodeW () const |
bool | empty () const |
bool | startsWith (std::string_view str) const |
bool | startsWith (char str) const |
bool | operator== (const SharedString &other) const |
bool | operator<= (const SharedString &other) const |
bool | operator>= (const SharedString &other) const |
bool | operator!= (const SharedString &other) const |
bool | operator< (const SharedString &other) const |
bool | operator> (const SharedString &other) const |
Static Public Member Functions | |
static SharedString | fromU8String (std::string_view u8s) |
static SharedString | encode (std::string_view s) |
static SharedString | encode (std::wstring_view ws, std::string_view s=std::string_view()) |
static const std::string & | emptyStr () |
static const std::wstring & | emptyStrW () |
u8stringとstringとwstringをshared_ptrで持ち共有する
|
inline |
|
inline |
|
explicit |
const std::string & decode | ( | ) | const |
const std::wstring & decodeW | ( | ) | const |
bool empty | ( | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
bool operator!= | ( | const SharedString & | other | ) | const |
bool operator< | ( | const SharedString & | other | ) | const |
bool operator<= | ( | const SharedString & | other | ) | const |
bool operator== | ( | const SharedString & | other | ) | const |
bool operator> | ( | const SharedString & | other | ) | const |
bool operator>= | ( | const SharedString & | other | ) | const |
bool startsWith | ( | char | str | ) | const |
bool startsWith | ( | std::string_view | str | ) | const |
const std::string & u8String | ( | ) | const |
std::string_view u8StringView | ( | ) | const |