Added support for collapseWhitespace function

This commit is contained in:
Shekhar Gulati
2016-05-04 19:46:48 +05:30
parent 59da6a956f
commit aee5d512ad
3 changed files with 64 additions and 19 deletions
+10
View File
@@ -66,6 +66,16 @@ char[] result = chars(title);
```
## collapseWhitespace(value)
Replace consecutive whitespace characters with a single space.
```java
final String input = " foo bar ";
final String result = collapseWhitespace(title);
// result = "foo bar";
```
## Other functions that can be added