| 2799 | } |
| 2800 | |
| 2801 | int HL_Compare_files(LPCWSTR sz1, LPCWSTR sz2) { |
| 2802 | int res1, res2; |
| 2803 | res1 = StrCmp(sz1, sz2); |
| 2804 | if (res1){ |
| 2805 | WCHAR b1[MAX_PATH], b2[MAX_PATH]; |
| 2806 | StrCpy(b1, sz1); |
| 2807 | StrCpy(b2, sz2); |
| 2808 | PathRemoveExtension(b1); |
| 2809 | PathRemoveExtension(b2); |
| 2810 | res2 = StrCmp(b1, b2); |
| 2811 | if (res2){ |
| 2812 | return res2; |
| 2813 | } |
| 2814 | } |
| 2815 | return res1; |
| 2816 | } |
| 2817 | |
| 2818 | BOOL hl_iswordchar(WCHAR ch) { |
| 2819 | return IsCharAlphaNumericW(ch) || NULL != StrChr(L"_", ch); |
no outgoing calls
no test coverage detected