User talk:LepreKhaun Resident/Workaround4Escaped Chars within JsonText

From Second Life Wiki
< User talk:LepreKhaun Resident
Revision as of 10:15, 14 October 2013 by Strife Onizuka (talk | contribs) (Loop)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Loop

That is a little ugly. <lsl>while ((iter = ++iter + (type == JSON_OBJECT)) < listLength)</lsl> For readability and speed I would recommend this: <lsl>int step = 1 + (type == JSON_OBJECT); while ((iter += step) < listLength)</lsl> -- Strife (talk|contribs) 10:15, 14 October 2013 (PDT)