Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 2.58 KB

README.md

File metadata and controls

34 lines (31 loc) · 2.58 KB

string

Access every method through the namespace form Numeric.string.method.

Methods

Method Description
add Joins matching entries of two string inputs.
align Pads text using the requested alignment mode.
capitalize Uppercases the first character and lowers the remainder.
check Matches each string against a named validation pattern.
count Counts non-overlapping matches inside each string.
decode Converts byte buffers using UTF-8 encoding.
encode Converts strings into UTF-8 byte buffers.
equal Compares matching entries using the requested operator.
find Reports the index of the first or last occurrence.
greater Reports whether the left string sorts after the right.
join Inserts a separator between every character.
length Counts characters in each string entry.
less Reports whether the left string sorts before the right.
lower Lowercases every string entry.
mod Substitutes placeholders in the template string.
multiply Concatenates each string with itself repeatedly.
pad Replaces tab stops with spaces up to the width.
partition Reports the text before and after the separator.
prefix Checks the beginning of each string entry.
replace Swaps every match of the search string.
slice Slices each string between the given bounds.
split Splits each string on a separator or line break.
strip Trims characters from one or both ends.
suffix Checks the end of each string entry.
swapcase Inverts uppercase and lowercase letters.
upper Uppercases every string entry.