-
Notifications
You must be signed in to change notification settings - Fork 0
mdz_ansi_remove_async
maxdz-gmbh edited this page Apr 29, 2021
·
6 revisions
Remove all ocurrences of nCount
item(s) matching to pcItems
, residing between nLeftPos
and nRightPos
. After remove(s) Capacity
doesn't change, Size
decreases on nCount
of removed items.
mdz_bool mdz_ansi_remove_async(
struct mdz_Ansi* pAnsi,
size_t nLeftPos,
size_t nRightPos,
const char* pcItems,
size_t nCount,
struct mdz_asyncData* pAsyncData);
Synchronous version:
mdz_ansi_remove(pAnsi, nLeftPos, nRightPos, pcItems, 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 search from the beginning of string |
nRightPos |
0-based end position to remove item(s) up to. Use Size-1 or -1 to serch till the end of string |
pcItems |
pointer to items to remove |
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 pcItems == NULL (MDZ_ERROR_ITEMS), or nCount == 0 and pcItems [0] == 0 (MDZ_ERROR_ZEROCOUNT), or nLeftPos > nRightPos (MDZ_ERROR_BIGLEFT), or nRightPos >= Size (MDZ_ERROR_BIGRIGHT), or nCount is too big (MDZ_ERROR_BIGCOUNT). No removes are made |
mdz_true | operation succeeded |
mdz_ansi API Reference is generated using mdzApiRefGenerator.
Init mdz_ansi library functions
mdz_ansi functions
- Create and destroy functions
- Reserve capacity functions
- Insert/remove functions
- Find functions
- Miscellaneous functions