|
libbio
|
#include <ImmutableString.h>

Public Member Functions | |
| BIO_CONSTEXPR | ImmutableString () |
| BIO_CONSTEXPR | ImmutableString (const char *string) |
| ImmutableString (const char *string, const ::std::size_t length) | |
| BIO_CONSTEXPR | ImmutableString (const ImmutableString &toCopy) |
| BIO_CONSTEXPR ImmutableString & | operator= (const ImmutableString &toCopy) |
| BIO_CONSTEXPR const char * | Data () const |
| BIO_CONSTEXPR::std::size_t | Length () const |
| BIO_CONSTEXPR bool | Empty () const |
| BIO_CONSTEXPR::std::size_t | Find (const ImmutableString &substring) const |
| BIO_CONSTEXPR::std::size_t | FirstDifference (const ImmutableString &other) const |
| BIO_CONSTEXPR ImmutableString | GetImmutableSubString (const ::std::size_t start, const ::std::size_t length) const |
Protected Attributes | |
| const char * | mString |
| ::std::size_t | mLength |
Friends | |
| class | String |
ImmutableStrings provide a bare-bones String implementation and are essentially a backwards-compatible std::string_view.
These can be used in constexpr and also serve as borrowed read-only runtime text views.
For more on Strings, see String.h
|
inline |
An empty string will point to NULL and have a length of 0.
|
inline |
| string |
|
inlineexplicit |
For derived classes only.
| string | |
| length |
|
inline |
| toCopy |
|
inline |
|
inline |
|
inline |
Find the start position of a sub-string in *this.
| substring |
|
inline |
Find the first position at which *this and other differ. Used to calibrate compiler-specific PRETTY_FUNCTION / FUNCSIG renderings without depending on a sentinel-name substring appearing at a predictable offset — see TypeName.h.
| other |
|
inline |
Get a smaller string from *this.
| start | |
| length |
|
inline |
|
inline |
| toCopy |
|
protected |