Package org.lazywizard.lazylib
Class StringUtils
Object
StringUtils
Contains methods for working with
Strings.- Since:
- 1.8
- Author:
- LazyWizard
-
Method Summary
-
Method Details
-
wrapString
Word-wraps aString(ensures it fits within a certain width). Note: this does not work properly with text containing tab characters (\t).- Parameters:
toWrap- TheStringto be word-wrapped.maxLineLength- How long a line can reach before it's split in two. Must be at least 2, otherwise it will return an empty String.- Returns:
toWrapwrapped tomaxLineLengthwidth.- Since:
- 1.8
-
indent
-