GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2007-06-29 20:41:23

xot
Administrator
Registered: 2007-08-18
Posts: 1,239

Smorgasbord of String Scripts

blogicon-20070629.gifWe present for your coding pleasure a smorgasbord of string scripts. We start with four versions of implode to go with the existing explode array scripts. Next are scripts to capitalize the first word or every word in a string. Here we have a script which returns the Soundex value of a word. Leif902 brings us a script to scramble a word's letters into a strangely readable form. Speaking of scrambled, here are two more, one to return a random string of characters and another to shuffle the characters in a string. Here are three scripts for trimming whitespace from the beginning, end, or both ends of a string. You can use this pair of scripts to split a string into chunks and to perform word wrapping to a given line length. Here is a pair to pad the left or pad the right side of a string. Another pair of simple but useful scripts return the left or right ends of a string. Here's one to find the last occurance of a substring within a string. Finally, we add another encryption routine to the collection with the fast and effective RC4 algorithm and end with another security script, MD5 message digest.


Abusing forum power since 1986.

Offline

Board footer

Powered by FluxBB