Skip to content

Class daisy::FixedCapStr

template <std::size_t capacity, class CharType>

ClassList > daisy > FixedCapStr

Inherits the following classes: daisy::FixedCapStrBase

Public Functions

Type Name
constexpr FixedCapStr () noexcept
constexpr FixedCapStr (const FixedCapStr & str) noexcept
constexpr FixedCapStr (const FixedCapStr< otherSize > & str) noexcept
constexpr FixedCapStr (const CharType * str) noexcept
constexpr FixedCapStr (const CharType * str, std::size_t length) noexcept
constexpr FixedCapStr & operator= (const FixedCapStr & str) noexcept

Public Functions inherited from daisy::FixedCapStrBase

See daisy::FixedCapStrBase

Type Name
constexpr void Append (const CharType singleChar)
constexpr void Append (const CharType * str)
constexpr void Append (const CharType * str, std::size_t length)
constexpr void AppendFloat (float value, int maxNumDigits=2, bool omitTrailingZeros=false, bool alwaysIncludeSign=false)
constexpr void AppendInt (IntType value, bool alwaysIncludeSign=false)
constexpr auto Capacity () noexcept const
constexpr void Clear () noexcept
constexpr const CharType * Cstr () noexcept const
constexpr const CharType * Data () noexcept const
constexpr CharType * Data () noexcept
constexpr auto Empty () noexcept const
constexpr bool EndsWith (const CharType * pattern) noexcept const
constexpr bool EndsWithIgnoringCase (const CharType * pattern) noexcept const
constexpr FixedCapStrBase (CharType * buffer, size_t capacity)
constexpr FixedCapStrBase (const FixedCapStrBase & other) = delete
constexpr void RemovePrefix (std::size_t length)
constexpr void RemoveSuffix (std::size_t length) 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 ReverseSection (std::size_t firstIdx, std::size_t lastIdx)
constexpr auto Size () noexcept const
constexpr bool StartsWith (const CharType * pattern) noexcept const
constexpr bool StartsWithIgnoringCase (const CharType * pattern) noexcept const
constexpr void Swap (FixedCapStrBase & rhs) noexcept
constexpr auto UpdateSize () noexcept
constexpr operator const CharType * () noexcept const
constexpr bool operator!= (const CharType * rhs) const
constexpr bool operator< (const CharType * other) const
constexpr bool operator<= (const CharType * other) const
constexpr FixedCapStrBase & operator= (const FixedCapStrBase & str)
constexpr FixedCapStrBase & operator= (const CharType * str)
constexpr bool operator== (const CharType * rhs) const
constexpr bool operator> (const CharType * other) const
constexpr bool operator>= (const CharType * other) const

Protected Attributes inherited from daisy::FixedCapStrBase

See daisy::FixedCapStrBase

Type Name
CharType * buffer_
const size_t capacity_
std::size_t size_ = {0}

Protected Functions inherited from daisy::FixedCapStrBase

See daisy::FixedCapStrBase

Type Name
constexpr void Append_ (const CharType * str, std::size_t to_copy)
constexpr void ResetAt_ (const CharType * str, std::size_t strLen, std::size_t writePosition)
constexpr void Reset_ (const CharType * str, std::size_t length)
std::size_t clamp (std::size_t val, std::size_t min, std::size_t max)

Protected Static Functions inherited from daisy::FixedCapStrBase

See daisy::FixedCapStrBase

Type Name
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) noexcept
constexpr std::size_t strlen (const CharType * string)

Public Functions Documentation

function FixedCapStr [⅕]

inline constexpr daisy::FixedCapStr::FixedCapStr () noexcept

function FixedCapStr [⅖]

inline constexpr daisy::FixedCapStr::FixedCapStr (
    const  FixedCapStr & str
) noexcept

function FixedCapStr [⅗]

template<size_t otherSize>
inline constexpr daisy::FixedCapStr::FixedCapStr (
    const  FixedCapStr < otherSize > & str
) noexcept

function FixedCapStr [⅘]

inline constexpr daisy::FixedCapStr::FixedCapStr (
    const  CharType * str
) noexcept

function FixedCapStr [5/5]

inline constexpr daisy::FixedCapStr::FixedCapStr (
    const  CharType * str,
    std::size_t length
) noexcept

function operator=

inline constexpr  FixedCapStr & daisy::FixedCapStr::operator= (
    const  FixedCapStr & str
) noexcept


The documentation for this class was generated from the following file external-docs/libDaisy/src/util/FixedCapStr.h