Text

by Forum_account
[Share] [Zip]
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:

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

7022 downloads
Version 3
Date added: Mar 13 2012
Last updated: Mar 15 2012
3 fans
Some handy text procs. [More]
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, ", ")

More Info

Version 2 by Forum_account
Version 1 by Forum_account

Advertisement

Comments

Lugia319: (Jun 3 2012, 4:32 pm)
Alright, I'll keep trying then. Thanks.
Forum_account: (Jun 3 2012, 4: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, 11:55 am)
Download is busted