| Package | Description |
|---|---|
| org.dromara.hutool.core.text |
提供文本相关操作的封装,还包括Unicode工具UnicodeUtil
|
| Modifier and Type | Method and Description |
|---|---|
static StrTrimer.TrimMode |
StrTrimer.TrimMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StrTrimer.TrimMode[] |
StrTrimer.TrimMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
CharSequenceUtil.trim(CharSequence str,
StrTrimer.TrimMode mode)
除去字符串头尾部的空白符,如果字符串是
null,依然返回null。 |
static String |
CharSequenceUtil.trim(CharSequence str,
StrTrimer.TrimMode mode,
Predicate<Character> predicate)
按照断言,除去字符串头尾部的断言为真的字符,如果字符串是
null,依然返回null。 |
| Constructor and Description |
|---|
StrTrimer(StrTrimer.TrimMode mode,
Predicate<Character> predicate)
构造
|
Copyright © 2025. All rights reserved.