by Forum_account
Some handy text procs. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Forum_account.Text##version=3

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


Version 3
Date added: Mar 12 2012
Last updated: Mar 15 2012
4 fans
This library contains some useful procs for dealing with text. There's not a lot of content here and I wouldn't normally post such a small library, but these procs are used by many other libraries. If each library that needs these procs defines them, including two of those libraries will result in a naming collisions.

// parse "10" as a base-16 integer
int("10", 16)

// replace "world" with "BYOND"
replace("Hello, world!", "world", "BYOND")

// split the string into a list of a, b, and c
var/list/l = split("a|b|c", "|")

// turn the list into a comma-separated string
merge(l, ", ")


Lugia319: (Jun 3 2012, 1:32 pm)
Alright, I'll keep trying then. Thanks.
Forum_account: (Jun 3 2012, 1:28 pm)
Lugia319 wrote:
Download is busted

The BYOND website is very shaky right now. The download seems to work but the site as a whole is being iffy. It took me four tries but I was able to download it.
Lugia319: (Jun 3 2012, 8:55 am)
Download is busted