xref: /haiku/headers/private/interface/truncate_string.h (revision 2f470aec1c92ce6917b8a903e343795dc77af41f)
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