CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoType::TUtf32Iter Class Reference

#include <cartotype_string.h>

Inheritance diagram for CartoType::TUtf32Iter:
CartoType::MIter< int32_t >

Public Member Functions

 TUtf32Iter (const int32_t *aText, size_t aLength)
 
TResult Next (int32_t &aValue)
 
void Back ()
 
const int32_t * Pos () const
 
virtual TResult Next (int32_t &aValue)=0
 
virtual void Back ()=0
 

Detailed Description

An iterator that does no conversion but simply passes UTF32 text straight through.

Constructor & Destructor Documentation

◆ TUtf32Iter()

CartoType::TUtf32Iter::TUtf32Iter ( const int32_t *  aText,
size_t  aLength 
)

Creates an iterator over some UTF32 text. If aLength is npos the text must be null-terminated.

Member Function Documentation

◆ Back()

void CartoType::TUtf32Iter::Back ( )
virtual

Back up one position if possible so that the next call to Next returns the same object as the previous call.

Implements CartoType::MIter< int32_t >.

◆ Next()

TResult CartoType::TUtf32Iter::Next ( int32_t &  aValue)
virtual

Get the next object. Return KErrorNone if an object was retrieved, KErrorEndOfData if there are no more objects, or some other result code if there was a different type of error.

Implements CartoType::MIter< int32_t >.

◆ Pos()

const int32_t * CartoType::TUtf32Iter::Pos ( ) const
inline

Returns a pointer to the current position in the text.


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