libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::FixedCapStr< capacity, CharType > Class Template Reference

#include <FixedCapStr.h>

Inheritance diagram for daisy::FixedCapStr< capacity, CharType >:
daisy::FixedCapStrBase< CharType >

Public Member Functions

constexpr FixedCapStr () noexcept
 
constexpr FixedCapStr (const FixedCapStr &str) noexcept
 
template<size_t otherSize>
constexpr FixedCapStr (const FixedCapStr< otherSize > &str) noexcept
 
constexpr FixedCapStr (const CharType *str) noexcept
 
constexpr FixedCapStr (const CharType *str, std::size_t length) noexcept
 
constexpr FixedCapStroperator= (const FixedCapStr &str) noexcept
 
- Public Member Functions inherited from daisy::FixedCapStrBase< CharType >
constexpr FixedCapStrBase (CharType *buffer, size_t capacity)
 
constexpr FixedCapStrBase (const FixedCapStrBase &other)=delete
 
constexpr FixedCapStrBaseoperator= (const FixedCapStrBase &str)
 
constexpr FixedCapStrBaseoperator= (const CharType *str)
 
constexpr operator const CharType * () const noexcept
 
constexpr const CharTypeCstr () const noexcept
 
constexpr const CharTypeData () const noexcept
 
constexpr CharTypeData () 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
 

Additional Inherited Members

- Protected Member Functions inherited from daisy::FixedCapStrBase< CharType >
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 inherited from daisy::FixedCapStrBase< CharType >
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 inherited from daisy::FixedCapStrBase< CharType >
std::size_t size_ {0}
 
const size_t capacity_
 
CharTypebuffer_
 

Constructor & Destructor Documentation

◆ FixedCapStr() [1/5]

template<std::size_t capacity, class CharType = char>
constexpr daisy::FixedCapStr< capacity, CharType >::FixedCapStr ( )
inlineconstexprnoexcept

◆ FixedCapStr() [2/5]

template<std::size_t capacity, class CharType = char>
constexpr daisy::FixedCapStr< capacity, CharType >::FixedCapStr ( const FixedCapStr< capacity, CharType > &  str)
inlineconstexprnoexcept

◆ FixedCapStr() [3/5]

template<std::size_t capacity, class CharType = char>
template<size_t otherSize>
constexpr daisy::FixedCapStr< capacity, CharType >::FixedCapStr ( const FixedCapStr< otherSize > &  str)
inlineconstexprnoexcept

◆ FixedCapStr() [4/5]

template<std::size_t capacity, class CharType = char>
constexpr daisy::FixedCapStr< capacity, CharType >::FixedCapStr ( const CharType str)
inlineconstexprnoexcept

◆ FixedCapStr() [5/5]

template<std::size_t capacity, class CharType = char>
constexpr daisy::FixedCapStr< capacity, CharType >::FixedCapStr ( const CharType str,
std::size_t  length 
)
inlineconstexprnoexcept

Member Function Documentation

◆ operator=()

template<std::size_t capacity, class CharType = char>
constexpr FixedCapStr & daisy::FixedCapStr< capacity, CharType >::operator= ( const FixedCapStr< capacity, CharType > &  str)
inlineconstexprnoexcept

The documentation for this class was generated from the following file: