First 1000 characters without loop?

Richard Gaskin ambassador at fourthworld.com
Fri Jun 23 21:05:58 EDT 2017


Mark Waddingham wrote:

 > On 2017-06-22 23:18, Richard Gaskin wrote:
 >> With many chunk expressions, I would imagine it does.  With line
 >> chunks, for example, the engine needs to walk through the string,
 >> comparing each character to CR, counting the found CRs as it goes.
 >
 > Yes - essentially that is the case (although technically it looks for
 > LF, not CR as currently - for better or for worse - the engine assumes
 > line means LF as the separator, and normalizes line endings
 > appropriately on a per-platform basis when you 'import' things as text
 > into LiveCode).

Yes, where I wrote "CR" I meant the LiveCode constant, which 
historically has been synonymous with LF - has that changed?

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list