Module : stringutils

Version : 0.5.0

Module overview

This module provides utility functions to manipulate the built-in string data type.

Functions

contains

Checks whether the given string contains a particular substring.

equalsIgnoreCase
I

Checks if two strings are equal ignoring the case of the strings.

hashCode
I

Returns a hash code for a given string.

lastIndexOf
I

Returns the last index of the provided substring within a string.

matches
I

Checks whether the given string matches the provided regex.

replace
I

Replaces each occurrence of the provided substring inside the provided originalString with the specified replacement string.

replaceAll
I

Replaces each occurrence of the substrings, which matches the provided regular expression from the given original string value with the provided replacement string.

replaceFirst
I

Replaces the first substring that matches the given regular expression with the provided replacement string.

split
I

Returns an array of strings by splitting a string using the provided delimiter.

toBoolean
I

Returns a boolean value of a given string.