StringUtils

class StringUtils

Functions

equals
Link copied to clipboard
open fun equals(s1: CharSequence, s2: CharSequence): Boolean
Return whether string1 is equals to string2.
equalsIgnoreCase
Link copied to clipboard
open fun equalsIgnoreCase(s1: String, s2: String): Boolean
Return whether string1 is equals to string2, ignoring case considerations..
isEmpty
Link copied to clipboard
open fun isEmpty(s: CharSequence): Boolean
Return whether the string is null or 0-length.
isSpace
Link copied to clipboard
open fun isSpace(s: String): Boolean
Return whether the string is null or white space.
isTrimEmpty
Link copied to clipboard
open fun isTrimEmpty(s: String): Boolean
Return whether the string is null or whitespace.
length
Link copied to clipboard
open fun length(s: CharSequence): Int
Return the length of string.
lowerFirstLetter
Link copied to clipboard
open fun lowerFirstLetter(s: String): String
Set the first letter of string lower.
null2Length0
Link copied to clipboard
open fun null2Length0(s: String): String
Return {@code ""} if string equals null.
reverse
Link copied to clipboard
open fun reverse(s: String): String
Reverse the string.
toDBC
Link copied to clipboard
open fun toDBC(s: String): String
Convert string to DBC.
toSBC
Link copied to clipboard
open fun toSBC(s: String): String
Convert string to SBC.
upperFirstLetter
Link copied to clipboard
open fun upperFirstLetter(s: String): String
Set the first letter of string upper.