byteLen()?

Mark Waddingham mark at livecode.com
Thu Mar 9 02:55:05 EST 2017


Hi Richard,

No, there is no such function as the byte length is a property of text which has been encoded with a specific encoding, not text in general.

the number of bytes in textEncode(tText, kEncoding)

Should give you what you need.

Warmest Regards,

Mark.

Sent from my iPhone

> On 9 Mar 2017, at 02:37, Richard Gaskin via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> the len() function returns a character count, but with Unicode this may be very different than the byte size.
> 
> Do we have a size() or byteLen() function?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com                http://www.FourthWorld.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list