|
COMMS
Template library intended to help with implementation of communication protocols.
|
#include "comms/util/StaticString.h"
Replacement to std::string when no dynamic memory allocation is allowed.
Uses std::array in its private members to store the zero-terminated string. Provides almost the same interface as std::string.
| TSize | Maximum length of the string, not including zero termination character. |
| Type | of the single character. |
Inherits comms::util::details::StaticStringStorageBase< TChar, TSize >, and comms::util::details::StaticStringBase< TChar >.
Public Types | |
| using | const_iterator = const_pointer |
| Type of the const iterator. | |
| using | const_pointer = const value_type * |
| Const pointer to single character. | |
| using | const_reference = const value_type & |
| Const reference to single character. | |
| using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
| Type of the const reverse iterator. | |
| using | difference_type = typename StorageBase::StorageType::difference_type |
| Type used in pointer arithmetics. | |
| using | iterator = pointer |
| Type of the iterator. | |
| using | pointer = value_type * |
| Pointer to single character. | |
| using | reference = value_type & |
| Reference to single character. | |
| using | reverse_iterator = std::reverse_iterator< iterator > |
| Type of the reverse iterator. | |
| using | size_type = std::size_t |
| Type used for size information. | |
| using | value_type = TChar |
| Type of single character. | |
Public Member Functions | |
| StaticString () | |
| Default constructor. | |
| StaticString (const StaticString &other) | |
| Copy constructor. | |
| template<std::size_t TOtherSize> | |
| StaticString (const StaticString< TOtherSize, TChar > &other) | |
| Copy constructor variant. | |
| template<std::size_t TOtherSize> | |
| StaticString (const StaticString< TOtherSize, TChar > &other, size_type pos, size_type count=npos) | |
| Constructor variant. | |
| StaticString (const_pointer str) | |
| Constructor variant. | |
| StaticString (const_pointer str, size_type count) | |
| Constructor variant. | |
| StaticString (size_type count, value_type ch) | |
| Constructor variant. | |
| StaticString (std::initializer_list< value_type > init) | |
| Constructor variant. | |
| template<typename TIter > | |
| StaticString (TIter first, TIter last) | |
| Constructor variant. | |
| template<std::size_t TAnySize> | |
| StaticString & | append (const StaticString< TAnySize, TChar > &other) |
| Appends characters to the end. | |
| template<std::size_t TAnySize> | |
| StaticString & | append (const StaticString< TAnySize, TChar > &other, size_type pos, size_type count=npos) |
| Appends characters to the end. | |
| StaticString & | append (const TChar *str) |
| Appends characters to the end. | |
| StaticString & | append (const TChar *str, size_type count) |
| Appends characters to the end. | |
| StaticString & | append (size_type count, value_type ch) |
| Appends characters to the end. | |
| StaticString & | append (std::initializer_list< value_type > init) |
| Appends characters to the end. | |
| template<typename TIter > | |
| StaticString & | append (TIter first, TIter last) |
| Appends characters to the end. | |
| template<typename TOtherSize > | |
| StaticString & | assign (const StaticString &other) |
| Assign characters to a string. | |
| template<std::size_t TOtherSize> | |
| StaticString & | assign (const StaticString< TOtherSize, TChar > &other) |
| Assign characters to a string. | |
| template<std::size_t TOtherSize> | |
| StaticString & | assign (const StaticString< TOtherSize, TChar > &other, size_type pos, size_type count=npos) |
| Assign characters to a string. | |
| StaticString & | assign (const_pointer str) |
| Assign characters to a string. | |
| StaticString & | assign (const_pointer str, size_type count) |
| Assign characters to a string. | |
| StaticString & | assign (size_type count, value_type ch) |
| Assign characters to a string. | |
| StaticString & | assign (std::initializer_list< value_type > init) |
| Assign characters to a string. | |
| template<typename TIter > | |
| StaticString & | assign (TIter first, TIter last) |
| Assign characters to a string. | |
| reference | at (size_type pos) |
| Access specified character with bounds checking. | |
| const_reference | at (size_type pos) const |
| Access specified character with bounds checking. | |
| reference | back () |
| Accesses the last character. | |
| const_reference | back () const |
| Accesses the last character. | |
| iterator | begin () |
| Returns an iterator to the beginning. | |
| const_iterator | begin () const |
| Returns an iterator to the beginning. | |
| const_pointer | c_str () const |
| Returns a non-modifiable standard C character array version of the string. | |
| size_type | capacity () const |
| returns the number of characters that can be held in currently allocated storage. | |
| const_iterator | cbegin () const |
| Returns an iterator to the beginning. | |
| const_iterator | cend () const |
| Returns an iterator to the end. | |
| void | clear () |
| Clears the contents. | |
| template<std::size_t TAnySize> | |
| int | compare (const StaticString< TAnySize, TChar > &other) const |
| Compares two strings. | |
| int | compare (const_pointer str) const |
| Compares two strings. | |
| template<std::size_t TAnySize> | |
| int | compare (size_type pos, size_type count, const StaticString< TAnySize, TChar > &other) const |
| Compares two strings. | |
| int | compare (size_type pos, size_type count, const_pointer str) const |
| Compares two strings. | |
| int | compare (size_type pos, size_type count1, const_pointer str, size_type count2) const |
| Compares two strings. | |
| template<std::size_t TAnySize> | |
| int | compare (size_type pos1, size_type count1, const StaticString< TAnySize, TChar > &other, size_type pos2, size_type count2=npos) const |
| Compares two strings. | |
| size_type | copy (pointer dest, size_type count, size_type pos=0) const |
| Copies characters. | |
| const_reverse_iterator | crbegin () const |
| Returns a reverse iterator to the beginning. | |
| const_reverse_iterator | crend () const |
| Returns a reverse iterator to the end. | |
| const_pointer | data () const |
| Returns a pointer to the first character of a string. | |
| bool | empty () const |
| Checks whether the string is empty. | |
| iterator | end () |
| Returns an iterator to the end. | |
| const_iterator | end () const |
| Returns an iterator to the end. | |
| iterator | erase (const_iterator first, const_iterator last) |
| Removes characters. | |
| iterator | erase (const_iterator pos) |
| Removes characters. | |
| StaticString & | erase (std::size_t idx, std::size_t count=npos) |
| Removes characters. | |
| template<std::size_t TAnySize> | |
| size_type | find (const StaticString< TAnySize, TChar > &str, size_type pos=0) const |
| Find characters in the string. | |
| size_type | find (const_pointer str, size_type pos, size_type count) const |
| Find characters in the string. | |
| size_type | find (const_pointer str, size_type pos=0) const |
| Find characters in the string. | |
| size_type | find (value_type ch, size_type pos=0) const |
| Find characters in the string. | |
| template<std::size_t TAnySize> | |
| size_type | find_first_not_of (const StaticString< TAnySize, TChar > &str, size_type pos=0) const |
| Find first absence of characters. | |
| size_type | find_first_not_of (const_pointer str, size_type pos, size_type count) const |
| Find first absence of characters. | |
| size_type | find_first_not_of (const_pointer str, size_type pos=0) const |
| Find first absence of characters. | |
| size_type | find_first_not_of (value_type ch, size_type pos=0) const |
| Find first absence of characters. | |
| template<std::size_t TAnySize> | |
| size_type | find_first_of (const StaticString< TAnySize, TChar > &str, size_type pos=0) const |
| Find first occurrence of characters. | |
| size_type | find_first_of (const_pointer str, size_type pos, size_type count) const |
| Find first occurrence of characters. | |
| size_type | find_first_of (const_pointer str, size_type pos=0) const |
| Find first occurrence of characters. | |
| size_type | find_first_of (value_type ch, size_type pos=0) const |
| Find first occurrence of characters. | |
| template<std::size_t TAnySize> | |
| size_type | find_last_not_of (const StaticString< TAnySize, TChar > &str, size_type pos=npos) const |
| Find last absence of characters. | |
| size_type | find_last_not_of (const_pointer str, size_type pos, size_type count) const |
| Find last absence of characters. | |
| size_type | find_last_not_of (const_pointer str, size_type pos=npos) const |
| Find last absence of characters. | |
| size_type | find_last_not_of (value_type ch, size_type pos=npos) const |
| Find last absence of characters. | |
| template<std::size_t TAnySize> | |
| size_type | find_last_of (const StaticString< TAnySize, TChar > &str, size_type pos=npos) const |
| Find last occurrence of characters. | |
| size_type | find_last_of (const_pointer str, size_type pos, size_type count) const |
| Find last occurrence of characters. | |
| size_type | find_last_of (const_pointer str, size_type pos=npos) const |
| Find last occurrence of characters. | |
| size_type | find_last_of (value_type ch, size_type pos=npos) const |
| Find last occurrence of characters. | |
| reference | front () |
| Accesses the first character. | |
| const_reference | front () const |
| Accesses the first character. | |
| iterator | insert (const_iterator pos, size_type count, value_type ch) |
| Inserts characters. | |
| iterator | insert (const_iterator pos, std::initializer_list< value_type > init) |
| Inserts characters. | |
| template<typename TIter > | |
| iterator | insert (const_iterator pos, TIter first, TIter last) |
| Inserts characters. | |
| iterator | insert (const_iterator pos, value_type ch) |
| Inserts characters. | |
| template<std::size_t TAnySize> | |
| StaticString & | insert (size_type idx, const StaticString< TAnySize, TChar > &str) |
| Inserts characters. | |
| template<std::size_t TAnySize> | |
| StaticString & | insert (size_type idx, const StaticString< TAnySize, TChar > &str, size_type str_idx, size_type count=npos) |
| Inserts characters. | |
| StaticString & | insert (size_type idx, const_pointer str) |
| Inserts characters. | |
| StaticString & | insert (size_type idx, const_pointer str, size_type count) |
| Inserts characters. | |
| StaticString & | insert (size_type idx, size_type count, value_type ch) |
| Inserts characters. | |
| size_type | length () const |
| returns the number of characters. | |
| size_type | max_size () const |
| Returns the maximum number of characters. | |
| template<std::size_t TAnySize> | |
| StaticString & | operator+= (const StaticString< TAnySize, TChar > &other) |
| Appends characters to the end. | |
| StaticString & | operator+= (const_pointer str) |
| Appends characters to the end. | |
| StaticString & | operator+= (std::initializer_list< value_type > init) |
| Appends characters to the end. | |
| StaticString & | operator+= (value_type ch) |
| Appends characters to the end. | |
| bool | operator< (const_pointer str) const |
| Lexicographical compare to other string. | |
| StaticString & | operator= (const StaticString &other) |
| Copy assignment. | |
| template<std::size_t TOtherSize> | |
| StaticString & | operator= (const StaticString< TOtherSize, TChar > &other) |
| Copy assignment from string of different capacity. | |
| StaticString & | operator= (const_pointer str) |
| Assignment operator. | |
| StaticString & | operator= (std::initializer_list< value_type > init) |
| Assignment operator. | |
| StaticString & | operator= (value_type ch) |
| Assignment operator. | |
| bool | operator== (const_pointer str) const |
| Lexicographical compare to other string. | |
| bool | operator> (const_pointer str) const |
| Lexicographical compare to other string. | |
| reference | operator[] (size_type pos) |
| Access specified character without bounds checking. | |
| const_reference | operator[] (size_type pos) const |
| Access specified character without bounds checking. | |
| void | pop_back () |
| Removes the last character. | |
| void | push_back (value_type ch) |
| Appends a character to the end. | |
| reverse_iterator | rbegin () |
| Returns a reverse iterator to the beginning. | |
| const_reverse_iterator | rbegin () const |
| Returns a reverse iterator to the beginning. | |
| reverse_iterator | rend () |
| Returns a reverse iterator to the end. | |
| const_reverse_iterator | rend () const |
| Returns a reverse iterator to the end. | |
| template<std::size_t TAnySize> | |
| StaticString & | replace (const_iterator first, const_iterator last, const StaticString< TAnySize, TChar > &other) |
| Replaces specified portion of a string. | |
| StaticString & | replace (const_iterator first, const_iterator last, const_pointer str) |
| Replaces specified portion of a string. | |
| StaticString & | replace (const_iterator first, const_iterator last, const_pointer str, size_type count2) |
| Replaces specified portion of a string. | |
| StaticString & | replace (const_iterator first, const_iterator last, size_type count2, value_type ch) |
| Replaces specified portion of a string. | |
| StaticString & | replace (const_iterator first, const_iterator last, std::initializer_list< value_type > init) |
| Replaces specified portion of a string. | |
| template<typename TIter > | |
| StaticString & | replace (const_iterator first, const_iterator last, TIter first2, TIter last2) |
| Replaces specified portion of a string. | |
| template<std::size_t TAnySize> | |
| StaticString & | replace (size_type pos, size_type count, const StaticString< TAnySize, TChar > &other) |
| Replaces specified portion of a string. | |
| template<std::size_t TAnySize> | |
| StaticString & | replace (size_type pos, size_type count, const StaticString< TAnySize, TChar > &other, size_type pos2, size_type count2=npos) |
| Replaces specified portion of a string. | |
| StaticString & | replace (size_type pos, size_type count, const_pointer str) |
| Replaces specified portion of a string. | |
| StaticString & | replace (size_type pos, size_type count, const_pointer str, size_type count2) |
| Replaces specified portion of a string. | |
| StaticString & | replace (size_type pos, size_type count, size_type count2, value_type ch) |
| Replaces specified portion of a string. | |
| void | reserve (size_type) |
| Reserves storage. | |
| void | resize (size_type count) |
| Changes the number of characters stored. | |
| void | resize (size_type count, value_type ch) |
| Changes the number of characters stored. | |
| template<std::size_t TAnySize> | |
| size_type | rfind (const StaticString< TAnySize, TChar > &str, size_type pos=npos) const |
| Find the last occurrence of the substring. | |
| size_type | rfind (const_pointer str, size_type pos, size_type count) const |
| Find the last occurrence of the substring. | |
| size_type | rfind (const_pointer str, size_type pos=npos) const |
| Find the last occurrence of the substring. | |
| size_type | rfind (value_type ch, size_type pos=npos) const |
| Find the last occurrence of the substring. | |
| void | shrink_to_fit () |
| Reduces memory usage by freeing unused memory. | |
| size_type | size () const |
| returns the number of characters. | |
| StaticString | substr (size_type pos=0, size_type count=npos) const |
| Returns a substring. | |
| template<std::size_t TAnySize> | |
| void | swap (StaticString< TAnySize, TChar > &other) |
| Swaps the contents of two strings. | |
Static Public Attributes | |
| static const decltype(Base::npos) | npos = Base::npos |
| Same as std::string::npos. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| template<typename T > | |
| static constexpr bool | isStaticString () |
| Compile time check whether the provided type is a variant of comms::util::StaticString. | |
| template<std::size_t TSize1, std::size_t TSize2, typename TChar > | |
| bool | operator!= (const StaticString< TSize1, TChar > &str1, const StaticString< TSize2, TChar > &str2) |
| Inequality compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator!= (const StaticString< TSize1, TChar > &str1, const TChar *str2) |
| Inequality compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator!= (const TChar *str1, const StaticString< TSize1, TChar > &str2) |
| Inequality compare between the strings. | |
| template<std::size_t TSize1, std::size_t TSize2, typename TChar > | |
| bool | operator< (const StaticString< TSize1, TChar > &str1, const StaticString< TSize2, TChar > &str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator< (const StaticString< TSize1, TChar > &str1, const TChar *str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator< (const TChar *str1, const StaticString< TSize1, TChar > &str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, std::size_t TSize2, typename TChar > | |
| bool | operator<= (const StaticString< TSize1, TChar > &str1, const StaticString< TSize2, TChar > &str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator<= (const StaticString< TSize1, TChar > &str1, const TChar *str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator<= (const TChar *str1, const StaticString< TSize1, TChar > &str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, std::size_t TSize2, typename TChar > | |
| bool | operator== (const StaticString< TSize1, TChar > &str1, const StaticString< TSize2, TChar > &str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator== (const StaticString< TSize1, TChar > &str1, const TChar *str2) |
| Equality compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator== (const TChar *str1, const StaticString< TSize1, TChar > &str2) |
| Equality compare between the strings. | |
| template<std::size_t TSize1, std::size_t TSize2, typename TChar > | |
| bool | operator> (const StaticString< TSize1, TChar > &str1, const StaticString< TSize2, TChar > &str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator> (const StaticString< TSize1, TChar > &str1, const TChar *str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator> (const TChar *str1, const StaticString< TSize1, TChar > &str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, std::size_t TSize2, typename TChar > | |
| bool | operator>= (const StaticString< TSize1, TChar > &str1, const StaticString< TSize2, TChar > &str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator>= (const StaticString< TSize1, TChar > &str1, const TChar *str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, typename TChar > | |
| bool | operator>= (const TChar *str1, const StaticString< TSize1, TChar > &str2) |
| Lexicographical compare between the strings. | |
| template<std::size_t TSize1, std::size_t TSize2, typename TChar > | |
| void | swap (comms::util::StaticString< TSize1, TChar > &str1, comms::util::StaticString< TSize2, TChar > &str2) |
| Specializes the std::swap algorithm. | |
| comms::util::StaticString< TSize, TChar >::StaticString | ( | ) |
Default constructor.
| comms::util::StaticString< TSize, TChar >::StaticString | ( | size_type | count, |
| value_type | ch | ||
| ) |
Constructor variant.
| comms::util::StaticString< TSize, TChar >::StaticString | ( | const StaticString< TOtherSize, TChar > & | other, |
| size_type | pos, | ||
| size_type | count = npos |
||
| ) |
| comms::util::StaticString< TSize, TChar >::StaticString | ( | const_pointer | str, |
| size_type | count | ||
| ) |
Constructor variant.
| comms::util::StaticString< TSize, TChar >::StaticString | ( | const_pointer | str | ) |
Constructor variant.
| comms::util::StaticString< TSize, TChar >::StaticString | ( | TIter | first, |
| TIter | last | ||
| ) |
Constructor variant.
| comms::util::StaticString< TSize, TChar >::StaticString | ( | const StaticString< TSize, TChar > & | other | ) |
Copy constructor.
|
explicit |
Copy constructor variant.
| comms::util::StaticString< TSize, TChar >::StaticString | ( | std::initializer_list< value_type > | init | ) |
Constructor variant.
| StaticString & comms::util::StaticString< TSize, TChar >::append | ( | const StaticString< TAnySize, TChar > & | other | ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::append | ( | const StaticString< TAnySize, TChar > & | other, |
| size_type | pos, | ||
| size_type | count = npos |
||
| ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::append | ( | const TChar * | str | ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::append | ( | const TChar * | str, |
| size_type | count | ||
| ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::append | ( | size_type | count, |
| value_type | ch | ||
| ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::append | ( | std::initializer_list< value_type > | init | ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::append | ( | TIter | first, |
| TIter | last | ||
| ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::assign | ( | const StaticString< TSize, TChar > & | other | ) |
Assign characters to a string.
| StaticString & comms::util::StaticString< TSize, TChar >::assign | ( | const StaticString< TOtherSize, TChar > & | other | ) |
Assign characters to a string.
| StaticString & comms::util::StaticString< TSize, TChar >::assign | ( | const StaticString< TOtherSize, TChar > & | other, |
| size_type | pos, | ||
| size_type | count = npos |
||
| ) |
Assign characters to a string.
| StaticString & comms::util::StaticString< TSize, TChar >::assign | ( | const_pointer | str | ) |
Assign characters to a string.
| StaticString & comms::util::StaticString< TSize, TChar >::assign | ( | const_pointer | str, |
| size_type | count | ||
| ) |
Assign characters to a string.
| StaticString & comms::util::StaticString< TSize, TChar >::assign | ( | size_type | count, |
| value_type | ch | ||
| ) |
Assign characters to a string.
| StaticString & comms::util::StaticString< TSize, TChar >::assign | ( | std::initializer_list< value_type > | init | ) |
Assign characters to a string.
| StaticString & comms::util::StaticString< TSize, TChar >::assign | ( | TIter | first, |
| TIter | last | ||
| ) |
Assign characters to a string.
| reference comms::util::StaticString< TSize, TChar >::at | ( | size_type | pos | ) |
Access specified character with bounds checking.
The bounds are check with assertion (using COMMS_ASSERT()). When compiled with NDEBUG definition, equivalent to operator[]().
| const_reference comms::util::StaticString< TSize, TChar >::at | ( | size_type | pos | ) | const |
Access specified character with bounds checking.
The bounds are check with assertion (using COMMS_ASSERT()). When compiled with NDEBUG definition, equivalent to operator[]().
| reference comms::util::StaticString< TSize, TChar >::back | ( | ) |
| const_reference comms::util::StaticString< TSize, TChar >::back | ( | ) | const |
| iterator comms::util::StaticString< TSize, TChar >::begin | ( | ) |
Returns an iterator to the beginning.
| const_iterator comms::util::StaticString< TSize, TChar >::begin | ( | ) | const |
Returns an iterator to the beginning.
| const_pointer comms::util::StaticString< TSize, TChar >::c_str | ( | ) | const |
Returns a non-modifiable standard C character array version of the string.
| size_type comms::util::StaticString< TSize, TChar >::capacity | ( | ) | const |
returns the number of characters that can be held in currently allocated storage.
Returns TSize provided as a template argument to this class.
| const_iterator comms::util::StaticString< TSize, TChar >::cbegin | ( | ) | const |
Returns an iterator to the beginning.
| const_iterator comms::util::StaticString< TSize, TChar >::cend | ( | ) | const |
Returns an iterator to the end.
| void comms::util::StaticString< TSize, TChar >::clear | ( | ) |
Clears the contents.
| int comms::util::StaticString< TSize, TChar >::compare | ( | const StaticString< TAnySize, TChar > & | other | ) | const |
Compares two strings.
| int comms::util::StaticString< TSize, TChar >::compare | ( | const_pointer | str | ) | const |
Compares two strings.
| int comms::util::StaticString< TSize, TChar >::compare | ( | size_type | pos, |
| size_type | count, | ||
| const StaticString< TAnySize, TChar > & | other | ||
| ) | const |
Compares two strings.
| int comms::util::StaticString< TSize, TChar >::compare | ( | size_type | pos, |
| size_type | count, | ||
| const_pointer | str | ||
| ) | const |
Compares two strings.
| int comms::util::StaticString< TSize, TChar >::compare | ( | size_type | pos, |
| size_type | count1, | ||
| const_pointer | str, | ||
| size_type | count2 | ||
| ) | const |
Compares two strings.
| int comms::util::StaticString< TSize, TChar >::compare | ( | size_type | pos1, |
| size_type | count1, | ||
| const StaticString< TAnySize, TChar > & | other, | ||
| size_type | pos2, | ||
| size_type | count2 = npos |
||
| ) | const |
Compares two strings.
| size_type comms::util::StaticString< TSize, TChar >::copy | ( | pointer | dest, |
| size_type | count, | ||
| size_type | pos = 0 |
||
| ) | const |
Copies characters.
| const_reverse_iterator comms::util::StaticString< TSize, TChar >::crbegin | ( | ) | const |
Returns a reverse iterator to the beginning.
| const_reverse_iterator comms::util::StaticString< TSize, TChar >::crend | ( | ) | const |
Returns a reverse iterator to the end.
| const_pointer comms::util::StaticString< TSize, TChar >::data | ( | ) | const |
Returns a pointer to the first character of a string.
| bool comms::util::StaticString< TSize, TChar >::empty | ( | ) | const |
Checks whether the string is empty.
| iterator comms::util::StaticString< TSize, TChar >::end | ( | ) |
Returns an iterator to the end.
| const_iterator comms::util::StaticString< TSize, TChar >::end | ( | ) | const |
Returns an iterator to the end.
| iterator comms::util::StaticString< TSize, TChar >::erase | ( | const_iterator | first, |
| const_iterator | last | ||
| ) |
Removes characters.
| iterator comms::util::StaticString< TSize, TChar >::erase | ( | const_iterator | pos | ) |
Removes characters.
| StaticString & comms::util::StaticString< TSize, TChar >::erase | ( | std::size_t | idx, |
| std::size_t | count = npos |
||
| ) |
Removes characters.
| size_type comms::util::StaticString< TSize, TChar >::find | ( | const StaticString< TAnySize, TChar > & | str, |
| size_type | pos = 0 |
||
| ) | const |
Find characters in the string.
| size_type comms::util::StaticString< TSize, TChar >::find | ( | const_pointer | str, |
| size_type | pos, | ||
| size_type | count | ||
| ) | const |
Find characters in the string.
| size_type comms::util::StaticString< TSize, TChar >::find | ( | const_pointer | str, |
| size_type | pos = 0 |
||
| ) | const |
Find characters in the string.
| size_type comms::util::StaticString< TSize, TChar >::find | ( | value_type | ch, |
| size_type | pos = 0 |
||
| ) | const |
Find characters in the string.
| size_type comms::util::StaticString< TSize, TChar >::find_first_not_of | ( | const StaticString< TAnySize, TChar > & | str, |
| size_type | pos = 0 |
||
| ) | const |
Find first absence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_first_not_of | ( | const_pointer | str, |
| size_type | pos, | ||
| size_type | count | ||
| ) | const |
Find first absence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_first_not_of | ( | const_pointer | str, |
| size_type | pos = 0 |
||
| ) | const |
Find first absence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_first_not_of | ( | value_type | ch, |
| size_type | pos = 0 |
||
| ) | const |
Find first absence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_first_of | ( | const StaticString< TAnySize, TChar > & | str, |
| size_type | pos = 0 |
||
| ) | const |
Find first occurrence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_first_of | ( | const_pointer | str, |
| size_type | pos, | ||
| size_type | count | ||
| ) | const |
Find first occurrence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_first_of | ( | const_pointer | str, |
| size_type | pos = 0 |
||
| ) | const |
Find first occurrence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_first_of | ( | value_type | ch, |
| size_type | pos = 0 |
||
| ) | const |
Find first occurrence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_last_not_of | ( | const StaticString< TAnySize, TChar > & | str, |
| size_type | pos = npos |
||
| ) | const |
Find last absence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_last_not_of | ( | const_pointer | str, |
| size_type | pos, | ||
| size_type | count | ||
| ) | const |
Find last absence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_last_not_of | ( | const_pointer | str, |
| size_type | pos = npos |
||
| ) | const |
Find last absence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_last_not_of | ( | value_type | ch, |
| size_type | pos = npos |
||
| ) | const |
Find last absence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_last_of | ( | const StaticString< TAnySize, TChar > & | str, |
| size_type | pos = npos |
||
| ) | const |
Find last occurrence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_last_of | ( | const_pointer | str, |
| size_type | pos, | ||
| size_type | count | ||
| ) | const |
Find last occurrence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_last_of | ( | const_pointer | str, |
| size_type | pos = npos |
||
| ) | const |
Find last occurrence of characters.
| size_type comms::util::StaticString< TSize, TChar >::find_last_of | ( | value_type | ch, |
| size_type | pos = npos |
||
| ) | const |
Find last occurrence of characters.
| reference comms::util::StaticString< TSize, TChar >::front | ( | ) |
| const_reference comms::util::StaticString< TSize, TChar >::front | ( | ) | const |
| iterator comms::util::StaticString< TSize, TChar >::insert | ( | const_iterator | pos, |
| size_type | count, | ||
| value_type | ch | ||
| ) |
Inserts characters.
| iterator comms::util::StaticString< TSize, TChar >::insert | ( | const_iterator | pos, |
| std::initializer_list< value_type > | init | ||
| ) |
Inserts characters.
| iterator comms::util::StaticString< TSize, TChar >::insert | ( | const_iterator | pos, |
| TIter | first, | ||
| TIter | last | ||
| ) |
Inserts characters.
| iterator comms::util::StaticString< TSize, TChar >::insert | ( | const_iterator | pos, |
| value_type | ch | ||
| ) |
Inserts characters.
| StaticString & comms::util::StaticString< TSize, TChar >::insert | ( | size_type | idx, |
| const StaticString< TAnySize, TChar > & | str | ||
| ) |
Inserts characters.
| StaticString & comms::util::StaticString< TSize, TChar >::insert | ( | size_type | idx, |
| const StaticString< TAnySize, TChar > & | str, | ||
| size_type | str_idx, | ||
| size_type | count = npos |
||
| ) |
Inserts characters.
| StaticString & comms::util::StaticString< TSize, TChar >::insert | ( | size_type | idx, |
| const_pointer | str | ||
| ) |
Inserts characters.
| StaticString & comms::util::StaticString< TSize, TChar >::insert | ( | size_type | idx, |
| const_pointer | str, | ||
| size_type | count | ||
| ) |
Inserts characters.
| StaticString & comms::util::StaticString< TSize, TChar >::insert | ( | size_type | idx, |
| size_type | count, | ||
| value_type | ch | ||
| ) |
Inserts characters.
| size_type comms::util::StaticString< TSize, TChar >::length | ( | ) | const |
returns the number of characters.
| size_type comms::util::StaticString< TSize, TChar >::max_size | ( | ) | const |
| StaticString & comms::util::StaticString< TSize, TChar >::operator+= | ( | const StaticString< TAnySize, TChar > & | other | ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::operator+= | ( | const_pointer | str | ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::operator+= | ( | std::initializer_list< value_type > | init | ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::operator+= | ( | value_type | ch | ) |
Appends characters to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::operator= | ( | const StaticString< TSize, TChar > & | other | ) |
Copy assignment.
| StaticString & comms::util::StaticString< TSize, TChar >::operator= | ( | const StaticString< TOtherSize, TChar > & | other | ) |
Copy assignment from string of different capacity.
| StaticString & comms::util::StaticString< TSize, TChar >::operator= | ( | const_pointer | str | ) |
Assignment operator.
| StaticString & comms::util::StaticString< TSize, TChar >::operator= | ( | std::initializer_list< value_type > | init | ) |
Assignment operator.
| StaticString & comms::util::StaticString< TSize, TChar >::operator= | ( | value_type | ch | ) |
Assignment operator.
| reference comms::util::StaticString< TSize, TChar >::operator[] | ( | size_type | pos | ) |
Access specified character without bounds checking.
| const_reference comms::util::StaticString< TSize, TChar >::operator[] | ( | size_type | pos | ) | const |
Access specified character without bounds checking.
| void comms::util::StaticString< TSize, TChar >::pop_back | ( | ) |
| void comms::util::StaticString< TSize, TChar >::push_back | ( | value_type | ch | ) |
Appends a character to the end.
| reverse_iterator comms::util::StaticString< TSize, TChar >::rbegin | ( | ) |
Returns a reverse iterator to the beginning.
| const_reverse_iterator comms::util::StaticString< TSize, TChar >::rbegin | ( | ) | const |
Returns a reverse iterator to the beginning.
| reverse_iterator comms::util::StaticString< TSize, TChar >::rend | ( | ) |
Returns a reverse iterator to the end.
| const_reverse_iterator comms::util::StaticString< TSize, TChar >::rend | ( | ) | const |
Returns a reverse iterator to the end.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | const_iterator | first, |
| const_iterator | last, | ||
| const StaticString< TAnySize, TChar > & | other | ||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | const_iterator | first, |
| const_iterator | last, | ||
| const_pointer | str | ||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | const_iterator | first, |
| const_iterator | last, | ||
| const_pointer | str, | ||
| size_type | count2 | ||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | const_iterator | first, |
| const_iterator | last, | ||
| size_type | count2, | ||
| value_type | ch | ||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | const_iterator | first, |
| const_iterator | last, | ||
| std::initializer_list< value_type > | init | ||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | const_iterator | first, |
| const_iterator | last, | ||
| TIter | first2, | ||
| TIter | last2 | ||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | size_type | pos, |
| size_type | count, | ||
| const StaticString< TAnySize, TChar > & | other | ||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | size_type | pos, |
| size_type | count, | ||
| const StaticString< TAnySize, TChar > & | other, | ||
| size_type | pos2, | ||
| size_type | count2 = npos |
||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | size_type | pos, |
| size_type | count, | ||
| const_pointer | str | ||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | size_type | pos, |
| size_type | count, | ||
| const_pointer | str, | ||
| size_type | count2 | ||
| ) |
Replaces specified portion of a string.
| StaticString & comms::util::StaticString< TSize, TChar >::replace | ( | size_type | pos, |
| size_type | count, | ||
| size_type | count2, | ||
| value_type | ch | ||
| ) |
Replaces specified portion of a string.
| void comms::util::StaticString< TSize, TChar >::reserve | ( | size_type | ) |
| void comms::util::StaticString< TSize, TChar >::resize | ( | size_type | count | ) |
Changes the number of characters stored.
| void comms::util::StaticString< TSize, TChar >::resize | ( | size_type | count, |
| value_type | ch | ||
| ) |
Changes the number of characters stored.
| size_type comms::util::StaticString< TSize, TChar >::rfind | ( | const StaticString< TAnySize, TChar > & | str, |
| size_type | pos = npos |
||
| ) | const |
Find the last occurrence of the substring.
| size_type comms::util::StaticString< TSize, TChar >::rfind | ( | const_pointer | str, |
| size_type | pos, | ||
| size_type | count | ||
| ) | const |
Find the last occurrence of the substring.
| size_type comms::util::StaticString< TSize, TChar >::rfind | ( | const_pointer | str, |
| size_type | pos = npos |
||
| ) | const |
Find the last occurrence of the substring.
| size_type comms::util::StaticString< TSize, TChar >::rfind | ( | value_type | ch, |
| size_type | pos = npos |
||
| ) | const |
Find the last occurrence of the substring.
| void comms::util::StaticString< TSize, TChar >::shrink_to_fit | ( | ) |
| size_type comms::util::StaticString< TSize, TChar >::size | ( | ) | const |
returns the number of characters.
| StaticString comms::util::StaticString< TSize, TChar >::substr | ( | size_type | pos = 0, |
| size_type | count = npos |
||
| ) | const |
Returns a substring.
| void comms::util::StaticString< TSize, TChar >::swap | ( | StaticString< TAnySize, TChar > & | other | ) |
Swaps the contents of two strings.
|
related |
Inequality compare between the strings.
|
related |
Inequality compare between the strings.
|
related |
Inequality compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Equality compare between the strings.
|
related |
Equality compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Lexicographical compare between the strings.
|
related |
Specializes the std::swap algorithm.