Location:
gulutil.h
Link against: egul.lib
TextUtils
Supported from 6.0
Provides utility functions for truncating and aligning text strings.
Defined in TextUtils:
ClipToFit(), ColumnText(), TruncateToNumChars()
static void ClipToFit(TDes& aBuffer,const CFont& aFont,TInt aMaxWidthInPixels,TChar aAlternativeEnd=KTextUtilClipEndChar);
Clips the text to fit a maximum width.
If the text is too wide to fit in the width when displayed in
aFont, the function truncates the text to fit and then appends the
specified character (by default, a horizontal ellipsis).
|
static TInt ColumnText(TPtrC& aColumnText,TInt aColumn,const TDesC* aSourceText,TChar aColumnSeparator=KColumnListSeparator);
Gets a portion of text from a descriptor corresponding to the requested column.
|
|
static void TruncateToNumChars(TDes& aBuffer, TInt numChars);
Truncates text to a number of characters. If truncation is
required (aBuffer contains more than numChars
characters), an ellipsis is added to a buffer as the last character.
|