![]() | InDesign SDK 20.5 |
#include <WideString.h>
Public Member Functions | |
| WideStringConstUTF32Iter (const WideString *string, int32 charIndex=0) | |
| WideStringConstUTF32Iter (const UTF16TextChar *buffer, bool16 hasSurrogates, int32 numChars) | |
| const UTF16TextChar * | PtrAt () const |
| value_type | operator* () const |
| WideStringConstUTF32Iter & | operator++ () |
| WideStringConstUTF32Iter | operator++ (int) |
| WideStringConstUTF32Iter & | operator-- () |
| WideStringConstUTF32Iter | operator-- (int) |
| WideStringConstUTF32Iter & | operator+= (int32 n) |
| WideStringConstUTF32Iter | operator+ (int32 n) const |
| WideStringConstUTF32Iter & | operator-= (int32 n) |
| WideStringConstUTF32Iter | operator- (int32 n) const |
| int32 | operator- (const WideStringConstUTF32Iter &other) const |
| UTF32TextChar | operator[] (int32 i) const |
Friends | |
| WideStringConstUTF32Iter | operator+ (int32 n, const WideStringConstUTF32Iter &rhs) |
| bool | operator== (const WideStringConstUTF32Iter &x, const WideStringConstUTF32Iter &y) |
| bool | operator!= (const WideStringConstUTF32Iter &x, const WideStringConstUTF32Iter &y) |
| bool | operator< (const WideStringConstUTF32Iter &x, const WideStringConstUTF32Iter &y) |
| bool | operator<= (const WideStringConstUTF32Iter &x, const WideStringConstUTF32Iter &y) |
| bool | operator> (const WideStringConstUTF32Iter &x, const WideStringConstUTF32Iter &y) |
| bool | operator>= (const WideStringConstUTF32Iter &x, const WideStringConstUTF32Iter &y) |
WideStringConstUTF32Iter, also known as WideString::const_iterator, is an iterator class on a WideString object. The buffer in a WideString is encoded in UTF-16, which means that Unicode surrogates are used when representing codepoints > U+FFFF. It is important to limit direct access to the buffer in a WideString because of the possible presence of surrogates. The iterator internally handles surrogates, so clients can operate in true UTF-32 character units.
| inline |
Dereference operator.
| inline |
Pre-Increment operator. Less expensive than post-incrementing.
| inline |
Post-Increment operator. Makes a copy, so more expensive than pre-incrementing.
| inline |
Pre-Decrement operator. Less expensive than post-decrementing.
| inline |
Post-Decrement operator. Makes a copy, so more expensive than pre-decrementing.
| inline |
Returns a const ptr to the WideString buffer at the location of the iterator. Should be used with care, since buffers can contain surrogate pairs of UTF-16 codepoints.