#include <FixedCapStr.h>
Public Member Functions | |
constexpr | FixedCapStrBase (CharType *buffer, size_t capacity) |
constexpr | FixedCapStrBase (const FixedCapStrBase &other)=delete |
constexpr FixedCapStrBase & | operator= (const FixedCapStrBase &str) |
constexpr FixedCapStrBase & | operator= (const CharType *str) |
constexpr | operator const CharType * () const noexcept |
constexpr const CharType * | Cstr () const noexcept |
constexpr const CharType * | Data () const noexcept |
constexpr CharType * | Data () noexcept |
constexpr auto | Size () const noexcept |
constexpr auto | UpdateSize () noexcept |
constexpr auto | Capacity () const noexcept |
constexpr auto | Empty () const noexcept |
constexpr void | Clear () noexcept |
constexpr void | Reset (const CharType *str) |
constexpr void | Reset (const CharType *str, std::size_t length) |
constexpr void | ResetAt (const CharType *str, std::size_t writePosition) |
constexpr void | Append (const CharType singleChar) |
constexpr void | Append (const CharType *str) |
constexpr void | Append (const CharType *str, std::size_t length) |
template<typename IntType > | |
constexpr void | AppendInt (IntType value, bool alwaysIncludeSign=false) |
constexpr void | AppendFloat (float value, int maxNumDigits=2, bool omitTrailingZeros=false, bool alwaysIncludeSign=false) |
constexpr bool | StartsWith (const CharType *pattern) const noexcept |
constexpr bool | StartsWithIgnoringCase (const CharType *pattern) const noexcept |
constexpr bool | EndsWith (const CharType *pattern) const noexcept |
constexpr bool | EndsWithIgnoringCase (const CharType *pattern) const noexcept |
constexpr void | RemovePrefix (std::size_t length) |
constexpr void | RemoveSuffix (std::size_t length) noexcept |
constexpr void | ReverseSection (std::size_t firstIdx, std::size_t lastIdx) |
constexpr bool | operator== (const CharType *rhs) const |
constexpr bool | operator!= (const CharType *rhs) const |
constexpr bool | operator< (const CharType *other) const |
constexpr bool | operator<= (const CharType *other) const |
constexpr bool | operator> (const CharType *other) const |
constexpr bool | operator>= (const CharType *other) const |
constexpr void | Swap (FixedCapStrBase &rhs) noexcept |
Protected Member Functions | |
constexpr void | Reset_ (const CharType *str, std::size_t length) |
constexpr void | ResetAt_ (const CharType *str, std::size_t strLen, std::size_t writePosition) |
constexpr void | Append_ (const CharType *str, std::size_t to_copy) |
std::size_t | clamp (std::size_t val, std::size_t min, std::size_t max) |
Static Protected Member Functions | |
static constexpr std::size_t | strlen (const CharType *string) |
static constexpr void | Copy_ (const CharType *src, const CharType *srcEnd, CharType *dest) |
static constexpr void | Swap_ (CharType *a, CharType *b, size_t length) |
static constexpr char | ToUpper_ (char c) noexcept |
Protected Attributes | |
std::size_t | size_ {0} |
const size_t | capacity_ |
CharType * | buffer_ |
|
inlineconstexpr |
|
constexprdelete |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexprprotected |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineprotected |
|
inlineconstexprnoexcept |
|
inlinestaticconstexprprotected |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexprprotected |
|
inlineconstexpr |
|
inlineconstexprprotected |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinestaticconstexprprotected |
|
inlineconstexprnoexcept |
|
inlinestaticconstexprprotected |
|
inlinestaticconstexprprotectednoexcept |
|
inlineconstexprnoexcept |
|
protected |
|
protected |
|
protected |