| 204 | DWORD g_dwDDSFormatDescCount = sizeof(g_DDSFormatDesc) / sizeof(g_DDSFormatDesc[0]); |
| 205 | |
| 206 | static 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 | |
| 235 | CMP_FORMAT ParseFormat(const char* pszFormat) |
| 236 | { |