1Builtins.byteLength(3kaya)   Kaya module reference  Builtins.byteLength(3kaya)
2
3
4

NAME

6       Builtins::byteLength - Length in bytes of a string
7

SYNOPSIS

9       Int byteLength( String s )
10

ARGUMENTS

12       s The string to measure
13

DESCRIPTION

15       Get the length in bytes of a String (allowing for multi-byte characters
16       in a UTF-8 encoding).
17
18
19    str = "Hello multibyte: "+Char(192);
20    l = length(str); // 18
21    ml = byteLength(str); // 19
22

AUTHORS

24       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
25       (kaya@kayalang.org). For further information see http://kayalang.org/
26

LICENSE

28       The  Kaya  standard  library  is free software; you can redistribute it
29       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
30       License  (version  2.1  or  any later version) as published by the Free
31       Software Foundation.
32
34       Builtins.length (3kaya)
35
36
37
38Kaya                             December 2010      Builtins.byteLength(3kaya)
Impressum