Package | Description |
---|---|
org.apache.commons.lang3.text |
Provides classes for handling and manipulating text, partly as an extension to
java.text . |
Modifier and Type | Field | Description |
---|---|---|
static StrMatcher |
StrSubstitutor.DEFAULT_PREFIX |
Constant for the default variable prefix.
|
static StrMatcher |
StrSubstitutor.DEFAULT_SUFFIX |
Constant for the default variable suffix.
|
static StrMatcher |
StrSubstitutor.DEFAULT_VALUE_DELIMITER |
Constant for the default value delimiter of a variable.
|
Modifier and Type | Method | Description |
---|---|---|
static StrMatcher |
StrMatcher.charMatcher(char ch) |
Constructor that creates a matcher from a character.
|
static StrMatcher |
StrMatcher.charSetMatcher(char... chars) |
Constructor that creates a matcher from a set of characters.
|
static StrMatcher |
StrMatcher.charSetMatcher(String chars) |
Constructor that creates a matcher from a string representing a set of characters.
|
static StrMatcher |
StrMatcher.commaMatcher() |
Returns a matcher which matches the comma character.
|
static StrMatcher |
StrMatcher.doubleQuoteMatcher() |
Returns a matcher which matches the double quote character.
|
StrMatcher |
StrTokenizer.getDelimiterMatcher() |
Gets the field delimiter matcher.
|
StrMatcher |
StrTokenizer.getIgnoredMatcher() |
Gets the ignored character matcher.
|
StrMatcher |
StrTokenizer.getQuoteMatcher() |
Gets the quote matcher currently in use.
|
StrMatcher |
StrTokenizer.getTrimmerMatcher() |
Gets the trimmer character matcher.
|
StrMatcher |
StrSubstitutor.getValueDelimiterMatcher() |
Gets the variable default value delimiter matcher currently in use.
|
StrMatcher |
StrSubstitutor.getVariablePrefixMatcher() |
Gets the variable prefix matcher currently in use.
|
StrMatcher |
StrSubstitutor.getVariableSuffixMatcher() |
Gets the variable suffix matcher currently in use.
|
static StrMatcher |
StrMatcher.noneMatcher() |
Matches no characters.
|
static StrMatcher |
StrMatcher.quoteMatcher() |
Returns a matcher which matches the single or double quote character.
|
static StrMatcher |
StrMatcher.singleQuoteMatcher() |
Returns a matcher which matches the single quote character.
|
static StrMatcher |
StrMatcher.spaceMatcher() |
Returns a matcher which matches the space character.
|
static StrMatcher |
StrMatcher.splitMatcher() |
Matches the same characters as StringTokenizer,
namely space, tab, newline and formfeed.
|
static StrMatcher |
StrMatcher.stringMatcher(String str) |
Constructor that creates a matcher from a string.
|
static StrMatcher |
StrMatcher.tabMatcher() |
Returns a matcher which matches the tab character.
|
static StrMatcher |
StrMatcher.trimMatcher() |
Matches the String trim() whitespace characters.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
StrBuilder.contains(StrMatcher matcher) |
Checks if the string builder contains a string matched using the
specified matcher.
|
StrBuilder |
StrBuilder.deleteAll(StrMatcher matcher) |
Deletes all parts of the builder that the matcher matches.
|
StrBuilder |
StrBuilder.deleteFirst(StrMatcher matcher) |
Deletes the first match within the builder using the specified matcher.
|
int |
StrBuilder.indexOf(StrMatcher matcher) |
Searches the string builder using the matcher to find the first match.
|
int |
StrBuilder.indexOf(StrMatcher matcher,
int startIndex) |
Searches the string builder using the matcher to find the first
match searching from the given index.
|
int |
StrBuilder.lastIndexOf(StrMatcher matcher) |
Searches the string builder using the matcher to find the last match.
|
int |
StrBuilder.lastIndexOf(StrMatcher matcher,
int startIndex) |
Searches the string builder using the matcher to find the last
match searching from the given index.
|
StrBuilder |
StrBuilder.replace(StrMatcher matcher,
String replaceStr,
int startIndex,
int endIndex,
int replaceCount) |
Advanced search and replaces within the builder using a matcher.
|
StrBuilder |
StrBuilder.replaceAll(StrMatcher matcher,
String replaceStr) |
Replaces all matches within the builder with the replace string.
|
StrBuilder |
StrBuilder.replaceFirst(StrMatcher matcher,
String replaceStr) |
Replaces the first match within the builder with the replace string.
|
StrTokenizer |
StrTokenizer.setDelimiterMatcher(StrMatcher delim) |
Sets the field delimiter matcher.
|
StrTokenizer |
StrTokenizer.setIgnoredMatcher(StrMatcher ignored) |
Set the matcher for characters to ignore.
|
StrTokenizer |
StrTokenizer.setQuoteMatcher(StrMatcher quote) |
Set the quote matcher to use.
|
StrTokenizer |
StrTokenizer.setTrimmerMatcher(StrMatcher trimmer) |
Sets the matcher for characters to trim.
|
StrSubstitutor |
StrSubstitutor.setValueDelimiterMatcher(StrMatcher valueDelimiterMatcher) |
Sets the variable default value delimiter matcher to use.
|
StrSubstitutor |
StrSubstitutor.setVariablePrefixMatcher(StrMatcher prefixMatcher) |
Sets the variable prefix matcher currently in use.
|
StrSubstitutor |
StrSubstitutor.setVariableSuffixMatcher(StrMatcher suffixMatcher) |
Sets the variable suffix matcher currently in use.
|
Constructor | Description |
---|---|
StrSubstitutor(StrLookup<?> variableResolver,
StrMatcher prefixMatcher,
StrMatcher suffixMatcher,
char escape) |
Creates a new instance and initializes it.
|
StrSubstitutor(StrLookup<?> variableResolver,
StrMatcher prefixMatcher,
StrMatcher suffixMatcher,
char escape,
StrMatcher valueDelimiterMatcher) |
Creates a new instance and initializes it.
|
StrTokenizer(char[] input,
StrMatcher delim) |
Constructs a tokenizer splitting using the specified delimiter matcher.
|
StrTokenizer(char[] input,
StrMatcher delim,
StrMatcher quote) |
Constructs a tokenizer splitting using the specified delimiter matcher
and handling quotes using the specified quote matcher.
|
StrTokenizer(String input,
StrMatcher delim) |
Constructs a tokenizer splitting using the specified delimiter matcher.
|
StrTokenizer(String input,
StrMatcher delim,
StrMatcher quote) |
Constructs a tokenizer splitting using the specified delimiter matcher
and handling quotes using the specified quote matcher.
|
Copyright © 2001–2018. All rights reserved.