Skip to content

mdz_utf8_reserve

maxdz-gmbh edited this page Apr 29, 2021 · 4 revisions

Reserve nNewCapacity bytes for UTF-8 string. String Size and Length do not change.

mdz_bool mdz_utf8_reserve(struct mdz_Utf8* pUtf8, size_t nNewCapacity);

Parameter Description
pUtf8 pointer to string returned by mdz_utf8_create() or mdz_utf8_create_attached()
nNewCapacity new capacity in bytes to reserve
Return Description
mdz_false if pUtf8 == NULL
mdz_false if memory allocation failed (MDZ_ERROR_ALLOCATION)
mdz_true reservation succeeded, or nNewCapacity <= Capacity (MDZ_ERROR_CAPACITY)
mdz_utf8 API Reference is generated using mdzApiRefGenerator.

Init mdz_unicode library functions

mdz_utf8 functions

mdz_wchar functions

mdz_utf16 functions

mdz_utf32 functions

mdz_unicode API Reference is generated using mdzApiRefGenerator.
Clone this wiki locally