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::const_iterator |
using | iterator_category = std::bidirectional_iterator_tag |
using | value_type = char32_t |
using | difference_type = String::difference_type |
using | pointer = const char32_t * |
using | reference = const char32_t & |
Public Member Functions | |
const_iterator (const_iterator const &it) | |
const_iterator (const_iterator &&it) noexcept | |
const_iterator & | operator= (const_iterator const &it) |
const_iterator & | operator= (const_iterator &&it) noexcept |
~const_iterator () noexcept=default | |
const_iterator (iterator_type const &it) | |
Constructor. | |
const_iterator & | operator= (iterator_type const &it) |
Assignment operator. | |
const_iterator & | operator+= (size_t offset) |
Assigment addition operator. | |
const_iterator & | operator-= (size_t offset) |
Assignment subtraction operator. | |
const_iterator & | operator++ () |
Pre-increment operator. | |
const_iterator | operator++ (int) |
Post-increment operator. | |
const_iterator & | operator-- () |
Pre-decrement operator. | |
const_iterator | operator-- (int) |
Post-decrement operator. | |
char32_t | operator* () const |
Access to the current codepoint value. | |
bool | operator== (const const_iterator &it) const |
Equality operator. | |
bool | operator== (const iterator_type &it) const |
Equality operator. | |
bool | operator!= (const 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::const_iterator< CharT, StringT >::difference_type = String::difference_type |
using castor::string::utf8::const_iterator< CharT, StringT >::iterator_category = std::bidirectional_iterator_tag |
using castor::string::utf8::const_iterator< CharT, StringT >::iterator_type = typename string_type::const_iterator |
using castor::string::utf8::const_iterator< CharT, StringT >::pointer = const char32_t * |
using castor::string::utf8::const_iterator< CharT, StringT >::reference = const char32_t & |
using castor::string::utf8::const_iterator< CharT, StringT >::string_type = StringT |
using castor::string::utf8::const_iterator< CharT, StringT >::value_type = char32_t |
castor::string::utf8::const_iterator< CharT, StringT >::const_iterator | ( | const_iterator< CharT, StringT > const & | it | ) |
|
noexcept |
|
defaultnoexcept |
|
explicit |
Constructor.
[in] | it | The string iterator. |
iterator_type castor::string::utf8::const_iterator< CharT, StringT >::internal | ( | ) | const |
Retrieves the internal iterator.
bool castor::string::utf8::const_iterator< CharT, StringT >::operator!= | ( | const const_iterator< CharT, StringT > & | it | ) | const |
Difference operator.
bool castor::string::utf8::const_iterator< CharT, StringT >::operator!= | ( | const iterator_type & | it | ) | const |
Difference operator.
char32_t castor::string::utf8::const_iterator< CharT, StringT >::operator* | ( | ) | const |
Access to the current codepoint value.
const_iterator & castor::string::utf8::const_iterator< CharT, StringT >::operator++ | ( | ) |
Pre-increment operator.
Opérateur de pré-increment.
const_iterator castor::string::utf8::const_iterator< CharT, StringT >::operator++ | ( | int | ) |
Post-increment operator.
const_iterator & castor::string::utf8::const_iterator< CharT, StringT >::operator+= | ( | size_t | offset | ) |
Assigment addition operator.
[in] | offset | The offset to add. |
const_iterator & castor::string::utf8::const_iterator< CharT, StringT >::operator-- | ( | ) |
Pre-decrement operator.
const_iterator castor::string::utf8::const_iterator< CharT, StringT >::operator-- | ( | int | ) |
Post-decrement operator.
const_iterator & castor::string::utf8::const_iterator< CharT, StringT >::operator-= | ( | size_t | offset | ) |
Assignment subtraction operator.
[in] | offset | The offset to subtract. |
|
noexcept |
const_iterator & castor::string::utf8::const_iterator< CharT, StringT >::operator= | ( | const_iterator< CharT, StringT > const & | it | ) |
const_iterator & castor::string::utf8::const_iterator< CharT, StringT >::operator= | ( | iterator_type const & | it | ) |
Assignment operator.
[in] | it | The string iterator. |
bool castor::string::utf8::const_iterator< CharT, StringT >::operator== | ( | const const_iterator< CharT, StringT > & | it | ) | const |
Equality operator.
bool castor::string::utf8::const_iterator< CharT, StringT >::operator== | ( | const iterator_type & | it | ) | const |
Equality operator.