mdz_utf32_reserve - maxdz-gmbh/mdz_unicode GitHub Wiki
Reserve nNewCapacity bytes for UTF-32 string. Size and Length do not change.
mdz_bool mdz_utf32_reserve(struct mdz_Utf32* pUtf32, size_t nNewCapacity);
| Parameter | Description |
|---|---|
pUtf32 |
pointer to string returned by mdz_utf32_create() or mdz_utf32_create_attached()
|
nNewCapacity |
new capacity in UTF-32 characters to reserve |
| Return | Description |
|---|---|
| mdz_false | if pUtf32 == NULL
|
| mdz_false | if memory allocation failed (MDZ_ERROR_ALLOCATION) |
| mdz_true | reservation succeeded, or nNewCapacity <= Capacity (MDZ_ERROR_CAPACITY) |