textMemorySize (Memory Management)

Returns size of a UTF-8 string in bytes.

Arguments

text
is the string to get size of.

Return values

size
as an integer number.

Example

"Text" textMemorySize print LF print "Текст" textMemorySize print
Output:
4 10