daisy::FixedCapStrBase¶
#include <FixedCapStr.h>
Public Functions¶
Name | |
---|---|
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 |
constexpr const CharType * | Cstr() const |
constexpr const CharType * | Data() const |
constexpr CharType * | Data() |
constexpr auto | Size() const |
constexpr auto | UpdateSize() |
constexpr auto | Capacity() const |
constexpr auto | Empty() const |
constexpr void | Clear() |
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 |
constexpr bool | StartsWithIgnoringCase(const CharType * pattern) const |
constexpr bool | EndsWith(const CharType * pattern) const |
constexpr bool | EndsWithIgnoringCase(const CharType * pattern) const |
constexpr void | RemovePrefix(std::size_t length) |
constexpr void | RemoveSuffix(std::size_t length) |
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) |
Protected Functions¶
Name | |
---|---|
constexpr std::size_t | strlen(const CharType * string) |
constexpr void | Copy_(const CharType * src, const CharType * srcEnd, CharType * dest) |
constexpr void | Swap_(CharType * a, CharType * b, size_t length) |
constexpr char | ToUpper_(char c) |
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) |
Protected Attributes¶
Name | |
---|---|
std::size_t | size_ |
const size_t | capacity_ |
CharType * | buffer_ |
Detailed Description¶
Public Functions Documentation¶
function FixedCapStrBase¶
function FixedCapStrBase¶
function operator=¶
function operator=¶
function operator const CharType *¶
function Cstr¶
function Data¶
function Data¶
function Size¶
function UpdateSize¶
function Capacity¶
function Empty¶
function Clear¶
function Reset¶
function Reset¶
function ResetAt¶
function Append¶
function Append¶
function Append¶
function AppendInt¶
template <typename IntType >
inline constexpr void AppendInt(
IntType value,
bool alwaysIncludeSign =false
)
function AppendFloat¶
inline constexpr void AppendFloat(
float value,
int maxNumDigits =2,
bool omitTrailingZeros =false,
bool alwaysIncludeSign =false
)
function StartsWith¶
function StartsWithIgnoringCase¶
function EndsWith¶
function EndsWithIgnoringCase¶
function RemovePrefix¶
function RemoveSuffix¶
function ReverseSection¶
function operator==¶
function operator!=¶
function operator<¶
function operator<=¶
function operator>¶
function operator>=¶
function Swap¶
Protected Functions Documentation¶
function strlen¶
function Copy_¶
static inline constexpr void Copy_(
const CharType * src,
const CharType * srcEnd,
CharType * dest
)
function Swap_¶
function ToUpper_¶
function Reset_¶
function ResetAt_¶
inline constexpr void ResetAt_(
const CharType * str,
std::size_t strLen,
std::size_t writePosition
)
function Append_¶
function clamp¶
Protected Attributes Documentation¶
variable size_¶
variable capacity_¶
variable buffer_¶
Updated on 2024-01-03 at 19:41:00 +0000