|
| | NCollection_UtfIterator (const Type *theString) |
| | Constructor.
|
| void | Init (const Type *theString) |
| | Initialize iterator within specified NULL-terminated string.
|
| NCollection_UtfIterator & | operator++ () |
| | Pre-increment operator. Reads the next unicode symbol. Notice - no protection against overrun!
|
| NCollection_UtfIterator | operator++ (int) |
| | Post-increment operator. Notice - no protection against overrun!
|
| constexpr bool | operator== (const NCollection_UtfIterator &theRight) const noexcept |
| | Equality operator.
|
| constexpr bool | IsValid () const noexcept |
| | Return true if Unicode symbol is within valid range.
|
| constexpr char32_t | operator* () const noexcept |
| | Dereference operator.
|
| constexpr const Type * | BufferHere () const noexcept |
| | Buffer-fetching getter.
|
| Type * | ChangeBufferHere () noexcept |
| | Buffer-fetching getter. Dangerous! Iterator should be reinitialized on buffer change.
|
| constexpr const Type * | BufferNext () const noexcept |
| | Buffer-fetching getter.
|
| constexpr int | Index () const noexcept |
| int | AdvanceBytesUtf8 () const |
| int | AdvanceBytesUtf16 () const |
| int | AdvanceCodeUnitsUtf16 () const |
| constexpr int | AdvanceBytesUtf32 () const noexcept |
| char * | GetUtf8 (char *theBuffer) const |
| | Fill the UTF-8 buffer within current Unicode symbol. Use method AdvanceUtf8() to allocate buffer with enough size.
|
| unsigned char * | GetUtf8 (unsigned char *theBuffer) const |
| char16_t * | GetUtf16 (char16_t *theBuffer) const |
| | Fill the UTF-16 buffer within current Unicode symbol. Use method AdvanceUtf16() to allocate buffer with enough size.
|
| char32_t * | GetUtf32 (char32_t *theBuffer) const |
| | Fill the UTF-32 buffer within current Unicode symbol. Use method AdvanceUtf32() to allocate buffer with enough size.
|
| template<typename TypeWrite> |
| int | AdvanceBytesUtf () const |
| template<typename TypeWrite> |
| TypeWrite * | GetUtf (TypeWrite *theBuffer) const |
| | Fill the UTF-** buffer within current Unicode symbol. Use method AdvanceUtf**() to allocate buffer with enough size.
|
template<typename Type>
class NCollection_UtfIterator< Type >
Template class for Unicode strings support.
It defines an iterator and provide correct way to read multi-byte text (UTF-8 and UTF-16) and convert it from one to another. The current value of iterator is returned as UTF-32 Unicode symbol.
Here and below term "Unicode symbol" is used as synonym of "Unicode code point".