First 1000 characters without loop?

Monte Goulding monte at appisle.net
Thu Jun 22 19:47:01 EDT 2017


> On 23 Jun 2017, at 7:18 am, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> is that true that UTF-16 gives us two-bytes per char across the board?

That’s true (the 16 means 16 bit) but internally strings may be either native 8 bit or unicode 16 bit.

It should just be a direct memory copy so it’s about as efficient as you are going to get. If you don’t need the trailing chars it would be more efficient from a memory perspective to delete the remaining chars.

Cheers

Monte


More information about the use-livecode mailing list