MyGUI 3.2.2

Public Member Functions | Friends
MyGUI::UString::_const_fwd_iterator Class Reference

const forward iterator for UString More...

`#include <MyGUI_UString.h>`

Inheritance diagram for MyGUI::UString::_const_fwd_iterator:
[legend]

## Public Member Functions
| _const_fwd_iterator ()
| _const_fwd_iterator (const _const_fwd_iterator &i)
| _const_fwd_iterator (const _fwd_iterator &i)
_const_fwd_iterator & | operator++ ()
| pre-increment More...
_const_fwd_iterator | operator++ (int)
| post-increment More...
_const_fwd_iterator & | operator-- ()
| pre-decrement More...
_const_fwd_iterator | operator-- (int)
| post-decrement More...
_const_fwd_iterator | operator+ (difference_type n)
| addition operator More...
_const_fwd_iterator | operator- (difference_type n)
| subtraction operator More...
_const_fwd_iterator & | operator+= (difference_type n)
| addition assignment operator More...
_const_fwd_iterator & | operator-= (difference_type n)
| subtraction assignment operator More...
const value_type & | operator* () const
| dereference operator More...
const value_type & | operator[] (difference_type n) const
| dereference at offset operator More...
_const_fwd_iterator & | moveNext ()
| advances to the next Unicode character, honoring surrogate pairs in the UTF-16 stream More...
_const_fwd_iterator & | movePrev ()
| rewinds to the previous Unicode character, honoring surrogate pairs in the UTF-16 stream More...
unicode_char | getCharacter () const
| Returns the Unicode value of the character at the current position (decodes surrogate pairs if needed) More...

## Friends
size_type | operator- (const _const_fwd_iterator &left, const _const_fwd_iterator &right)
| difference operator More...
bool | operator== (const _const_fwd_iterator &left, const _const_fwd_iterator &right)
| equality operator More...
bool | operator!= (const _const_fwd_iterator &left, const _const_fwd_iterator &right)
| inequality operator More...
bool | operator< (const _const_fwd_iterator &left, const _const_fwd_iterator &right)
| less than More...
bool | operator<= (const _const_fwd_iterator &left, const _const_fwd_iterator &right)
| less than or equal More...
bool | operator> (const _const_fwd_iterator &left, const _const_fwd_iterator &right)
| greater than More...
bool | operator>= (const _const_fwd_iterator &left, const _const_fwd_iterator &right)
| greater than or equal More...

## Additional Inherited Members
Protected Member Functions inherited from MyGUI::UString::_base_iterator
| _base_iterator ()
void | _seekFwd (size_type c)
void | _seekRev (size_type c)
void | _become (const _base_iterator &i)
bool | _test_begin () const
bool | _test_end () const
size_type | _get_index () const
void | _jump_to (size_type index)
unicode_char | _getCharacter () const
int | _setCharacter (unicode_char uc)
void | _moveNext ()
void | _movePrev ()
Protected Attributes inherited from MyGUI::UString::_base_iterator
dstring::iterator | mIter
UString * | mString

## Detailed Description

const forward iterator for UString

Definition at line 289 of file MyGUI_UString.h.

## Constructor & Destructor Documentation

## ◆ _const_fwd_iterator() [1/3]

MyGUI::UString::_const_fwd_iterator::_const_fwd_iterator | ( |  | ) |

Definition at line 214 of file MyGUI_UString.cpp.

## ◆ _const_fwd_iterator() [2/3]

MyGUI::UString::_const_fwd_iterator::_const_fwd_iterator | ( | const _const_fwd_iterator & | i | ) |

Definition at line 219 of file MyGUI_UString.cpp.

## ◆ _const_fwd_iterator() [3/3]

MyGUI::UString::_const_fwd_iterator::_const_fwd_iterator | ( | const _fwd_iterator & | i | ) |

Definition at line 224 of file MyGUI_UString.cpp.

## Member Function Documentation

## ◆ getCharacter()

UString::unicode_char MyGUI::UString::_const_fwd_iterator::getCharacter | ( |  | ) | const

Returns the Unicode value of the character at the current position (decodes surrogate pairs if needed)

Definition at line 317 of file MyGUI_UString.cpp.

## ◆ moveNext()

UString::_const_fwd_iterator & MyGUI::UString::_const_fwd_iterator::moveNext | ( |  | ) |

advances to the next Unicode character, honoring surrogate pairs in the UTF-16 stream

Definition at line 305 of file MyGUI_UString.cpp.

## ◆ movePrev()

UString::_const_fwd_iterator & MyGUI::UString::_const_fwd_iterator::movePrev | ( |  | ) |

rewinds to the previous Unicode character, honoring surrogate pairs in the UTF-16 stream

Definition at line 311 of file MyGUI_UString.cpp.

## ◆ operator*()

const UString::value_type & MyGUI::UString::_const_fwd_iterator::operator* | ( |  | ) | const

dereference operator

Definition at line 293 of file MyGUI_UString.cpp.

## ◆ operator+()

UString::_const_fwd_iterator MyGUI::UString::_const_fwd_iterator::operator+ | ( | difference_type | n | ) |

addition operator

Definition at line 255 of file MyGUI_UString.cpp.

## ◆ operator++() [1/2]

UString::_const_fwd_iterator & MyGUI::UString::_const_fwd_iterator::operator++ | ( |  | ) |

pre-increment

Definition at line 229 of file MyGUI_UString.cpp.

## ◆ operator++() [2/2]

UString::_const_fwd_iterator MyGUI::UString::_const_fwd_iterator::operator++ | ( | int |  | ) |

post-increment

Definition at line 235 of file MyGUI_UString.cpp.

## ◆ operator+=()

UString::_const_fwd_iterator & MyGUI::UString::_const_fwd_iterator::operator+= | ( | difference_type | n | ) |

addition assignment operator

Definition at line 275 of file MyGUI_UString.cpp.

## ◆ operator-()

UString::_const_fwd_iterator MyGUI::UString::_const_fwd_iterator::operator- | ( | difference_type | n | ) |

subtraction operator

Definition at line 265 of file MyGUI_UString.cpp.

## ◆ operator--() [1/2]

UString::_const_fwd_iterator & MyGUI::UString::_const_fwd_iterator::operator-- | ( |  | ) |

pre-decrement

Definition at line 242 of file MyGUI_UString.cpp.

## ◆ operator--() [2/2]

UString::_const_fwd_iterator MyGUI::UString::_const_fwd_iterator::operator-- | ( | int |  | ) |

post-decrement

Definition at line 248 of file MyGUI_UString.cpp.

## ◆ operator-=()

UString::_const_fwd_iterator & MyGUI::UString::_const_fwd_iterator::operator-= | ( | difference_type | n | ) |

subtraction assignment operator

Definition at line 284 of file MyGUI_UString.cpp.

## ◆ operator[]()

const UString::value_type & MyGUI::UString::_const_fwd_iterator::operator[] | ( | difference_type | n | ) | const

dereference at offset operator

Definition at line 298 of file MyGUI_UString.cpp.

## Friends And Related Function Documentation

## ◆ operator!=

bool operator!= | ( | const _const_fwd_iterator & | left,
|  | const _const_fwd_iterator & | right
| ) |  |
| friend

inequality operator

Definition at line 1048 of file MyGUI_UString.h.

## ◆ operator-

size_type operator- | ( | const _const_fwd_iterator & | left,
|  | const _const_fwd_iterator & | right
| ) |  |
| friend

difference operator

Definition at line 1042 of file MyGUI_UString.h.

## ◆ operator<

bool operator< | ( | const _const_fwd_iterator & | left,
|  | const _const_fwd_iterator & | right
| ) |  |
| friend

less than

Definition at line 1051 of file MyGUI_UString.h.

## ◆ operator<=

bool operator<= | ( | const _const_fwd_iterator & | left,
|  | const _const_fwd_iterator & | right
| ) |  |
| friend

less than or equal

Definition at line 1054 of file MyGUI_UString.h.

## ◆ operator==

bool operator== | ( | const _const_fwd_iterator & | left,
|  | const _const_fwd_iterator & | right
| ) |  |
| friend

equality operator

Definition at line 1045 of file MyGUI_UString.h.

## ◆ operator>

bool operator> | ( | const _const_fwd_iterator & | left,
|  | const _const_fwd_iterator & | right
| ) |  |
| friend

greater than

Definition at line 1057 of file MyGUI_UString.h.

## ◆ operator>=

bool operator>= | ( | const _const_fwd_iterator & | left,
|  | const _const_fwd_iterator & | right
| ) |  |
| friend

greater than or equal

Definition at line 1060 of file MyGUI_UString.h.

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

- MyGUI_UString.h
- MyGUI_UString.cpp