| Package | Description |
|---|---|
| org.aoju.bus.core.text |
| Modifier and Type | Field and Description |
|---|---|
static StrMatcher |
Substitute.DEFAULT_PREFIX
默认变量前缀.
|
static StrMatcher |
Substitute.DEFAULT_SUFFIX
默认变量后缀.
|
static StrMatcher |
Substitute.DEFAULT_VALUE_DELIMITER
默认值分隔符.
|
| Modifier and Type | Method and Description |
|---|---|
static StrMatcher |
StrMatcher.charMatcher(char ch)
构造函数
|
static StrMatcher |
StrMatcher.charSetMatcher(char... chars)
构造函数
|
static StrMatcher |
StrMatcher.charSetMatcher(String chars)
构造函数
|
static StrMatcher |
StrMatcher.commaMatcher()
返回一个匹配逗号字符的匹配器
|
static StrMatcher |
StrMatcher.doubleQuoteMatcher()
匹配字符串双引号字符.
|
StrMatcher |
Substitute.getValueDelimiterMatcher() |
StrMatcher |
Substitute.getVariablePrefixMatcher()
获取当前使用的变量前缀匹配器
|
StrMatcher |
Substitute.getVariableSuffixMatcher()
获取当前使用的变量后缀匹配器
|
static StrMatcher |
StrMatcher.noneMatcher()
匹配任何字符.
|
static StrMatcher |
StrMatcher.quoteMatcher()
匹配字符串单引号/双引号字符.
|
static StrMatcher |
StrMatcher.singleQuoteMatcher()
匹配字符串单引号字符.
|
static StrMatcher |
StrMatcher.spaceMatcher()
返回一个匹配空格字符的匹配器
|
static StrMatcher |
StrMatcher.splitMatcher()
匹配相同的字符,即空格、制表符、换行符等.
|
static StrMatcher |
StrMatcher.stringMatcher(String str)
构造函数
|
static StrMatcher |
StrMatcher.tabMatcher()
返回一个匹配tab字符的匹配器
|
static StrMatcher |
StrMatcher.trimMatcher()
匹配字符串trim()空白字符.
|
| Modifier and Type | Method and 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.
|
Substitute |
Substitute.setValueDelimiterMatcher(StrMatcher valueDelimiterMatcher) |
Substitute |
Substitute.setVariablePrefixMatcher(StrMatcher prefixMatcher)
设置当前使用的变量前缀匹配器
|
Substitute |
Substitute.setVariableSuffixMatcher(StrMatcher suffixMatcher)
设置当前使用的变量后缀匹配器
|
| Constructor and Description |
|---|
Substitute(StrLookup<?> resolver,
StrMatcher prefixMatcher,
StrMatcher suffixMatcher,
char escape)
创建一个新实例并初始化.
|
Substitute(StrLookup<?> resolver,
StrMatcher prefixMatcher,
StrMatcher suffixMatcher,
char escape,
StrMatcher delimiter)
创建一个新实例并初始化.
|
Copyright © 2020. All rights reserved.