al_ustr_size

size_t al_ustr_size(const ALLEGRO_USTR *us)
Introduced in 5.0.0

Return the size of the string in bytes. This is equal to the number of code points in the string if the string is empty or contains only 7-bit ASCII characters.

See also: al_ustr_length

Examples: ex_utf8


Most helpful discussions: