Skip to content

mdz_ansi_compare_async

Maksym Dzyubenko edited this page Feb 7, 2024 · 1 revision

Compare content of string with pcItems.

enum mdz_compare_result mdz_ansi_compare_async(
  const struct mdz_Ansi* pAnsi,
  size_t nLeftPos,
  const char* pcItems,
  size_t nCount,
  struct mdz_asyncData* pAsyncData);

Synchronous version:
mdz_ansi_compare(pAnsi, nLeftPos, pcItems, nCount);

Parameter Description
pAnsi pointer to string returned by mdz_ansi_create() or mdz_ansi_create_attached()
nLeftPos 0-based start position to compare from. Use 0 to compare from the beginning of string
pcItems pointer to items to compare
nCount number of items to compare 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_COMPARE_ERROR if pAnsi == NULL
MDZ_COMPARE_NONEQUAL if pcItems == NULL (MDZ_ERROR_ITEMS), or nCount == 0 and pcItems[0] == 0 (MDZ_ERROR_ZEROCOUNT), or nLeftPos >= Size (MDZ_ERROR_BIGLEFT), or nCount is too big (MDZ_ERROR_BIGCOUNT). No comparison is made
MDZ_COMPARE_EQUAL or MDZ_COMPARE_NONEQUAL Result of comparison
mdz_ansi API Reference is generated using mdzApiRefGenerator.

mdz_string functions

mdz_ansi functions

mdz_utf8 functions

mdz_wchar functions

mdz_utf16 functions

mdz_utf32 functions

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