/** @brief Relative path to WinMerge executable for lang files. */
static const TCHAR szRelativePath[] = _T("Languages");
-template<size_t len>
-static wchar_t *EatPrefix(wchar_t *text, const wchar_t (&prefix)[len]);
static wchar_t *EatPrefix(wchar_t *text, const wchar_t *prefix);
static void unslash(std::wstring &s);
static HANDLE NTAPI FindFile(HANDLE h, LPCTSTR path, WIN32_FIND_DATA *fd);
return 0;
}
-template<size_t len>
-static wchar_t *EatPrefix(wchar_t *text, const wchar_t (&prefix)[len])
-{
- if (_memicmp(text, prefix, len * sizeof(wchar_t)) == 0)
- return text + len;
- return 0;
-}
-
/**
* @brief Convert C style \\nnn, \\r, \\n, \\t etc into their indicated characters.
* @param [in] codepage Codepage to use in conversion.