public class UnicodeUtils
extends java.lang.Object
| Constructor and Description |
|---|
UnicodeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
normalizeSpaces(java.lang.String in)
Normalizes all space characters in the given string to
U+0020, then collapses multiple adjacent spaces to a single space, and
removes any leading and trailing spaces.
|
static java.lang.String |
normalizeWhitespace(java.lang.String in)
Normalizes all whitespace and space characters in the given string to
U+0020, then collapses multiple adjacent spaces to a single space, and
removes any leading and trailing spaces.
|
public static java.lang.String normalizeWhitespace(java.lang.String in)
in - the string to normalizepublic static java.lang.String normalizeSpaces(java.lang.String in)
in - the string to normalize2012 Apache Software Foundation.