iconvUtf8ToLocaleLength

Allocates a new string buffer containing the first n bytes of str converted to the user's locale charset.

string
iconvUtf8ToLocaleLength
(
string str
,
size_t n
)

Parameters

str string

string in UTF-8 charset

n size_t

number of bytes to convert

Return Value

Type: string

a new string buffer containing the first n bytes of str converted to the user's locale charset.