---------------—/// iterator classes /// ---------------—/// More...
#include <irrUString.h>
Public Member Functions | |
_ustring16_iterator_access (const ustring16< TAlloc > *s, u32 p) | |
operator uchar32_t () const | |
Allow the class to be interpreted as a single UTF-32 character. More... | |
_ustring16_iterator_access & | operator= (const uchar32_t c) |
Allow one to change the character in the unicode string. More... | |
_ustring16_iterator_access & | operator++ () |
Increments the value by 1. More... | |
uchar32_t | operator++ (int) |
Increments the value by 1, returning the old value. More... | |
_ustring16_iterator_access & | operator-- () |
Decrements the value by 1. More... | |
uchar32_t | operator-- (int) |
Decrements the value by 1, returning the old value. More... | |
_ustring16_iterator_access & | operator+= (int val) |
Adds to the value by a specified amount. More... | |
_ustring16_iterator_access & | operator-= (int val) |
Subtracts from the value by a specified amount. More... | |
_ustring16_iterator_access & | operator*= (int val) |
Multiples the value by a specified amount. More... | |
_ustring16_iterator_access & | operator/= (int val) |
Divides the value by a specified amount. More... | |
_ustring16_iterator_access & | operator%= (int val) |
Modulos the value by a specified amount. More... | |
uchar32_t | operator+ (int val) const |
Adds to the value by a specified amount. More... | |
uchar32_t | operator- (int val) const |
Subtracts from the value by a specified amount. More... | |
uchar32_t | operator* (int val) const |
Multiplies the value by a specified amount. More... | |
uchar32_t | operator/ (int val) const |
Divides the value by a specified amount. More... | |
uchar32_t | operator% (int val) const |
Modulos the value by a specified amount. More... | |
Private Member Functions | |
uchar32_t | _get () const |
Gets a uchar32_t from our current position. More... | |
void | _set (uchar32_t c) |
Sets a uchar32_t at our current position. More... | |
Private Attributes | |
const ustring16< TAlloc > * | ref |
u32 | pos |
---------------—/// iterator classes /// ---------------—///
Access an element in a unicode string, allowing one to change it.
|
inline |
|
inlineprivate |
Gets a uchar32_t from our current position.
References irr::core::ustring16< TAlloc >::c_str(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::pos, irr::core::ustring16< TAlloc >::_ustring16_iterator_access::ref, irr::core::ustring16< TAlloc >::size_raw(), irr::core::unicode::toUTF32(), and UTF16_IS_SURROGATE.
Referenced by irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator uchar32_t(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator%(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator%=(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator*(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator*=(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator+(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator++(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator+=(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator-(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator--(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator-=(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator/(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator/=().
|
inlineprivate |
Sets a uchar32_t at our current position.
References irr::core::ustring16< TAlloc >::c_str(), irr::core::ustring16< TAlloc >::erase_raw(), irr::core::ustring16< TAlloc >::insert_raw(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::pos, irr::core::ustring16< TAlloc >::_ustring16_iterator_access::ref, irr::core::ustring16< TAlloc >::replace_raw(), irr::core::ustring16< TAlloc >::size_raw(), UTF16_HI_SURROGATE, UTF16_IS_SURROGATE_HI, and UTF16_LO_SURROGATE.
Referenced by irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator%=(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator*=(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator++(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator+=(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator--(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator-=(), irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator/=(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator=().
|
inline |
Allow the class to be interpreted as a single UTF-32 character.
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get().
|
inline |
Modulos the value by a specified amount.
val | The amount to modulo this character by. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get().
|
inline |
Modulos the value by a specified amount.
val | The amount to modulo this character by. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
inline |
Multiplies the value by a specified amount.
val | The amount to multiply this character by. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get().
|
inline |
Multiples the value by a specified amount.
val | The amount to multiply this character by. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
inline |
Adds to the value by a specified amount.
val | The amount to add to this character. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get().
|
inline |
Increments the value by 1.
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
inline |
Increments the value by 1, returning the old value.
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
inline |
Adds to the value by a specified amount.
val | The amount to add to this character. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
inline |
Subtracts from the value by a specified amount.
val | The amount to subtract from this character. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get().
|
inline |
Decrements the value by 1.
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
inline |
Decrements the value by 1, returning the old value.
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
inline |
Subtracts from the value by a specified amount.
val | The amount to subtract from this character. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
inline |
Divides the value by a specified amount.
val | The amount to divide this character by. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get().
|
inline |
Divides the value by a specified amount.
val | The amount to divide this character by. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_get(), and irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
inline |
Allow one to change the character in the unicode string.
c | The new character to use. |
References irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_set().
|
private |
|
private |