MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / mz_zip_reader_string_equal

Function mz_zip_reader_string_equal

SampleFramework11/v1.02/TinyEXR.cpp:4873–4883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4871}
4872
4873static MZ_FORCEINLINE mz_bool
4874mz_zip_reader_string_equal(const char *pA, const char *pB, mz_uint len,
4875 mz_uint flags) {
4876 mz_uint i;
4877 if (flags & MZ_ZIP_FLAG_CASE_SENSITIVE)
4878 return 0 == memcmp(pA, pB, len);
4879 for (i = 0; i < len; ++i)
4880 if (MZ_TOLOWER(pA[i]) != MZ_TOLOWER(pB[i]))
4881 return MZ_FALSE;
4882 return MZ_TRUE;
4883}
4884
4885static MZ_FORCEINLINE int
4886mz_zip_reader_filename_compare(const mz_zip_array *pCentral_dir_array,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected