-
Notifications
You must be signed in to change notification settings - Fork 0
mdz_ansi_trimLeft_async
Maksym Dzyubenko edited this page Feb 7, 2024
·
1 revision
Remove items which are contained in pcItems
from left, until first non-contained in pcItems
item is reached.
mdz_bool mdz_ansi_trimLeft_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_trimLeft(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 trim item(s) from left. Use 0 to trim from the beginning of string |
nRightPos |
0-based end position to trim item(s) up to. Use Size-1 or -1 to trim till the end of string |
pcItems |
pointer to items to remove |
nCount |
number of items 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 string is empty (MDZ_ERROR_EMPTY), or pcItems == NULL (MDZ_ERROR_ITEMS), or nCount == 0 (MDZ_ERROR_ZEROCOUNT), or nLeftPos > nRightPos (MDZ_ERROR_BIGLEFT), or nRightPos >= Size (MDZ_ERROR_BIGRIGHT). No trims are made |
mdz_true | operation succeeded |
mdz_ansi API Reference is generated using mdzApiRefGenerator.
mdz_string functions
- Init functions
mdz_ansi functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- Find functions
- Miscellaneous functions
mdz_utf8 functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- mdz_utf8_insertUtf8_async
- mdz_utf8_insertUtf8_string_async
- mdz_utf8_insertAnsi_async
- mdz_utf8_insertAnsi_string_async
- mdz_utf8_insertWchar_async
- mdz_utf8_insertWchar_string_async
- mdz_utf8_insertUtf16_async
- mdz_utf8_insertUtf16_string_async
- mdz_utf8_insertUtf32_async
- mdz_utf8_insertUtf32_string_async
mdz_wchar functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- mdz_wchar_insertWchar_async
- mdz_wchar_insertWchar_string_async
- mdz_wchar_insertAnsi_async
- mdz_wchar_insertAnsi_string_async
- mdz_wchar_insertUtf8_async
- mdz_wchar_insertUtf8_string_async
- mdz_wchar_insertUtf16_async
- mdz_wchar_insertUtf16_string_async
- mdz_wchar_insertUtf32_async
- mdz_wchar_insertUtf32_string_async
mdz_utf16 functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- mdz_utf16_insertUtf16_async
- mdz_utf16_insertUtf16_string_async
- mdz_utf16_insertAnsi_async
- mdz_utf16_insertAnsi_string_async
- mdz_utf16_insertWchar_async
- mdz_utf16_insertWchar_string_async
- mdz_utf16_insertUtf8_async
- mdz_utf16_insertUtf8_string_async
- mdz_utf16_insertUtf32_async
- mdz_utf16_insertUtf32_string_async
mdz_utf32 functions
- Init and destroy functions
- Reserve capacity functions
- Insert/remove functions
- mdz_utf32_insertUtf32_async
- mdz_utf32_insertUtf32_string_async
- mdz_utf32_insertAnsi_async
- mdz_utf32_insertAnsi_string_async
- mdz_utf32_insertWchar_async
- mdz_utf32_insertWchar_string_async
- mdz_utf32_insertUtf8_async
- mdz_utf32_insertUtf8_string_async
- mdz_utf32_insertUtf16_async
- mdz_utf32_insertUtf16_string_async