arsa  2.7
Public Member Functions | List of all members
irr::core::ustring16< TAlloc >::_ustring16_iterator_access Class Reference

Access an element in a unicode string, allowing one to change it. More...

#include <irrUString.h>

Public Member Functions

 _ustring16_iterator_access (const ustring16< TAlloc > *s, size_t p)
 
 operator uchar32_t () const
 Allow the class to be interpreted as a single UTF-32 character. More...
 
_ustring16_iterator_accessoperator= (const uchar32_t c)
 
_ustring16_iterator_accessoperator++ ()
 
uchar32_t operator++ (int)
 
_ustring16_iterator_accessoperator-- ()
 
uchar32_t operator-- (int)
 
_ustring16_iterator_accessoperator+= (int val)
 
_ustring16_iterator_accessoperator-= (int val)
 
_ustring16_iterator_accessoperator *= (int val)
 
_ustring16_iterator_accessoperator/= (int val)
 
_ustring16_iterator_accessoperator%= (int val)
 
uchar32_t operator+ (int val) const
 
uchar32_t operator- (int val) const
 
uchar32_t operator * (int val) const
 
uchar32_t operator/ (int val) const
 
uchar32_t operator% (int val) const
 

Detailed Description

template<typename TAlloc = irrAllocator<uchar16_t>>
class irr::core::ustring16< TAlloc >::_ustring16_iterator_access

Access an element in a unicode string, allowing one to change it.

---------------—/// iterator classes /// ---------------—///

Definition at line 245 of file irrUString.h.

Constructor & Destructor Documentation

◆ _ustring16_iterator_access()

template<typename TAlloc = irrAllocator<uchar16_t>>
irr::core::ustring16< TAlloc >::_ustring16_iterator_access::_ustring16_iterator_access ( const ustring16< TAlloc > *  s,
size_t  p 
)
inline

Definition at line 248 of file irrUString.h.

248 : ref(s), pos(p) {}
GLfloat GLfloat p
GLdouble s
Definition: SDL_opengl.h:2063
GLenum GLint ref

Member Function Documentation

◆ operator *()

template<typename TAlloc = irrAllocator<uchar16_t>>
uchar32_t irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator * ( int  val) const
inline

Multiplies the value by a specified amount.

Parameters
valThe amount to multiply this character by.
Returns
A unicode character.

Definition at line 363 of file irrUString.h.

364  {
365  return _get() * val;
366  }
GLuint GLfloat * val

◆ operator *=()

template<typename TAlloc = irrAllocator<uchar16_t>>
_ustring16_iterator_access& irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator *= ( int  val)
inline

Multiples the value by a specified amount.

Parameters
valThe amount to multiply this character by.
Returns
Myself.

Definition at line 320 of file irrUString.h.

321  {
322  _set(_get() * val);
323  return *this;
324  }
GLuint GLfloat * val

◆ operator uchar32_t()

template<typename TAlloc = irrAllocator<uchar16_t>>
irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator uchar32_t ( ) const
inline

Allow the class to be interpreted as a single UTF-32 character.

Definition at line 251 of file irrUString.h.

252  {
253  return _get();
254  }

◆ operator%()

template<typename TAlloc = irrAllocator<uchar16_t>>
uchar32_t irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator% ( int  val) const
inline

Modulos the value by a specified amount.

Parameters
valThe amount to modulo this character by.
Returns
A unicode character.

Definition at line 379 of file irrUString.h.

380  {
381  return _get() % val;
382  }
GLuint GLfloat * val

◆ operator%=()

template<typename TAlloc = irrAllocator<uchar16_t>>
_ustring16_iterator_access& irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator%= ( int  val)
inline

Modulos the value by a specified amount.

Parameters
valThe amount to modulo this character by.
Returns
Myself.

Definition at line 338 of file irrUString.h.

339  {
340  _set(_get() % val);
341  return *this;
342  }
GLuint GLfloat * val

◆ operator+()

template<typename TAlloc = irrAllocator<uchar16_t>>
uchar32_t irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator+ ( int  val) const
inline

Adds to the value by a specified amount.

Parameters
valThe amount to add to this character.
Returns
A unicode character.

Definition at line 347 of file irrUString.h.

348  {
349  return _get() + val;
350  }
GLuint GLfloat * val

◆ operator++() [1/2]

template<typename TAlloc = irrAllocator<uchar16_t>>
_ustring16_iterator_access& irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator++ ( )
inline

Increments the value by 1.

Returns
Myself.

Definition at line 267 of file irrUString.h.

268  {
269  _set(_get() + 1);
270  return *this;
271  }

◆ operator++() [2/2]

template<typename TAlloc = irrAllocator<uchar16_t>>
uchar32_t irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator++ ( int  )
inline

Increments the value by 1, returning the old value.

Returns
A unicode character.

Definition at line 275 of file irrUString.h.

276  {
277  uchar32_t old = _get();
278  _set(old + 1);
279  return old;
280  }
u32 uchar32_t
Definition: irrUString.h:85

◆ operator+=()

template<typename TAlloc = irrAllocator<uchar16_t>>
_ustring16_iterator_access& irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator+= ( int  val)
inline

Adds to the value by a specified amount.

Parameters
valThe amount to add to this character.
Returns
Myself.

Definition at line 302 of file irrUString.h.

303  {
304  _set(_get() + val);
305  return *this;
306  }
GLuint GLfloat * val

◆ operator-()

template<typename TAlloc = irrAllocator<uchar16_t>>
uchar32_t irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator- ( int  val) const
inline

Subtracts from the value by a specified amount.

Parameters
valThe amount to subtract from this character.
Returns
A unicode character.

Definition at line 355 of file irrUString.h.

356  {
357  return _get() - val;
358  }
GLuint GLfloat * val

◆ operator--() [1/2]

template<typename TAlloc = irrAllocator<uchar16_t>>
_ustring16_iterator_access& irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator-- ( )
inline

Decrements the value by 1.

Returns
Myself.

Definition at line 284 of file irrUString.h.

285  {
286  _set(_get() - 1);
287  return *this;
288  }

◆ operator--() [2/2]

template<typename TAlloc = irrAllocator<uchar16_t>>
uchar32_t irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator-- ( int  )
inline

Decrements the value by 1, returning the old value.

Returns
A unicode character.

Definition at line 292 of file irrUString.h.

293  {
294  uchar32_t old = _get();
295  _set(old - 1);
296  return old;
297  }
u32 uchar32_t
Definition: irrUString.h:85

◆ operator-=()

template<typename TAlloc = irrAllocator<uchar16_t>>
_ustring16_iterator_access& irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator-= ( int  val)
inline

Subtracts from the value by a specified amount.

Parameters
valThe amount to subtract from this character.
Returns
Myself.

Definition at line 311 of file irrUString.h.

312  {
313  _set(_get() - val);
314  return *this;
315  }
GLuint GLfloat * val

◆ operator/()

template<typename TAlloc = irrAllocator<uchar16_t>>
uchar32_t irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator/ ( int  val) const
inline

Divides the value by a specified amount.

Parameters
valThe amount to divide this character by.
Returns
A unicode character.

Definition at line 371 of file irrUString.h.

372  {
373  return _get() / val;
374  }
GLuint GLfloat * val

◆ operator/=()

template<typename TAlloc = irrAllocator<uchar16_t>>
_ustring16_iterator_access& irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator/= ( int  val)
inline

Divides the value by a specified amount.

Parameters
valThe amount to divide this character by.
Returns
Myself.

Definition at line 329 of file irrUString.h.

330  {
331  _set(_get() / val);
332  return *this;
333  }
GLuint GLfloat * val

◆ operator=()

template<typename TAlloc = irrAllocator<uchar16_t>>
_ustring16_iterator_access& irr::core::ustring16< TAlloc >::_ustring16_iterator_access::operator= ( const uchar32_t  c)
inline

Allow one to change the character in the unicode string.

Parameters
cThe new character to use.
Returns
Myself.

Definition at line 259 of file irrUString.h.

260  {
261  _set(c);
262  return *this;
263  }
const GLubyte * c

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