Files
strman-java/README.md
T

1.3 KiB

strman-java

A Java 8 string manipulation library without any dependencies. It is inspired by dleitee/strman.

Available Functions

append(value, strings...)

This method will append strings to the value.

import static strman.Strman.append;
String title = "s";
String result = append(title, "tr","m","an");
// result = "strman"

appendArray(value, strings)

This method will append all the values in strings array to the value.

import static strman.Strman.appendArray;
String title = "s";
String result = appendArray(title, new String[]{"tr","m","an"});
// result = "strman"

at(value, index)

Gets the character at index.

import static strman.Strman.at;
String result = at("foobar", 0);
// result = "f"

between(value, start, end)

Returns array with strings between start and end.

import static strman.Strman.between;
String[] parts = between("[abc][def]", "[", "]";
// parts = ["abc","def"]