GetCharBytes Function

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.

int GetCharBytes(const char[] source)

Parameters

const char[] source

Source input string.

Return Value

Number of bytes the current character uses.