|
||
class TextUtils;
Provides static functions for truncating and aligning text strings.
Defined in TextUtils
:
ClipToFit(TDes &,const CFont &,TInt,TChar)
Clips text to fit into a maximum width.ColumnText(TPtrC &,TInt,const TDesC *,TChar)
Gets a portion of text from a descriptor, corresponding to a requested column.TruncateToNumChars(TDes &,TInt)
Truncates text to a number of characters.IMPORT_C static void ClipToFit(TDes &aBuffer, const CFont &aFont, TInt aMaxWidthInPixels, TChar aAlternativeEnd=KTextUtilClipEndChar);
Clips text to fit into a maximum width.
If the text is too wide to fit in the width when displayed in aFont, it is truncated and the specified character (by default, a horizontal ellipsis) is appended to it.
|
IMPORT_C static TInt ColumnText(TPtrC &aColumnText, TInt aColumn, const TDesC *aSourceText, TChar aColumnSeparator=KColumnListSeparator);
Gets a portion of text from a descriptor, corresponding to a requested column.
|
|
IMPORT_C static void TruncateToNumChars(TDes &aBuffer, TInt numChars);
Truncates text to a number of characters.
If truncation is required (because aBuffer contains more than numChars characters), an ellipsis is added to the text as the last character.
|