String Handler

by Nadrew
A simple-but-powerful string manipulation library. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Nadrew.StringHandler##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 1
Date added: Mar 2 2009
Last updated: Jan 26 2012
2 fans
Contains various functions to make strings easier to manage.

Explode(delimiter) alias of Split()

Implode(list,character) alias of Join()

Insert(string,index) inserts a string into another string at the given index.

Join(list,delimter) returns a string of delimited text based on the passed list and delimiter.

LTrim() trims all left-hand whitespace from the string.

RTrim() trims all right-hand whitespace from the string.

Remove(index,length) remove characters from a string based on the starting position and cutting length.

Replace(find,replace) replaces one string with another inside of the parent string.

Split(delimiter) splits a string into a list based on the delimiter.

Strip() removes all spaces from the string.

Trim() trims all whitespace from the beginning and the end of the string.