get_char_bytes

Синтаксис

native get_char_bytes(const source[]);

Употреба

source
Source input string.

Описание

Returns the number of bytes a character is using.  This is
for multi-byte characters (UTF-8).  For normal ASCII characters,
this will return 1.

Забележка

Only available in 1.8.3 and above.

Връщаща стойност

Number of bytes the current character uses.