public class TextUtil extends Object
| Constructor and Description |
|---|
TextUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
lastWordOrQuoteOf(String text,
boolean preserveQuotation) |
static String |
multiplyString(String string,
int times) |
static String |
removeSpaces(String command) |
static String[] |
splitAndKeepEscapedSpaces(String string,
boolean preserveEscapes) |
static String |
stripFromQuotes(String string) |
static String |
templateString(String templateString,
Map<String,? extends Object> data) |
static String |
templateString(String templateString,
String variablePrefix,
Map<String,? extends Object> data) |
static String[] |
tokenizeStringWithQuotes(String string)
Tokenizes a string, regarding quotes.
|
static String[] |
tokenizeStringWithQuotes(String string,
boolean trim)
Tokenizes a string, regarding quotes.
|
public static String templateString(String templateString, Map<String,? extends Object> data)
public static String templateString(String templateString, String variablePrefix, Map<String,? extends Object> data)
public static String[] splitAndKeepEscapedSpaces(String string, boolean preserveEscapes)
public static String[] tokenizeStringWithQuotes(String string)
string - the string to tokenize.public static String[] tokenizeStringWithQuotes(String string, boolean trim)
string - the string to tokenize.trim - whether or not to trim each token.Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.