CCnvCharacterSetConverter::TArrayOfAscendingIndices Class Reference

class CCnvCharacterSetConverter::TArrayOfAscendingIndices

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

Public Member Functions
TArrayOfAscendingIndices()
IMPORT_C TAppendResultAppendIndex(TInt)
TInt NumberOfIndices()
voidRemove(TInt)
voidRemoveAll()
TInt operator[](TInt)
Public Member Enumerations
enumTAppendResult { EAppendFailed, EAppendSuccessful }
Private Attributes
TBuf16< KMaximumNumberOfIndices >iArrayOfIndices

Constructor & Destructor Documentation

TArrayOfAscendingIndices()

TArrayOfAscendingIndices()[inline]

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

Member Functions 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.

Parameters

TInt aIndexThe index to append to the array.

NumberOfIndices()

TInt NumberOfIndices()const [inline]

Returns the number of indices in the array.

Remove(TInt)

voidRemove(TIntaIndexOfIndex)[inline]

Deletes a single index from the array.

Parameters

TInt 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.

Parameters

TInt aIndexOfIndexIndex into the array.

Member Enumerations Documentation

Enum TAppendResult

The return value of CCnvCharacterSetConverter::AppendIndex().

Enumerators

EAppendFailed

The append failed.

EAppendSuccessful

The append succeeded.

Member Data Documentation

TBuf16< KMaximumNumberOfIndices > iArrayOfIndices

TBuf16< KMaximumNumberOfIndices >iArrayOfIndices[private]