CCnvCharacterSetConverter::TArrayOfAscendingIndices Class Reference

#include <charconv.h>

Link against: charconv.lib

class CCnvCharacterSetConverter::TArrayOfAscendingIndices

Detailed Description

Holds an ascending array of the indices of the characters in the source Unicode text which could not be converted by CCnvCharacterSetConverter::ConvertFromUnicode() into the foreign character set

Member Enumeration Documentation

Enum TAppendResult

The return value of CCnvCharacterSetConverter::AppendIndex().

EnumeratorValueDescription
EAppendFailed

The append failed.

EAppendSuccessful

The append succeeded.

Constructor & Destructor Documentation

TArrayOfAscendingIndices ( )

TArrayOfAscendingIndices()[inline]

C++ constructor. The array is initialised to be of length zero.

Member Function Documentation

AppendIndex ( TInt )

IMPORT_C TAppendResultAppendIndex(TIntaIndex)

Appends an index to the array of indices.

The value of aIndex should be greater than that of the last index in the array, to maintain an ascending array. The return value should be tested to see whether the function succeeded or not.

ParameterDescription
aIndexThe index to append to the array.

Returns: EAppendFailed if the append failed, or EAppendSuccessful if it succeeded.

NumberOfIndices ( )

TInt NumberOfIndices()const [inline]

Returns the number of indices in the array.

Returns: The number of indices in the array.

Remove ( TInt )

voidRemove(TIntaIndexOfIndex)[inline]

Deletes a single index from the array.

ParameterDescription
aIndexOfIndexThe index of the index to delete. Must not be negative and must not be greater than the length of the array, or a panic occurs.

RemoveAll ( )

voidRemoveAll()[inline]

Deletes all indices from the array.

operator[] ( TInt )

TInt operator[](TIntaIndexOfIndex)const [inline]

Gets the value of the specified index.

ParameterDescription
aIndexOfIndexIndex into the array.

Returns: The value of the index.