String_length_utf8 - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Gets the number of characters in the given string and returns the count. This function is designed for UTF-8 encoded strings.

Parameters

Parameter Data Type Description
str string or const char* the string to get the length of

Return Values

size_t: Returns the number of characters in the string.

Example Call

// demonstrates getting the size of a UTF-8 encoded string
var sz = string_length_utf8(str);

NOTOC

Category:Function:String