Castor3D 0.16.0
Multiplatform 3D engine
|
An iterator, to an UTF-8 string. More...
#include <StringUtils.hpp>
Public Types | |
using | string_type = StringT |
using | iterator_type = typename string_type::iterator |
using | iterator_category = std::bidirectional_iterator_tag |
using | value_type = char32_t |
using | difference_type = typename string_type::difference_type |
using | pointer = const char32_t * |
using | reference = const char32_t & |
Public Member Functions | |
iterator (iterator const &it) | |
iterator (iterator &&it) noexcept | |
iterator & | operator= (iterator const &it) |
iterator & | operator= (iterator &&it) noexcept |
~iterator () noexcept=default | |
iterator (iterator_type const &it) | |
Constructor. | |
iterator & | operator= (iterator_type const &it) |
Assignment operator. | |
iterator & | operator+= (size_t offset) |
Assigment addition operator. | |
iterator & | operator-= (size_t offset) |
Assignment subtraction operator. | |
iterator & | operator++ () |
Pre-increment operator. | |
iterator | operator++ (int) |
Post-increment operator. | |
iterator & | operator-- () |
Pre-decrement operator. | |
iterator | operator-- (int) |
Post-decrement operator. | |
char32_t | operator* () const |
Access to the current codepoint value. | |
bool | operator== (const iterator &it) const |
Equality operator. | |
bool | operator== (const iterator_type &it) const |
Equality operator. | |
bool | operator!= (const iterator &it) const |
Difference operator. | |
bool | operator!= (const iterator_type &it) const |
Difference operator. | |
iterator_type | internal () const |
Retrieves the internal iterator. | |
An iterator, to an UTF-8 string.
using castor::string::utf8::iterator< CharT, StringT >::difference_type = typename string_type::difference_type |
using castor::string::utf8::iterator< CharT, StringT >::iterator_category = std::bidirectional_iterator_tag |
using castor::string::utf8::iterator< CharT, StringT >::iterator_type = typename string_type::iterator |
using castor::string::utf8::iterator< CharT, StringT >::pointer = const char32_t * |
using castor::string::utf8::iterator< CharT, StringT >::reference = const char32_t & |
using castor::string::utf8::iterator< CharT, StringT >::string_type = StringT |
using castor::string::utf8::iterator< CharT, StringT >::value_type = char32_t |
castor::string::utf8::iterator< CharT, StringT >::iterator | ( | iterator< CharT, StringT > const & | it | ) |
|
noexcept |
|
defaultnoexcept |
|
explicit |
Constructor.
[in] | it | The string iterator. |
iterator_type castor::string::utf8::iterator< CharT, StringT >::internal | ( | ) | const |
Retrieves the internal iterator.
bool castor::string::utf8::iterator< CharT, StringT >::operator!= | ( | const iterator< CharT, StringT > & | it | ) | const |
Difference operator.
bool castor::string::utf8::iterator< CharT, StringT >::operator!= | ( | const iterator_type & | it | ) | const |
Difference operator.
char32_t castor::string::utf8::iterator< CharT, StringT >::operator* | ( | ) | const |
Access to the current codepoint value.
iterator & castor::string::utf8::iterator< CharT, StringT >::operator++ | ( | ) |
Pre-increment operator.
Opérateur de pré-increment.
iterator castor::string::utf8::iterator< CharT, StringT >::operator++ | ( | int | ) |
Post-increment operator.
iterator & castor::string::utf8::iterator< CharT, StringT >::operator+= | ( | size_t | offset | ) |
Assigment addition operator.
[in] | offset | The offset to add. |
iterator & castor::string::utf8::iterator< CharT, StringT >::operator-- | ( | ) |
Pre-decrement operator.
iterator castor::string::utf8::iterator< CharT, StringT >::operator-- | ( | int | ) |
Post-decrement operator.
iterator & castor::string::utf8::iterator< CharT, StringT >::operator-= | ( | size_t | offset | ) |
Assignment subtraction operator.
[in] | offset | The offset to subtract. |
|
noexcept |
iterator & castor::string::utf8::iterator< CharT, StringT >::operator= | ( | iterator< CharT, StringT > const & | it | ) |
iterator & castor::string::utf8::iterator< CharT, StringT >::operator= | ( | iterator_type const & | it | ) |
Assignment operator.
[in] | it | The string iterator. |
bool castor::string::utf8::iterator< CharT, StringT >::operator== | ( | const iterator< CharT, StringT > & | it | ) | const |
Equality operator.
bool castor::string::utf8::iterator< CharT, StringT >::operator== | ( | const iterator_type & | it | ) | const |
Equality operator.