Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/symbol.hpp"
inline string literal This is a marker type to indicate that
Definition at line 75 of file symbol.hpp.
Public Member Functions | |
Literal () noexcept | |
empty string by default More... | |
Literal (const char *literal) noexcept | |
Literal (Literal const &o) noexcept | |
const char * | c () const |
bool | empty () const |
operator const char * () const | |
bool | operator== (const char *cString) const |
equality on Literal and Symbol values is defined based on the content, not the address. More... | |
Protected Member Functions | |
Literal & | operator= (const char *newStr) noexcept |
Assignment generally prohibited. | |
Private Attributes | |
const char * | str_ |
|
inlinenoexcept |
empty string by default
Definition at line 167 of file symbol.hpp.
References lib::hash_value(), and Literal::operator==().
bool operator== | ( | const char * | cString | ) | const |
equality on Literal and Symbol values is defined based on the content, not the address.
Definition at line 99 of file symbol-impl.cpp.
References lumiera_strncmp().
Referenced by Literal::Literal(), and lib::operator==().