|
iceoryx2
C++ Language Bindings
|
#include <static_string.hpp>
Public Member Functions | |
| ~UncheckedAccessorCodeUnits ()=default | |
| UncheckedAccessorCodeUnits (UncheckedAccessorCodeUnits const &)=delete | |
| UncheckedAccessorCodeUnits (UncheckedAccessorCodeUnits &&)=default | |
| auto | operator= (UncheckedAccessorCodeUnits const &) -> UncheckedAccessorCodeUnits &=delete |
| auto | operator= (UncheckedAccessorCodeUnits &&) -> UncheckedAccessorCodeUnits &=delete |
| auto | element_at (SizeType index) noexcept -> OptionalCodeUnitReference |
| auto | front_element () noexcept -> OptionalCodeUnitReference |
| auto | back_element () noexcept -> OptionalCodeUnitReference |
| auto | try_erase_at (SizeType index) noexcept -> bool |
Removes a single code unit at index. | |
| auto | try_erase_at (SizeType begin_index, SizeType end_index) noexcept -> bool |
Removes the range of code units at [begin_index, end_index). | |
Friends | |
| class | StaticString |
| template<typename , uint64_t Capacity, bb::DoesContainInvalidContent< Capacity > , bb::DoesContainInvalidCharacter< Capacity > > | |
| class | bb::SemanticString |
The unchecked API provided by this class allows for encoding violations. Users of this class must ensure that writes to the string do not result in a sequence of bytes that is no longer a valid UTF-8 encoded string. This includes not setting any of the string characters to NUL (U+0000).
Definition at line 185 of file static_string.hpp.
|
default |
|
delete |
|
default |
|
inlinenoexcept |
Retrieve a reference to the last code unit at the end of the string.
NULLOPT if the string is empty. Definition at line 263 of file static_string.hpp.
References iox2::bb::StaticString< N >::empty(), iox2::bb::NULLOPT, and iox2::bb::StaticString< N >::size().
|
inlinenoexcept |
Retrieve a reference to the single code unit at index.
NULLOPT if the index is out of bounds. Definition at line 243 of file static_string.hpp.
References iox2::bb::NULLOPT.
|
inlinenoexcept |
Retrieve a reference to the first code unit at the beginning of the string.
NULLOPT if the string is empty. Definition at line 253 of file static_string.hpp.
References iox2::bb::StaticString< N >::empty(), and iox2::bb::NULLOPT.
|
delete |
|
delete |
|
inlinenoexcept |
Removes the range of code units at [begin_index, end_index).
Definition at line 277 of file static_string.hpp.
|
inlinenoexcept |
Removes a single code unit at index.
Definition at line 272 of file static_string.hpp.
References iox2::bb::StaticString< N >::UncheckedAccessorCodeUnits::try_erase_at().
Referenced by iox2::bb::StaticString< N >::UncheckedAccessorCodeUnits::try_erase_at().
|
friend |
Definition at line 191 of file static_string.hpp.
|
friend |
Definition at line 186 of file static_string.hpp.