|
Al Bravo
Retired
Join date: 29 Jun 2004
Posts: 373
|
10-02-2006 08:38
I have a string of integers returned from llHttpRequest that is separated by Tabs. 1<tab>2<tab>3.... The string can be up to 240 chars long (counting <tab> as 1 char). I need to retrieve these values sequentially one at a time. I would like to do this: integer index = llSubStringIndex(stringWithTabs, "\t"); val = (integer)llGetSubString(stringWithTabs, 0, index - 1); stringWithTabs= llDeleteSubString(stringWithTabs, 0, index); But the "\t" reference is obviously invalid. Due to the string size limits on llEscapeURL() my string is too long. Splitting it up is a bit of challenge since I can't search on the tab char. Though I may end up fudging a function for this. Is there an easier way to reference special chars that I am missing?
|
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
10-02-2006 11:13
Well, my first answer would be to change your output delimiter. I guess that's not an option, though. You can access any special character you want in a script by using llUnescapeURL(). I believe something like llUnescapeURL("%09"  might be what you want, but I may have the number wrong. It turns out that using llUnescapeURL like this (or llBase64ToInteger) is the only way to get at extended ascii characters in a script... trying to include them in a string literal makes the compiler puke.
|