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