string_byte_length

This function returns the number of bytes in a string. Due to their being held as UTF8, this will not be equal to the number of characters in the string.

 

Syntax:

string_byte_length(string);

ArgumentTypeDescription
stringStringThe string to measure the number of bytes of.

 

Returns:

Real

 

Example:

bytesize = string_byte_length("Hello World");

This would set bytesize to the number of bytes in "Hello World".