aboutsummaryrefslogtreecommitdiff
path: root/common/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/str.h')
-rw-r--r--common/str.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/str.h b/common/str.h
index ba1e0b8341..fd77fa90c8 100644
--- a/common/str.h
+++ b/common/str.h
@@ -235,6 +235,17 @@ public:
*/
void trim();
+ /**
+ * Wraps the text in the string to the given line maximum. Lines will be
+ * broken at any whitespace character. New lines are assumed to be
+ * represented using '\n'.
+ *
+ * This is a very basic line wrap which does not perform tab stop
+ * calculation, consecutive whitespace collapsing, auto-hyphenation, or line
+ * balancing.
+ */
+ void wordWrap(const uint32 maxLength);
+
uint hash() const;
/**@{