public class StringUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StringUtil.StringPart |
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsWhitespace(CharSequence str) |
static byte |
countUTF8CharBytes(byte b) |
static String |
emojiToUnicode(String src)
将emoji字符转成Unicode
|
static boolean |
hasLength(CharSequence str) |
static boolean |
hasLength(String str) |
static boolean |
hasText(CharSequence str) |
static boolean |
hasText(String str) |
static boolean |
isAllNumeric(String str) |
static boolean |
isEmojiCharacter(int codePoint)
判断是否包含Emoji符号
|
static boolean |
isEmpty(String str) |
static StringUtil.StringPart |
partUTF8String(String src) |
static String |
removeEmoji(String src) |
static String |
replace(String inString,
String oldPattern,
String newPattern) |
static String |
unicodeToEmoji(String src)
将Unicode字符转成emoji
|
public static boolean isEmpty(String str)
public static boolean isAllNumeric(String str)
public static boolean hasLength(CharSequence str)
public static boolean hasLength(String str)
public static boolean hasText(CharSequence str)
public static boolean hasText(String str)
public static boolean containsWhitespace(CharSequence str)
public static String emojiToUnicode(String src)
src - xxxpublic static String unicodeToEmoji(String src)
src - xxxpublic static boolean isEmojiCharacter(int codePoint)
codePoint - xxxpublic static byte countUTF8CharBytes(byte b)
public static StringUtil.StringPart partUTF8String(String src)
Copyright © 2019. All rights reserved.