Class daisy::FixedCapStrBase
template <class CharType>
ClassList > daisy > FixedCapStrBase
Public Functions
| Type |
Name |
| void |
Append (const CharType singleChar)
|
| void |
Append (const CharType * str)
|
| void |
Append (const CharType * str, std::size_t length)
|
| void |
AppendFloat (float value, int maxNumDigits=2, bool omitTrailingZeros=false, bool alwaysIncludeSign=false)
|
| void |
AppendInt (IntType value, bool alwaysIncludeSign=false)
|
| auto |
Capacity () noexcept const
|
| void |
Clear () noexcept
|
| const CharType * |
Cstr () noexcept const
|
| const CharType * |
Data () noexcept const
|
| CharType * |
Data () noexcept
|
| auto |
Empty () noexcept const
|
| bool |
EndsWith (const CharType * pattern) noexcept const
|
| bool |
EndsWithIgnoringCase (const CharType * pattern) noexcept const
|
| constexpr |
FixedCapStrBase (CharType * buffer, size_t capacity)
|
| constexpr |
FixedCapStrBase (const FixedCapStrBase & other) = delete
|
| void |
RemovePrefix (std::size_t length)
|
| void |
RemoveSuffix (std::size_t length) noexcept
|
| void |
Reset (const CharType * str)
|
| void |
Reset (const CharType * str, std::size_t length)
|
| void |
ResetAt (const CharType * str, std::size_t writePosition)
|
| void |
ReverseSection (std::size_t firstIdx, std::size_t lastIdx)
|
| auto |
Size () noexcept const
|
| bool |
StartsWith (const CharType * pattern) noexcept const
|
| bool |
StartsWithIgnoringCase (const CharType * pattern) noexcept const
|
| void |
Swap (FixedCapStrBase & rhs) noexcept
|
| auto |
UpdateSize () noexcept
|
| constexpr |
operator const CharType * () noexcept const
|
| bool |
operator!= (const CharType * rhs) const
|
| bool |
operator< (const CharType * other) const
|
| bool |
operator<= (const CharType * other) const
|
| FixedCapStrBase & |
operator= (const FixedCapStrBase & str)
|
| FixedCapStrBase & |
operator= (const CharType * str)
|
| bool |
operator== (const CharType * rhs) const
|
| bool |
operator> (const CharType * other) const
|
| bool |
operator>= (const CharType * other) const
|
Protected Attributes
Protected Functions
| Type |
Name |
| void |
Append_ (const CharType * str, std::size_t to_copy)
|
| void |
ResetAt_ (const CharType * str, std::size_t strLen, std::size_t writePosition)
|
| 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
| Type |
Name |
| void |
Copy_ (const CharType * src, const CharType * srcEnd, CharType * dest)
|
| void |
Swap_ (CharType * a, CharType * b, size_t length)
|
| char |
ToUpper_ (char c) noexcept
|
| std::size_t |
strlen (const CharType * string)
|
Public Functions Documentation
function Append [⅓]
inline void daisy::FixedCapStrBase::Append (
const CharType singleChar
)
function Append [⅔]
inline void daisy::FixedCapStrBase::Append (
const CharType * str
)
function Append [3/3]
inline void daisy::FixedCapStrBase::Append (
const CharType * str,
std::size_t length
)
function AppendFloat
inline void daisy::FixedCapStrBase::AppendFloat (
float value,
int maxNumDigits=2,
bool omitTrailingZeros=false,
bool alwaysIncludeSign=false
)
function AppendInt
template<typename IntType>
inline void daisy::FixedCapStrBase::AppendInt (
IntType value,
bool alwaysIncludeSign=false
)
function Capacity
inline auto daisy::FixedCapStrBase::Capacity () noexcept const
function Clear
inline void daisy::FixedCapStrBase::Clear () noexcept
function Cstr
inline const CharType * daisy::FixedCapStrBase::Cstr () noexcept const
function Data [½]
inline const CharType * daisy::FixedCapStrBase::Data () noexcept const
function Data [2/2]
inline CharType * daisy::FixedCapStrBase::Data () noexcept
function Empty
inline auto daisy::FixedCapStrBase::Empty () noexcept const
function EndsWith
inline bool daisy::FixedCapStrBase::EndsWith (
const CharType * pattern
) noexcept const
function EndsWithIgnoringCase
inline bool daisy::FixedCapStrBase::EndsWithIgnoringCase (
const CharType * pattern
) noexcept const
function FixedCapStrBase [½]
inline constexpr daisy::FixedCapStrBase::FixedCapStrBase (
CharType * buffer,
size_t capacity
)
function FixedCapStrBase [2/2]
constexpr daisy::FixedCapStrBase::FixedCapStrBase (
const FixedCapStrBase & other
) = delete
function RemovePrefix
inline void daisy::FixedCapStrBase::RemovePrefix (
std::size_t length
)
function RemoveSuffix
inline void daisy::FixedCapStrBase::RemoveSuffix (
std::size_t length
) noexcept
function Reset [½]
inline void daisy::FixedCapStrBase::Reset (
const CharType * str
)
function Reset [2/2]
inline void daisy::FixedCapStrBase::Reset (
const CharType * str,
std::size_t length
)
function ResetAt
inline void daisy::FixedCapStrBase::ResetAt (
const CharType * str,
std::size_t writePosition
)
function ReverseSection
inline void daisy::FixedCapStrBase::ReverseSection (
std::size_t firstIdx,
std::size_t lastIdx
)
function Size
inline auto daisy::FixedCapStrBase::Size () noexcept const
function StartsWith
inline bool daisy::FixedCapStrBase::StartsWith (
const CharType * pattern
) noexcept const
function StartsWithIgnoringCase
inline bool daisy::FixedCapStrBase::StartsWithIgnoringCase (
const CharType * pattern
) noexcept const
function Swap
inline void daisy::FixedCapStrBase::Swap (
FixedCapStrBase & rhs
) noexcept
function UpdateSize
inline auto daisy::FixedCapStrBase::UpdateSize () noexcept
function operator const CharType *
inline constexpr daisy::FixedCapStrBase::operator const CharType * () noexcept const
function operator!=
inline bool daisy::FixedCapStrBase::operator!= (
const CharType * rhs
) const
function operator<
inline bool daisy::FixedCapStrBase::operator< (
const CharType * other
) const
function operator<=
inline bool daisy::FixedCapStrBase::operator<= (
const CharType * other
) const
function operator=
inline FixedCapStrBase & daisy::FixedCapStrBase::operator= (
const FixedCapStrBase & str
)
function operator=
inline FixedCapStrBase & daisy::FixedCapStrBase::operator= (
const CharType * str
)
function operator==
inline bool daisy::FixedCapStrBase::operator== (
const CharType * rhs
) const
function operator>
inline bool daisy::FixedCapStrBase::operator> (
const CharType * other
) const
function operator>=
inline bool daisy::FixedCapStrBase::operator>= (
const CharType * other
) const
Protected Attributes Documentation
variable buffer_
CharType* daisy::FixedCapStrBase< CharType >::buffer_;
variable capacity_
const size_t daisy::FixedCapStrBase< CharType >::capacity_;
variable size_
std::size_t daisy::FixedCapStrBase< CharType >::size_;
Protected Functions Documentation
function Append_
inline void daisy::FixedCapStrBase::Append_ (
const CharType * str,
std::size_t to_copy
)
function ResetAt_
inline void daisy::FixedCapStrBase::ResetAt_ (
const CharType * str,
std::size_t strLen,
std::size_t writePosition
)
function Reset_
inline void daisy::FixedCapStrBase::Reset_ (
const CharType * str,
std::size_t length
)
function clamp
inline std::size_t daisy::FixedCapStrBase::clamp (
std::size_t val,
std::size_t min,
std::size_t max
)
Protected Static Functions Documentation
function Copy_
static inline void daisy::FixedCapStrBase::Copy_ (
const CharType * src,
const CharType * srcEnd,
CharType * dest
)
function Swap_
static inline void daisy::FixedCapStrBase::Swap_ (
CharType * a,
CharType * b,
size_t length
)
function ToUpper_
static inline char daisy::FixedCapStrBase::ToUpper_ (
char c
) noexcept
function strlen
static inline std::size_t daisy::FixedCapStrBase::strlen (
const CharType * string
)
The documentation for this class was generated from the following file external-docs/libDaisy/src/util/FixedCapStr.h