COMMS
Template library intended to help with implementation of communication protocols.
Public Types | Public Member Functions | Static Public Attributes | Related Functions | List of all members
comms::util::StaticString< TSize, TChar > Class Template Reference

#include "comms/util/StaticString.h"

Detailed Description

template<std::size_t TSize, typename TChar = char>
class comms::util::StaticString< TSize, TChar >

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.

Template Parameters
TSizeMaximum length of the string, not including zero termination character.
Typeof the single character.

Inherits comms::util::details::StaticStringStorageBase< char, TSize+1 >, and comms::util::details::StaticStringBase< char >.

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. More...
 
 StaticString (const StaticString &other)
 Copy constructor. More...
 
template<std::size_t TOtherSize>
 StaticString (const StaticString< TOtherSize, TChar > &other)
 Copy constructor variant. More...
 
template<std::size_t TOtherSize>
 StaticString (const StaticString< TOtherSize, TChar > &other, size_type pos, size_type count=npos)
 Constructor variant. More...
 
 StaticString (const_pointer str)
 Constructor variant. More...
 
 StaticString (const_pointer str, size_type count)
 Constructor variant. More...
 
 StaticString (size_type count, value_type ch)
 Constructor variant. More...
 
 StaticString (std::initializer_list< value_type > init)
 Constructor variant. More...
 
template<typename TIter >
 StaticString (TIter first, TIter last)
 Constructor variant. More...
 
template<std::size_t TAnySize>
StaticStringappend (const StaticString< TAnySize, TChar > &other)
 Appends characters to the end. More...
 
template<std::size_t TAnySize>
StaticStringappend (const StaticString< TAnySize, TChar > &other, size_type pos, size_type count=npos)
 Appends characters to the end. More...
 
StaticStringappend (const TChar *str)
 Appends characters to the end. More...
 
StaticStringappend (const TChar *str, size_type count)
 Appends characters to the end. More...
 
StaticStringappend (size_type count, value_type ch)
 Appends characters to the end. More...
 
StaticStringappend (std::initializer_list< value_type > init)
 Appends characters to the end. More...
 
template<typename TIter >
StaticStringappend (TIter first, TIter last)
 Appends characters to the end. More...
 
template<typename TOtherSize >
StaticStringassign (const StaticString &other)
 Assign characters to a string. More...
 
template<std::size_t TOtherSize>
StaticStringassign (const StaticString< TOtherSize, TChar > &other)
 Assign characters to a string. More...
 
template<std::size_t TOtherSize>
StaticStringassign (const StaticString< TOtherSize, TChar > &other, size_type pos, size_type count=npos)
 Assign characters to a string. More...
 
StaticStringassign (const_pointer str)
 Assign characters to a string. More...
 
StaticStringassign (const_pointer str, size_type count)
 Assign characters to a string. More...
 
StaticStringassign (size_type count, value_type ch)
 Assign characters to a string. More...
 
StaticStringassign (std::initializer_list< value_type > init)
 Assign characters to a string. More...
 
template<typename TIter >
StaticStringassign (TIter first, TIter last)
 Assign characters to a string. More...
 
reference at (size_type pos)
 Access specified character with bounds checking. More...
 
const_reference at (size_type pos) const
 Access specified character with bounds checking. More...
 
reference back ()
 Accesses the last character. More...
 
const_reference back () const
 Accesses the last character. More...
 
iterator begin ()
 Returns an iterator to the beginning. More...
 
const_iterator begin () const
 Returns an iterator to the beginning. More...
 
const_pointer c_str () const
 Returns a non-modifiable standard C character array version of the string. More...
 
size_type capacity () const
 returns the number of characters that can be held in currently allocated storage. More...
 
const_iterator cbegin () const
 Returns an iterator to the beginning. More...
 
const_iterator cend () const
 Returns an iterator to the end. More...
 
void clear ()
 Clears the contents. More...
 
template<std::size_t TAnySize>
int compare (const StaticString< TAnySize, TChar > &other) const
 Compares two strings. More...
 
int compare (const_pointer str) const
 Compares two strings. More...
 
template<std::size_t TAnySize>
int compare (size_type pos, size_type count, const StaticString< TAnySize, TChar > &other) const
 Compares two strings. More...
 
int compare (size_type pos, size_type count, const_pointer str) const
 Compares two strings. More...
 
int compare (size_type pos, size_type count1, const_pointer str, size_type count2) const
 Compares two strings. More...
 
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. More...
 
size_type copy (pointer dest, size_type count, size_type pos=0) const
 Copies characters. More...
 
const_reverse_iterator crbegin () const
 Returns a reverse iterator to the beginning. More...
 
const_reverse_iterator crend () const
 Returns a reverse iterator to the end. More...
 
const_pointer data () const
 Returns a pointer to the first character of a string. More...
 
bool empty () const
 Checks whether the string is empty. More...
 
iterator end ()
 Returns an iterator to the end. More...
 
const_iterator end () const
 Returns an iterator to the end. More...
 
iterator erase (const_iterator first, const_iterator last)
 Removes characters. More...
 
iterator erase (const_iterator pos)
 Removes characters. More...
 
StaticStringerase (std::size_t idx, std::size_t count=npos)
 Removes characters. More...
 
template<std::size_t TAnySize>
size_type find (const StaticString< TAnySize, TChar > &str, size_type pos=0) const
 Find characters in the string. More...
 
size_type find (const_pointer str, size_type pos, size_type count) const
 Find characters in the string. More...
 
size_type find (const_pointer str, size_type pos=0) const
 Find characters in the string. More...
 
size_type find (value_type ch, size_type pos=0) const
 Find characters in the string. More...
 
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. More...
 
size_type find_first_not_of (const_pointer str, size_type pos, size_type count) const
 Find first absence of characters. More...
 
size_type find_first_not_of (const_pointer str, size_type pos=0) const
 Find first absence of characters. More...
 
size_type find_first_not_of (value_type ch, size_type pos=0) const
 Find first absence of characters. More...
 
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. More...
 
size_type find_first_of (const_pointer str, size_type pos, size_type count) const
 Find first occurrence of characters. More...
 
size_type find_first_of (const_pointer str, size_type pos=0) const
 Find first occurrence of characters. More...
 
size_type find_first_of (value_type ch, size_type pos=0) const
 Find first occurrence of characters. More...
 
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. More...
 
size_type find_last_not_of (const_pointer str, size_type pos, size_type count) const
 Find last absence of characters. More...
 
size_type find_last_not_of (const_pointer str, size_type pos=npos) const
 Find last absence of characters. More...
 
size_type find_last_not_of (value_type ch, size_type pos=npos) const
 Find last absence of characters. More...
 
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. More...
 
size_type find_last_of (const_pointer str, size_type pos, size_type count) const
 Find last occurrence of characters. More...
 
size_type find_last_of (const_pointer str, size_type pos=npos) const
 Find last occurrence of characters. More...
 
size_type find_last_of (value_type ch, size_type pos=npos) const
 Find last occurrence of characters. More...
 
reference front ()
 Accesses the first character. More...
 
const_reference front () const
 Accesses the first character. More...
 
iterator insert (const_iterator pos, size_type count, value_type ch)
 Inserts characters. More...
 
iterator insert (const_iterator pos, std::initializer_list< value_type > init)
 Inserts characters. More...
 
template<typename TIter >
iterator insert (const_iterator pos, TIter first, TIter last)
 Inserts characters. More...
 
iterator insert (const_iterator pos, value_type ch)
 Inserts characters. More...
 
template<std::size_t TAnySize>
StaticStringinsert (size_type idx, const StaticString< TAnySize, TChar > &str)
 Inserts characters. More...
 
template<std::size_t TAnySize>
StaticStringinsert (size_type idx, const StaticString< TAnySize, TChar > &str, size_type str_idx, size_type count=npos)
 Inserts characters. More...
 
StaticStringinsert (size_type idx, const_pointer str)
 Inserts characters. More...
 
StaticStringinsert (size_type idx, const_pointer str, size_type count)
 Inserts characters. More...
 
StaticStringinsert (size_type idx, size_type count, value_type ch)
 Inserts characters. More...
 
size_type length () const
 returns the number of characters. More...
 
size_type max_size () const
 Returns the maximum number of characters. More...
 
template<std::size_t TAnySize>
StaticStringoperator+= (const StaticString< TAnySize, TChar > &other)
 Appends characters to the end. More...
 
StaticStringoperator+= (const_pointer str)
 Appends characters to the end. More...
 
StaticStringoperator+= (std::initializer_list< value_type > init)
 Appends characters to the end. More...
 
StaticStringoperator+= (value_type ch)
 Appends characters to the end. More...
 
bool operator< (const_pointer str) const
 Lexicographical compare to other string.
 
StaticStringoperator= (const StaticString &other)
 Copy assignment. More...
 
template<std::size_t TOtherSize>
StaticStringoperator= (const StaticString< TOtherSize, TChar > &other)
 Copy assignment from string of different capacity. More...
 
StaticStringoperator= (const_pointer str)
 Assignment operator. More...
 
StaticStringoperator= (std::initializer_list< value_type > init)
 Assignment operator. More...
 
StaticStringoperator= (value_type ch)
 Assignment operator. More...
 
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. More...
 
const_reference operator[] (size_type pos) const
 Access specified character without bounds checking. More...
 
void pop_back ()
 Removes the last character. More...
 
void push_back (value_type ch)
 Appends a character to the end. More...
 
reverse_iterator rbegin ()
 Returns a reverse iterator to the beginning. More...
 
const_reverse_iterator rbegin () const
 Returns a reverse iterator to the beginning. More...
 
reverse_iterator rend ()
 Returns a reverse iterator to the end. More...
 
const_reverse_iterator rend () const
 Returns a reverse iterator to the end. More...
 
template<std::size_t TAnySize>
StaticStringreplace (const_iterator first, const_iterator last, const StaticString< TAnySize, TChar > &other)
 Replaces specified portion of a string. More...
 
StaticStringreplace (const_iterator first, const_iterator last, const_pointer str)
 Replaces specified portion of a string. More...
 
StaticStringreplace (const_iterator first, const_iterator last, const_pointer str, size_type count2)
 Replaces specified portion of a string. More...
 
StaticStringreplace (const_iterator first, const_iterator last, size_type count2, value_type ch)
 Replaces specified portion of a string. More...
 
StaticStringreplace (const_iterator first, const_iterator last, std::initializer_list< value_type > init)
 Replaces specified portion of a string. More...
 
template<typename TIter >
StaticStringreplace (const_iterator first, const_iterator last, TIter first2, TIter last2)
 Replaces specified portion of a string. More...
 
template<std::size_t TAnySize>
StaticStringreplace (size_type pos, size_type count, const StaticString< TAnySize, TChar > &other)
 Replaces specified portion of a string. More...
 
template<std::size_t TAnySize>
StaticStringreplace (size_type pos, size_type count, const StaticString< TAnySize, TChar > &other, size_type pos2, size_type count2=npos)
 Replaces specified portion of a string. More...
 
StaticStringreplace (size_type pos, size_type count, const_pointer str)
 Replaces specified portion of a string. More...
 
StaticStringreplace (size_type pos, size_type count, const_pointer str, size_type count2)
 Replaces specified portion of a string. More...
 
StaticStringreplace (size_type pos, size_type count, size_type count2, value_type ch)
 Replaces specified portion of a string. More...
 
void reserve (size_type)
 Reserves storage. More...
 
void resize (size_type count)
 Changes the number of characters stored. More...
 
void resize (size_type count, value_type ch)
 Changes the number of characters stored. More...
 
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. More...
 
size_type rfind (const_pointer str, size_type pos, size_type count) const
 Find the last occurrence of the substring. More...
 
size_type rfind (const_pointer str, size_type pos=npos) const
 Find the last occurrence of the substring. More...
 
size_type rfind (value_type ch, size_type pos=npos) const
 Find the last occurrence of the substring. More...
 
void shrink_to_fit ()
 Reduces memory usage by freeing unused memory. More...
 
size_type size () const
 returns the number of characters. More...
 
StaticString substr (size_type pos=0, size_type count=npos) const
 Returns a substring. More...
 
template<std::size_t TAnySize>
void swap (StaticString< TAnySize, TChar > &other)
 Swaps the contents of two strings. More...
 

Static Public Attributes

static decltype(Base::npos) const npos = Base::npos
 Same as std::string::npos.
 

Related Functions

(Note that these are not member functions.)

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. More...
 
template<std::size_t TSize1, typename TChar >
bool operator!= (const StaticString< TSize1, TChar > &str1, const TChar *str2)
 Inequality compare between the strings. More...
 
template<std::size_t TSize1, typename TChar >
bool operator!= (const TChar *str1, const StaticString< TSize1, TChar > &str2)
 Inequality compare between the strings. More...
 
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. More...
 
template<std::size_t TSize1, typename TChar >
bool operator< (const StaticString< TSize1, TChar > &str1, const TChar *str2)
 Lexicographical compare between the strings. More...
 
template<std::size_t TSize1, typename TChar >
bool operator< (const TChar *str1, const StaticString< TSize1, TChar > &str2)
 Lexicographical compare between the strings. More...
 
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. More...
 
template<std::size_t TSize1, typename TChar >
bool operator<= (const StaticString< TSize1, TChar > &str1, const TChar *str2)
 Lexicographical compare between the strings. More...
 
template<std::size_t TSize1, typename TChar >
bool operator<= (const TChar *str1, const StaticString< TSize1, TChar > &str2)
 Lexicographical compare between the strings. More...
 
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. More...
 
template<std::size_t TSize1, typename TChar >
bool operator== (const StaticString< TSize1, TChar > &str1, const TChar *str2)
 Equality compare between the strings. More...
 
template<std::size_t TSize1, typename TChar >
bool operator== (const TChar *str1, const StaticString< TSize1, TChar > &str2)
 Equality compare between the strings. More...
 
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. More...
 
template<std::size_t TSize1, typename TChar >
bool operator> (const StaticString< TSize1, TChar > &str1, const TChar *str2)
 Lexicographical compare between the strings. More...
 
template<std::size_t TSize1, typename TChar >
bool operator> (const TChar *str1, const StaticString< TSize1, TChar > &str2)
 Lexicographical compare between the strings. More...
 
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. More...
 
template<std::size_t TSize1, typename TChar >
bool operator>= (const StaticString< TSize1, TChar > &str1, const TChar *str2)
 Lexicographical compare between the strings. More...
 
template<std::size_t TSize1, typename TChar >
bool operator>= (const TChar *str1, const StaticString< TSize1, TChar > &str2)
 Lexicographical compare between the strings. More...
 
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. More...
 

Constructor & Destructor Documentation

◆ StaticString() [1/9]

template<std::size_t TSize, typename TChar = char>
comms::util::StaticString< TSize, TChar >::StaticString ( )

Default constructor.

See also
Reference

◆ StaticString() [2/9]

template<std::size_t TSize, typename TChar = char>
comms::util::StaticString< TSize, TChar >::StaticString ( size_type  count,
value_type  ch 
)

Constructor variant.

See also
Reference

◆ StaticString() [3/9]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TOtherSize>
comms::util::StaticString< TSize, TChar >::StaticString ( const StaticString< TOtherSize, TChar > &  other,
size_type  pos,
size_type  count = npos 
)

Constructor variant.

Allows reception of any other StaticString with any size.

See also
Reference

◆ StaticString() [4/9]

template<std::size_t TSize, typename TChar = char>
comms::util::StaticString< TSize, TChar >::StaticString ( const_pointer  str,
size_type  count 
)

Constructor variant.

See also
Reference

◆ StaticString() [5/9]

template<std::size_t TSize, typename TChar = char>
comms::util::StaticString< TSize, TChar >::StaticString ( const_pointer  str)

Constructor variant.

See also
Reference

◆ StaticString() [6/9]

template<std::size_t TSize, typename TChar = char>
template<typename TIter >
comms::util::StaticString< TSize, TChar >::StaticString ( TIter  first,
TIter  last 
)

Constructor variant.

See also
Reference

◆ StaticString() [7/9]

template<std::size_t TSize, typename TChar = char>
comms::util::StaticString< TSize, TChar >::StaticString ( const StaticString< TSize, TChar > &  other)

Copy constructor.

See also
Reference

◆ StaticString() [8/9]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TOtherSize>
comms::util::StaticString< TSize, TChar >::StaticString ( const StaticString< TOtherSize, TChar > &  other)
explicit

Copy constructor variant.

See also
Reference

◆ StaticString() [9/9]

template<std::size_t TSize, typename TChar = char>
comms::util::StaticString< TSize, TChar >::StaticString ( std::initializer_list< value_type init)

Constructor variant.

See also
Reference

Member Function Documentation

◆ append() [1/7]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
StaticString& comms::util::StaticString< TSize, TChar >::append ( const StaticString< TAnySize, TChar > &  other)

Appends characters to the end.

See also
Reference

◆ append() [2/7]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
StaticString& comms::util::StaticString< TSize, TChar >::append ( const StaticString< TAnySize, TChar > &  other,
size_type  pos,
size_type  count = npos 
)

Appends characters to the end.

See also
Reference

◆ append() [3/7]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::append ( const TChar *  str)

Appends characters to the end.

See also
Reference

◆ append() [4/7]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::append ( const TChar *  str,
size_type  count 
)

Appends characters to the end.

See also
Reference

◆ append() [5/7]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::append ( size_type  count,
value_type  ch 
)

Appends characters to the end.

See also
Reference

◆ append() [6/7]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::append ( std::initializer_list< value_type init)

Appends characters to the end.

See also
Reference

◆ append() [7/7]

template<std::size_t TSize, typename TChar = char>
template<typename TIter >
StaticString& comms::util::StaticString< TSize, TChar >::append ( TIter  first,
TIter  last 
)

Appends characters to the end.

See also
Reference

◆ assign() [1/8]

template<std::size_t TSize, typename TChar = char>
template<typename TOtherSize >
StaticString& comms::util::StaticString< TSize, TChar >::assign ( const StaticString< TSize, TChar > &  other)

Assign characters to a string.

See also
Reference

◆ assign() [2/8]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TOtherSize>
StaticString& comms::util::StaticString< TSize, TChar >::assign ( const StaticString< TOtherSize, TChar > &  other)

Assign characters to a string.

See also
Reference

◆ assign() [3/8]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TOtherSize>
StaticString& comms::util::StaticString< TSize, TChar >::assign ( const StaticString< TOtherSize, TChar > &  other,
size_type  pos,
size_type  count = npos 
)

Assign characters to a string.

See also
Reference

◆ assign() [4/8]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::assign ( const_pointer  str)

Assign characters to a string.

See also
Reference

◆ assign() [5/8]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::assign ( const_pointer  str,
size_type  count 
)

Assign characters to a string.

See also
Reference

◆ assign() [6/8]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::assign ( size_type  count,
value_type  ch 
)

Assign characters to a string.

See also
Reference

◆ assign() [7/8]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::assign ( std::initializer_list< value_type init)

Assign characters to a string.

See also
Reference

◆ assign() [8/8]

template<std::size_t TSize, typename TChar = char>
template<typename TIter >
StaticString& comms::util::StaticString< TSize, TChar >::assign ( TIter  first,
TIter  last 
)

Assign characters to a string.

See also
Reference

◆ at() [1/2]

template<std::size_t TSize, typename TChar = char>
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[]().

See also
Reference

◆ at() [2/2]

template<std::size_t TSize, typename TChar = char>
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[]().

See also
Reference

◆ back() [1/2]

template<std::size_t TSize, typename TChar = char>
reference comms::util::StaticString< TSize, TChar >::back ( )

Accesses the last character.

Precondition
The string mustn't be empty.
See also
Reference

◆ back() [2/2]

template<std::size_t TSize, typename TChar = char>
const_reference comms::util::StaticString< TSize, TChar >::back ( ) const

Accesses the last character.

Precondition
The string mustn't be empty.
See also
Reference

◆ begin() [1/2]

template<std::size_t TSize, typename TChar = char>
iterator comms::util::StaticString< TSize, TChar >::begin ( )

Returns an iterator to the beginning.

See also
Reference

◆ begin() [2/2]

template<std::size_t TSize, typename TChar = char>
const_iterator comms::util::StaticString< TSize, TChar >::begin ( ) const

Returns an iterator to the beginning.

See also
Reference

◆ c_str()

template<std::size_t TSize, typename TChar = char>
const_pointer comms::util::StaticString< TSize, TChar >::c_str ( ) const

Returns a non-modifiable standard C character array version of the string.

See also
Reference

◆ capacity()

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ cbegin()

template<std::size_t TSize, typename TChar = char>
const_iterator comms::util::StaticString< TSize, TChar >::cbegin ( ) const

Returns an iterator to the beginning.

See also
Reference

◆ cend()

template<std::size_t TSize, typename TChar = char>
const_iterator comms::util::StaticString< TSize, TChar >::cend ( ) const

Returns an iterator to the end.

See also
Reference

◆ clear()

template<std::size_t TSize, typename TChar = char>
void comms::util::StaticString< TSize, TChar >::clear ( )

Clears the contents.

See also
Reference

◆ compare() [1/6]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
int comms::util::StaticString< TSize, TChar >::compare ( const StaticString< TAnySize, TChar > &  other) const

Compares two strings.

See also
Reference

◆ compare() [2/6]

template<std::size_t TSize, typename TChar = char>
int comms::util::StaticString< TSize, TChar >::compare ( const_pointer  str) const

Compares two strings.

See also
Reference

◆ compare() [3/6]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
int comms::util::StaticString< TSize, TChar >::compare ( size_type  pos,
size_type  count,
const StaticString< TAnySize, TChar > &  other 
) const

Compares two strings.

See also
Reference

◆ compare() [4/6]

template<std::size_t TSize, typename TChar = char>
int comms::util::StaticString< TSize, TChar >::compare ( size_type  pos,
size_type  count,
const_pointer  str 
) const

Compares two strings.

See also
Reference

◆ compare() [5/6]

template<std::size_t TSize, typename TChar = char>
int comms::util::StaticString< TSize, TChar >::compare ( size_type  pos,
size_type  count1,
const_pointer  str,
size_type  count2 
) const

Compares two strings.

See also
Reference

◆ compare() [6/6]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
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.

See also
Reference

◆ copy()

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::copy ( pointer  dest,
size_type  count,
size_type  pos = 0 
) const

Copies characters.

See also
Reference

◆ crbegin()

template<std::size_t TSize, typename TChar = char>
const_reverse_iterator comms::util::StaticString< TSize, TChar >::crbegin ( ) const

Returns a reverse iterator to the beginning.

See also
Reference

◆ crend()

template<std::size_t TSize, typename TChar = char>
const_reverse_iterator comms::util::StaticString< TSize, TChar >::crend ( ) const

Returns a reverse iterator to the end.

See also
Reference

◆ data()

template<std::size_t TSize, typename TChar = char>
const_pointer comms::util::StaticString< TSize, TChar >::data ( ) const

Returns a pointer to the first character of a string.

See also
Reference

◆ empty()

template<std::size_t TSize, typename TChar = char>
bool comms::util::StaticString< TSize, TChar >::empty ( ) const

Checks whether the string is empty.

See also
Reference

◆ end() [1/2]

template<std::size_t TSize, typename TChar = char>
iterator comms::util::StaticString< TSize, TChar >::end ( )

Returns an iterator to the end.

See also
Reference

◆ end() [2/2]

template<std::size_t TSize, typename TChar = char>
const_iterator comms::util::StaticString< TSize, TChar >::end ( ) const

Returns an iterator to the end.

See also
Reference

◆ erase() [1/3]

template<std::size_t TSize, typename TChar = char>
iterator comms::util::StaticString< TSize, TChar >::erase ( const_iterator  first,
const_iterator  last 
)

Removes characters.

See also
Reference

◆ erase() [2/3]

template<std::size_t TSize, typename TChar = char>
iterator comms::util::StaticString< TSize, TChar >::erase ( const_iterator  pos)

Removes characters.

See also
Reference

◆ erase() [3/3]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::erase ( std::size_t  idx,
std::size_t  count = npos 
)

Removes characters.

See also
Reference

◆ find() [1/4]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
size_type comms::util::StaticString< TSize, TChar >::find ( const StaticString< TAnySize, TChar > &  str,
size_type  pos = 0 
) const

Find characters in the string.

See also
Reference

◆ find() [2/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find ( const_pointer  str,
size_type  pos,
size_type  count 
) const

Find characters in the string.

See also
Reference

◆ find() [3/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find ( const_pointer  str,
size_type  pos = 0 
) const

Find characters in the string.

See also
Reference

◆ find() [4/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find ( value_type  ch,
size_type  pos = 0 
) const

Find characters in the string.

See also
Reference

◆ find_first_not_of() [1/4]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
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.

See also
Reference

◆ find_first_not_of() [2/4]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ find_first_not_of() [3/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find_first_not_of ( const_pointer  str,
size_type  pos = 0 
) const

Find first absence of characters.

See also
Reference

◆ find_first_not_of() [4/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find_first_not_of ( value_type  ch,
size_type  pos = 0 
) const

Find first absence of characters.

See also
Reference

◆ find_first_of() [1/4]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
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.

See also
Reference

◆ find_first_of() [2/4]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ find_first_of() [3/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find_first_of ( const_pointer  str,
size_type  pos = 0 
) const

Find first occurrence of characters.

See also
Reference

◆ find_first_of() [4/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find_first_of ( value_type  ch,
size_type  pos = 0 
) const

Find first occurrence of characters.

See also
Reference

◆ find_last_not_of() [1/4]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
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.

See also
Reference

◆ find_last_not_of() [2/4]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ find_last_not_of() [3/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find_last_not_of ( const_pointer  str,
size_type  pos = npos 
) const

Find last absence of characters.

See also
Reference

◆ find_last_not_of() [4/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find_last_not_of ( value_type  ch,
size_type  pos = npos 
) const

Find last absence of characters.

See also
Reference

◆ find_last_of() [1/4]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
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.

See also
Reference

◆ find_last_of() [2/4]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ find_last_of() [3/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find_last_of ( const_pointer  str,
size_type  pos = npos 
) const

Find last occurrence of characters.

See also
Reference

◆ find_last_of() [4/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::find_last_of ( value_type  ch,
size_type  pos = npos 
) const

Find last occurrence of characters.

See also
Reference

◆ front() [1/2]

template<std::size_t TSize, typename TChar = char>
reference comms::util::StaticString< TSize, TChar >::front ( )

Accesses the first character.

Precondition
The string mustn't be empty.
See also
Reference

◆ front() [2/2]

template<std::size_t TSize, typename TChar = char>
const_reference comms::util::StaticString< TSize, TChar >::front ( ) const

Accesses the first character.

Precondition
The string mustn't be empty.
See also
Reference

◆ insert() [1/9]

template<std::size_t TSize, typename TChar = char>
iterator comms::util::StaticString< TSize, TChar >::insert ( const_iterator  pos,
size_type  count,
value_type  ch 
)

Inserts characters.

See also
Reference

◆ insert() [2/9]

template<std::size_t TSize, typename TChar = char>
iterator comms::util::StaticString< TSize, TChar >::insert ( const_iterator  pos,
std::initializer_list< value_type init 
)

Inserts characters.

See also
Reference

◆ insert() [3/9]

template<std::size_t TSize, typename TChar = char>
template<typename TIter >
iterator comms::util::StaticString< TSize, TChar >::insert ( const_iterator  pos,
TIter  first,
TIter  last 
)

Inserts characters.

See also
Reference

◆ insert() [4/9]

template<std::size_t TSize, typename TChar = char>
iterator comms::util::StaticString< TSize, TChar >::insert ( const_iterator  pos,
value_type  ch 
)

Inserts characters.

See also
Reference

◆ insert() [5/9]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
StaticString& comms::util::StaticString< TSize, TChar >::insert ( size_type  idx,
const StaticString< TAnySize, TChar > &  str 
)

Inserts characters.

See also
Reference

◆ insert() [6/9]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
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.

See also
Reference

◆ insert() [7/9]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::insert ( size_type  idx,
const_pointer  str 
)

Inserts characters.

See also
Reference

◆ insert() [8/9]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::insert ( size_type  idx,
const_pointer  str,
size_type  count 
)

Inserts characters.

See also
Reference

◆ insert() [9/9]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::insert ( size_type  idx,
size_type  count,
value_type  ch 
)

Inserts characters.

See also
Reference

◆ length()

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::length ( ) const

returns the number of characters.

See also
Reference

◆ max_size()

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::max_size ( ) const

Returns the maximum number of characters.

Same as capacity().

See also
Reference

◆ operator+=() [1/4]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
StaticString& comms::util::StaticString< TSize, TChar >::operator+= ( const StaticString< TAnySize, TChar > &  other)

Appends characters to the end.

See also
Reference

◆ operator+=() [2/4]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::operator+= ( const_pointer  str)

Appends characters to the end.

See also
Reference

◆ operator+=() [3/4]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::operator+= ( std::initializer_list< value_type init)

Appends characters to the end.

See also
Reference

◆ operator+=() [4/4]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::operator+= ( value_type  ch)

Appends characters to the end.

See also
Reference

◆ operator=() [1/5]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::operator= ( const StaticString< TSize, TChar > &  other)

Copy assignment.

See also
Reference

◆ operator=() [2/5]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TOtherSize>
StaticString& comms::util::StaticString< TSize, TChar >::operator= ( const StaticString< TOtherSize, TChar > &  other)

Copy assignment from string of different capacity.

See also
Reference

◆ operator=() [3/5]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::operator= ( const_pointer  str)

Assignment operator.

See also
Reference

◆ operator=() [4/5]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::operator= ( std::initializer_list< value_type init)

Assignment operator.

See also
Reference

◆ operator=() [5/5]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::operator= ( value_type  ch)

Assignment operator.

See also
Reference

◆ operator[]() [1/2]

template<std::size_t TSize, typename TChar = char>
reference comms::util::StaticString< TSize, TChar >::operator[] ( size_type  pos)

Access specified character without bounds checking.

See also
Reference

◆ operator[]() [2/2]

template<std::size_t TSize, typename TChar = char>
const_reference comms::util::StaticString< TSize, TChar >::operator[] ( size_type  pos) const

Access specified character without bounds checking.

See also
Reference

◆ pop_back()

template<std::size_t TSize, typename TChar = char>
void comms::util::StaticString< TSize, TChar >::pop_back ( )

Removes the last character.

Precondition
The string mustn't be empty.
See also
Reference

◆ push_back()

template<std::size_t TSize, typename TChar = char>
void comms::util::StaticString< TSize, TChar >::push_back ( value_type  ch)

Appends a character to the end.

See also
Reference

◆ rbegin() [1/2]

template<std::size_t TSize, typename TChar = char>
reverse_iterator comms::util::StaticString< TSize, TChar >::rbegin ( )

Returns a reverse iterator to the beginning.

See also
Reference

◆ rbegin() [2/2]

template<std::size_t TSize, typename TChar = char>
const_reverse_iterator comms::util::StaticString< TSize, TChar >::rbegin ( ) const

Returns a reverse iterator to the beginning.

See also
Reference

◆ rend() [1/2]

template<std::size_t TSize, typename TChar = char>
reverse_iterator comms::util::StaticString< TSize, TChar >::rend ( )

Returns a reverse iterator to the end.

See also
Reference

◆ rend() [2/2]

template<std::size_t TSize, typename TChar = char>
const_reverse_iterator comms::util::StaticString< TSize, TChar >::rend ( ) const

Returns a reverse iterator to the end.

See also
Reference

◆ replace() [1/11]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
StaticString& comms::util::StaticString< TSize, TChar >::replace ( const_iterator  first,
const_iterator  last,
const StaticString< TAnySize, TChar > &  other 
)

Replaces specified portion of a string.

See also
Reference

◆ replace() [2/11]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::replace ( const_iterator  first,
const_iterator  last,
const_pointer  str 
)

Replaces specified portion of a string.

See also
Reference

◆ replace() [3/11]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ replace() [4/11]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ replace() [5/11]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ replace() [6/11]

template<std::size_t TSize, typename TChar = char>
template<typename TIter >
StaticString& comms::util::StaticString< TSize, TChar >::replace ( const_iterator  first,
const_iterator  last,
TIter  first2,
TIter  last2 
)

Replaces specified portion of a string.

See also
Reference

◆ replace() [7/11]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
StaticString& comms::util::StaticString< TSize, TChar >::replace ( size_type  pos,
size_type  count,
const StaticString< TAnySize, TChar > &  other 
)

Replaces specified portion of a string.

See also
Reference

◆ replace() [8/11]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
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.

See also
Reference

◆ replace() [9/11]

template<std::size_t TSize, typename TChar = char>
StaticString& comms::util::StaticString< TSize, TChar >::replace ( size_type  pos,
size_type  count,
const_pointer  str 
)

Replaces specified portion of a string.

See also
Reference

◆ replace() [10/11]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ replace() [11/11]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ reserve()

template<std::size_t TSize, typename TChar = char>
void comms::util::StaticString< TSize, TChar >::reserve ( size_type  )

Reserves storage.

Does nothing for static string.

See also
Reference

◆ resize() [1/2]

template<std::size_t TSize, typename TChar = char>
void comms::util::StaticString< TSize, TChar >::resize ( size_type  count)

Changes the number of characters stored.

See also
Reference

◆ resize() [2/2]

template<std::size_t TSize, typename TChar = char>
void comms::util::StaticString< TSize, TChar >::resize ( size_type  count,
value_type  ch 
)

Changes the number of characters stored.

See also
Reference

◆ rfind() [1/4]

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
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.

See also
Reference

◆ rfind() [2/4]

template<std::size_t TSize, typename TChar = char>
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.

See also
Reference

◆ rfind() [3/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::rfind ( const_pointer  str,
size_type  pos = npos 
) const

Find the last occurrence of the substring.

See also
Reference

◆ rfind() [4/4]

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::rfind ( value_type  ch,
size_type  pos = npos 
) const

Find the last occurrence of the substring.

See also
Reference

◆ shrink_to_fit()

template<std::size_t TSize, typename TChar = char>
void comms::util::StaticString< TSize, TChar >::shrink_to_fit ( )

Reduces memory usage by freeing unused memory.

Does nothing for static string.

See also
Reference

◆ size()

template<std::size_t TSize, typename TChar = char>
size_type comms::util::StaticString< TSize, TChar >::size ( ) const

returns the number of characters.

See also
Reference

◆ substr()

template<std::size_t TSize, typename TChar = char>
StaticString comms::util::StaticString< TSize, TChar >::substr ( size_type  pos = 0,
size_type  count = npos 
) const

Returns a substring.

See also
Reference

◆ swap()

template<std::size_t TSize, typename TChar = char>
template<std::size_t TAnySize>
void comms::util::StaticString< TSize, TChar >::swap ( StaticString< TAnySize, TChar > &  other)

Swaps the contents of two strings.

See also
Reference

Friends And Related Function Documentation

◆ operator!=() [1/3]

template<std::size_t TSize1, std::size_t TSize2, typename TChar >
bool operator!= ( const StaticString< TSize1, TChar > &  str1,
const StaticString< TSize2, TChar > &  str2 
)
related

Inequality compare between the strings.

See also
Reference

◆ operator!=() [2/3]

template<std::size_t TSize1, typename TChar >
bool operator!= ( const StaticString< TSize1, TChar > &  str1,
const TChar *  str2 
)
related

Inequality compare between the strings.

See also
Reference

◆ operator!=() [3/3]

template<std::size_t TSize1, typename TChar >
bool operator!= ( const TChar *  str1,
const StaticString< TSize1, TChar > &  str2 
)
related

Inequality compare between the strings.

See also
Reference

◆ operator<() [1/3]

template<std::size_t TSize1, std::size_t TSize2, typename TChar >
bool operator< ( const StaticString< TSize1, TChar > &  str1,
const StaticString< TSize2, TChar > &  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator<() [2/3]

template<std::size_t TSize1, typename TChar >
bool operator< ( const StaticString< TSize1, TChar > &  str1,
const TChar *  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator<() [3/3]

template<std::size_t TSize1, typename TChar >
bool operator< ( const TChar *  str1,
const StaticString< TSize1, TChar > &  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator<=() [1/3]

template<std::size_t TSize1, std::size_t TSize2, typename TChar >
bool operator<= ( const StaticString< TSize1, TChar > &  str1,
const StaticString< TSize2, TChar > &  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator<=() [2/3]

template<std::size_t TSize1, typename TChar >
bool operator<= ( const StaticString< TSize1, TChar > &  str1,
const TChar *  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator<=() [3/3]

template<std::size_t TSize1, typename TChar >
bool operator<= ( const TChar *  str1,
const StaticString< TSize1, TChar > &  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator==() [1/3]

template<std::size_t TSize1, std::size_t TSize2, typename TChar >
bool operator== ( const StaticString< TSize1, TChar > &  str1,
const StaticString< TSize2, TChar > &  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator==() [2/3]

template<std::size_t TSize1, typename TChar >
bool operator== ( const StaticString< TSize1, TChar > &  str1,
const TChar *  str2 
)
related

Equality compare between the strings.

See also
Reference

◆ operator==() [3/3]

template<std::size_t TSize1, typename TChar >
bool operator== ( const TChar *  str1,
const StaticString< TSize1, TChar > &  str2 
)
related

Equality compare between the strings.

See also
Reference

◆ operator>() [1/3]

template<std::size_t TSize1, std::size_t TSize2, typename TChar >
bool operator> ( const StaticString< TSize1, TChar > &  str1,
const StaticString< TSize2, TChar > &  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator>() [2/3]

template<std::size_t TSize1, typename TChar >
bool operator> ( const StaticString< TSize1, TChar > &  str1,
const TChar *  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator>() [3/3]

template<std::size_t TSize1, typename TChar >
bool operator> ( const TChar *  str1,
const StaticString< TSize1, TChar > &  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator>=() [1/3]

template<std::size_t TSize1, std::size_t TSize2, typename TChar >
bool operator>= ( const StaticString< TSize1, TChar > &  str1,
const StaticString< TSize2, TChar > &  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator>=() [2/3]

template<std::size_t TSize1, typename TChar >
bool operator>= ( const StaticString< TSize1, TChar > &  str1,
const TChar *  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ operator>=() [3/3]

template<std::size_t TSize1, typename TChar >
bool operator>= ( const TChar *  str1,
const StaticString< TSize1, TChar > &  str2 
)
related

Lexicographical compare between the strings.

See also
Reference

◆ swap()

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 
)
related

Specializes the std::swap algorithm.

See also
Reference

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