| 329 | |
| 330 | |
| 331 | S32 dStrcmp( const UTF16 *str1, const UTF16 *str2) |
| 332 | { |
| 333 | #if defined(TORQUE_OS_WIN) || defined(TORQUE_OS_XBOX) || defined(TORQUE_OS_XENON) |
| 334 | return wcscmp( reinterpret_cast<const wchar_t *>( str1 ), reinterpret_cast<const wchar_t *>( str2 ) ); |
| 335 | #else |
| 336 | S32 ret; |
| 337 | const UTF16 *a, *b; |
| 338 | a = str1; |
| 339 | b = str2; |
| 340 | |
| 341 | while( ((ret = *a - *b) == 0) && *a && *b ) |
| 342 | a++, b++; |
| 343 | |
| 344 | return ret; |
| 345 | #endif |
| 346 | } |
| 347 | |
| 348 | char* dStrupr(char *str) |
| 349 | { |