MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / stringicmp

Function stringicmp

examples/common/dds_helpers.cpp:206–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204DWORD g_dwDDSFormatDescCount = sizeof(g_DDSFormatDesc) / sizeof(g_DDSFormatDesc[0]);
205
206static bool stringicmp(const char* left, const char* right)
207{
208 while (true)
209 {
210 char leftc = *left;
211 char rightc = *right;
212
213 if (!leftc && !rightc)
214 {
215 return true;
216 }
217
218 if (!leftc || !rightc)
219 {
220 return false;
221 }
222
223 if (toupper(leftc) != toupper(rightc))
224 {
225 return false;
226 }
227
228 left++;
229 right++;
230 }
231
232 return false;
233}
234
235CMP_FORMAT ParseFormat(const char* pszFormat)
236{

Callers 1

ParseFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected