Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
|@@ -1,2 +1,12 @@|
|str - The original String you want truncated|
|len - The max length the final, truncated string can be (this takes into account the appended text)|
|append - Any optional text you would like to append after you truncate str.|
|If text cannot be truncated (the len isn't long enough to reach the first space (with or without your appended text), the function will return the original string.|