> On 23 Jun 2017, at 7:18 am, Richard Gaskin via use-livecode 
> <use-livecode@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
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to