MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / HL_Compare_files

Function HL_Compare_files

src/Helpers.c:2801–2816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2799}
2800
2801int 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
2818BOOL hl_iswordchar(WCHAR ch) {
2819 return IsCharAlphaNumericW(ch) || NULL != StrChr(L"_", ch);

Callers 1

HL_Open_File_by_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected