1 /* 2 * Copyright 2005, Stephan Aßmus <superstippi@gmx.de>. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * a helper function to truncate strings 6 * 7 */ 8 9 10 #ifndef TRUNCATE_STRING_H 11 #define TRUNCATE_STRING_H 12 13 #include <SupportDefs.h> 14 15 // truncated_string 16 void 17 truncate_string(const char* string, 18 uint32 mode, float width, char* result, 19 const float* escapementArray, float fontSize, 20 float ellipsisWidth, int32 length, int32 numChars); 21 22 #endif // STRING_TRUNCATION_H 23