CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoTypeCore::Utf8ToUtf32 Class Reference

#include <cartotype_string.h>

Inheritance diagram for CartoTypeCore::Utf8ToUtf32:
CartoTypeCore::MIter< int32_t >

Public Member Functions

 Utf8ToUtf32 (const uint8_t *aText, size_t aLength=npos)
 
 Utf8ToUtf32 (const char *aText, size_t aLength=npos)
 
Result Next (int32_t &aValue)
 
void Back ()
 
const uint8_t * Pos () const
 
virtual Result Next (int32_t &aValue)=0
 
virtual void Back ()=0
 

Detailed Description

An iterator to convert UTF8 text to UTF32.

Constructor & Destructor Documentation

◆ Utf8ToUtf32() [1/2]

CartoTypeCore::Utf8ToUtf32::Utf8ToUtf32 ( const uint8_t *  aText,
size_t  aLength = npos 
)

Creates an iterator over some UTF8 text. If aLength is npos (the default) the text must be null-terminated.

◆ Utf8ToUtf32() [2/2]

CartoTypeCore::Utf8ToUtf32::Utf8ToUtf32 ( const char *  aText,
size_t  aLength = npos 
)
inline

Creates an iterator over some UTF8 text. If aLength is npos (the default) the text must be null-terminated.

Member Function Documentation

◆ Back()

void CartoTypeCore::Utf8ToUtf32::Back ( )
virtual

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

Implements CartoTypeCore::MIter< int32_t >.

◆ Next()

Result CartoTypeCore::Utf8ToUtf32::Next ( int32_t &  aValue)
virtual

Gets the next object. Returns 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 CartoTypeCore::MIter< int32_t >.

◆ Pos()

const uint8_t * CartoTypeCore::Utf8ToUtf32::Pos ( ) const
inline

Returns a pointer to the current position in the text.


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