public class TextUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
lastWordOrQuoteOf(String text,
boolean preserveQuotation) |
static String |
templateString(String templateString,
Map<String,?> data) |
static String |
templateString(String templateString,
String variablePrefix,
Map<String,?> data) |
static String[] |
tokenizeStringWithQuotes(String string)
Tokenizes a string, regarding quotes.
|
static String[] |
tokenizeStringWithQuotes(String string,
boolean trim,
boolean preserveEscapeCharacters)
Tokenizes a string, regarding quotes.
|
public static String templateString(String templateString, String variablePrefix, Map<String,?> data)
public static String[] tokenizeStringWithQuotes(String string)
string - the string to tokenize.public static String[] tokenizeStringWithQuotes(String string, boolean trim, boolean preserveEscapeCharacters)
string - the string to tokenize.trim - whether or not to trim each token.preserveEscapeCharacters - whether or not to preserve escape characters '\', otherwise skip them.Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.