public final class StringUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
expandVars(String expression,
Map<?,?> properties)
Expands any variable found in the given expression with the values in the given map.
|
static String[] |
split(String str,
char delimiter,
boolean trim) |
static List<String> |
split(String str,
char delimiter,
char escape,
boolean trim)
Split the given string.
|
static String |
toAscii(String s)
Replaces accented characters from a non-null String by their ascii equivalent.
|
static String |
toAscii(String s,
boolean normalize)
Replaces accented characters from a non-null String by their ascii equivalent.
|
public static String toAscii(String s, boolean normalize)
normalize - if true, normalize the string using NFCpublic static String toAscii(String s)
public static List<String> split(String str, char delimiter, char escape, boolean trim)
str - the string to splitdelimiter - the delimiter to split withescape - the character used to escape the delimitertrim - trim the extracted segmentspublic static String expandVars(String expression, Map<?,?> properties)
The variable format is ${property_key}.
expression - the expression to expandproperties - a map containing variablesCopyright © 2019 Nuxeo. All rights reserved.