| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | Returns: the ellipsis'd version of the string.the maximum size of the string (minimum size supported is 9) max, String the raw string to smash raw)Smash a long string to fit within the max string length, by taking the middle section of the string and replacing them with an ellipsis "..." Examples: .maxStringLength( 9, "Eatagramovabits") == "Eat...its" .maxStringLength(10, "Eatagramovabits") == "Eat...bits" .maxStringLength(11, "Eatagramovabits") == "Eata...bits" |
| public static String |
| TextUtils | back to summary |
|---|---|
| public TextUtils() | |
| hint | back to summary |
|---|---|
| public static String hint(String text) Create a hint of what the text is like. Used by logging and error messages to get a hint of what the text is like. | |
| maxStringLength | back to summary |
|---|---|
| public static String maxStringLength(int max, String raw) Smash a long string to fit within the max string length, by taking the middle section of the string and replacing them with an ellipsis "..." Examples: .maxStringLength( 9, "Eatagramovabits") == "Eat...its" .maxStringLength(10, "Eatagramovabits") == "Eat...bits" .maxStringLength(11, "Eatagramovabits") == "Eata...bits" | |
| quote | back to summary |
|---|---|
| public static String quote(String text) Create a hint of what the text is like. Used by logging and error messages to get a hint of what the text is like. | |