mdz_ansi_removeFrom_async - maxdz-gmbh/mdz_string GitHub Wiki
Remove nCount
item(s) starting from 0-based nLeftPos
position. After the operation, Capacity
doesn't change, Size
decreases on nCount
.
mdz_bool mdz_ansi_removeFrom_async(
struct mdz_Ansi* pAnsi,
size_t nLeftPos,
size_t nCount,
struct mdz_asyncData* pAsyncData);
Synchronous version:
mdz_ansi_removeFrom(pAnsi, nLeftPos, nCount);
Parameter | Description |
---|---|
pAnsi |
pointer to string returned by mdz_ansi_create() or mdz_ansi_create_attached()
|
nLeftPos |
0-based start position to remove item(s) from. Use 0 to remove from the beginning of string |
nCount |
number of item(s) to remove or 0 if pcItems until 0-terminator should be used |
pAsyncData |
pointer to shared async data for asynchronous call, or NULL if call should be synchronous |
Return | Description |
---|---|
mdz_false | if pAnsi == NULL
|
mdz_true | if nCount == 0 (MDZ_ERROR_ZEROCOUNT), or nCount is too big (MDZ_ERROR_BIGCOUNT), or nLeftPos + nCount > Size (MDZ_ERROR_BIGLEFT). No removes are made |
mdz_true | operation succeeded |