NBi
NBi copied to clipboard
Native-transformations should support additional text manipulations
The list of native transformations should also support the following transformations for text values
-
text-to-count-substring
: returns the number of non-overlapping occurrences of a substring in an input string. -
text-to-replace-slice(text)
: Replace a slice of the input string. A specified 'length' of characters will be deleted from the input string beginning at the 'start' position and will be replaced by a new string. A start value of 1 indicates the first character of the input string. If start is negative or zero, or greater than the length of the input string, a null string is returned. If 'length' is negative, a null string is returned. If 'length' is zero, inserting of the new string occurs at the specified 'start' position and no characters are deleted. If 'length' is greater than the input string, deletion will occur up to the last character of the input string. -
text-to-swapcase
: Transform the string's lowercase characters to uppercase and uppercase characters to lowercase. -
text-to-capitalize
: Capitalize the first character of the input string. -
text-to-title
: Converts the input string into titlecase. Capitalize the first character of each word in the input string except for articles (a, an, the). -
text-to-center(length, char)
: Center the input string by padding the sides with a singlechar
until the specifiedlength
of the string has been reached. If thelength
will be reached with an uneven number of padding, the extra padding will be applied to the right side.