Skip to content

StringUtils

Shanti Ranjan Das edited this page Jan 25, 2020 · 2 revisions

Requires String object to call below functions, like stirngObj.isValidEmail() and so on.

  • convertToArray(splitter: String): List<*>
    Convert string to array, Provide your splitter like, from which you want to separate values.

  • isValidEmail(): Boolean
    Returns true if email is valid. Uses regex to check.

  • isValidName(): Boolean
    Returns true if name is valid. Uses regex to check.

  • upperFirstLetter(): String
    Capitalize first character of each word.

  • lowerFirstLetter(): String
    De-Capitalize each character of each word.

Doesn't requires String object to call below functions

  • getIconifiedTitle(@DrawableRes drawableResourceId: Int): CharSequence
    Get character sequence for an icon.
Clone this wiki locally