Join us in Outworldz at or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Strings ASCII  


A set of utilities for converting bytes to ASCII

Category: Strings
By : ChadStatosky
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for ASCII
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. ASCII_1.lsl
1 string ASCII = " \n !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
2 integer ord(string chr)
3 {
4 if(llStringLength(chr) != 1) return -1;
5 if(chr == " ") return 32;
6 return llSubStringIndex(ASCII, chr);
7 }
8 string chr(integer i)
9 {
10 i %= 127;
11 return llGetSubString(ASCII, i, i);
12 }

Back to the Best Free Tools in Second Life and OpenSim.