Kaya 0.5.3 reference for Builtins::byteLength

List of functions and data types in Builtins

Int byteLength(String s)

Arguments

Usage

Get the length in bytes of a String (allowing for multi-byte characters in a UTF-8 encoding).

str = "Hello multibyte: "+Char(192);
l = length(str); // 18
ml = byteLength(str); // 19

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya