libDaisy
Hardware Library for Daisy
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
daisy::FixedCapStr< capacity, CharType > Class Template Reference

#include <FixedCapStr.h>

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

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< char >
constexpr FixedCapStrBase (char *buffer, size_t capacity)
 
constexpr FixedCapStrBase (const FixedCapStrBase &other)=delete
 
constexpr FixedCapStrBaseoperator= (const FixedCapStrBase &str)
 
constexpr FixedCapStrBaseoperator= (const char *str)
 
constexpr operator const char * () const noexcept
 
constexpr const char * Cstr () const noexcept
 
constexpr const char * Data () const noexcept
 
constexpr char * Data () 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 char *str)
 
constexpr void Reset (const char *str, std::size_t length)
 
constexpr void ResetAt (const char *str, std::size_t writePosition)
 
constexpr void Append (const char singleChar)
 
constexpr void Append (const char *str)
 
constexpr void Append (const char *str, std::size_t length)
 
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 char *pattern) const noexcept
 
constexpr bool StartsWithIgnoringCase (const char *pattern) const noexcept
 
constexpr bool EndsWith (const char *pattern) const noexcept
 
constexpr bool EndsWithIgnoringCase (const char *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 char *rhs) const
 
constexpr bool operator!= (const char *rhs) const
 
constexpr bool operator< (const char *other) const
 
constexpr bool operator<= (const char *other) const
 
constexpr bool operator> (const char *other) const
 
constexpr bool operator>= (const char *other) const
 
constexpr void Swap (FixedCapStrBase &rhs) noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from daisy::FixedCapStrBase< char >
constexpr void Reset_ (const char *str, std::size_t length)
 
constexpr void ResetAt_ (const char *str, std::size_t strLen, std::size_t writePosition)
 
constexpr void Append_ (const char *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< char >
static constexpr std::size_t strlen (const char *string)
 
static constexpr void Copy_ (const char *src, const char *srcEnd, char *dest)
 
static constexpr void Swap_ (char *a, char *b, size_t length)
 
static constexpr char ToUpper_ (char c) noexcept
 
- Protected Attributes inherited from daisy::FixedCapStrBase< char >
std::size_t size_
 
const size_t capacity_
 
char * buffer_
 

Constructor & Destructor Documentation

◆ FixedCapStr() [1/5]

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

◆ FixedCapStr() [2/5]

template<std::size_t capacity, class CharType = char>
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>
daisy::FixedCapStr< capacity, CharType >::FixedCapStr ( const FixedCapStr< otherSize > & str)
inlineconstexprnoexcept

◆ FixedCapStr() [4/5]

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

◆ FixedCapStr() [5/5]

template<std::size_t capacity, class CharType = char>
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>
FixedCapStr & daisy::FixedCapStr< capacity, CharType >::operator= ( const FixedCapStr< capacity, CharType > & str)
inlineconstexprnoexcept

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