5bc9fb9d24
* Remove no longer necessary support functions. * The new version uses a single BString as input/output parameter and only modifies that one by removing non-fitting chars and inserting the ellipsis where appropriate, so avoids copying around bytes/chars/strings in a few places. It uses the new Chars functions of BString so also no need for manual multibyte handling. * Adjusted the BFont and ServerFont usage of truncate_string() which are both simplified by using the single BString. It avoids a lot of temprary allocations and string copying. The char * version of BFont GetTruncatedStrings() now uses the BString version and not the other way around anymore which requires us to allocate temporary BString objects, it's not worse than before though. * This fixes a bunch of problems with the previous functions like always prepending the ellipsis for B_TRUNCATE_BEGINNING, crashing on short enough widths, violating the width in the B_TRUNCATE_END case when the width was short enough, non-optimal truncation in a few cases and sometimes truncation where none would've been needed. Also fixes #4128 which was a symptom of the broken B_TRUNCATE_BEGINNING. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35381 a95241bf-73f2-0310-859d-f6bbb57e9c96 |
||
---|---|---|
.. | ||
BitmapPrivate.h | ||
BMCPrivate.h | ||
clipping.h | ||
ColorConversion.h | ||
ColorTools.h | ||
ColumnListView.h | ||
ColumnTypes.h | ||
DefaultColors.h | ||
DirectWindowPrivate.h | ||
DraggerPrivate.h | ||
FontPrivate.h | ||
input_globals.h | ||
InterfacePrivate.h | ||
MenuPrivate.h | ||
MenuWindow.h | ||
Palette.h | ||
PictureDataWriter.h | ||
PicturePlayer.h | ||
PictureProtocol.h | ||
PrivateScreen.h | ||
RegionSupport.h | ||
ShapePrivate.h | ||
TextViewSupportBuffer.h | ||
ToolTip.h | ||
ToolTipManager.h | ||
ToolTipWindow.h | ||
truncate_string.h | ||
utf8_functions.h | ||
ViewPrivate.h | ||
WidthBuffer.h | ||
WindowInfo.h | ||
WindowPrivate.h |