mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-30 01:04:57 +02:00
Revert "Fix CI system error due to the project build env update"
This reverts commit c64049a1e64f9f8145bcd0847e914f8b05437739.
This commit is contained in:
parent
c64049a1e6
commit
3cbbb42933
@ -961,7 +961,7 @@ bool buf2Clipborad(const std::vector<Buffer*>& buffers, bool isFullPath, HWND hw
|
|||||||
if (fileName)
|
if (fileName)
|
||||||
selection += fileName;
|
selection += fileName;
|
||||||
}
|
}
|
||||||
if (!selection.empty() && ! selection.ends_with(crlf))
|
if (!selection.empty() && !endsWith(selection, crlf))
|
||||||
selection += crlf;
|
selection += crlf;
|
||||||
}
|
}
|
||||||
if (!selection.empty())
|
if (!selection.empty())
|
||||||
@ -1373,6 +1373,16 @@ void trim(generic_string& str)
|
|||||||
else str.erase(str.begin(), str.end());
|
else str.erase(str.begin(), str.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool endsWith(const generic_string& s, const generic_string& suffix)
|
||||||
|
{
|
||||||
|
#if defined(_MSVC_LANG) && (_MSVC_LANG > 201402L)
|
||||||
|
return s.ends_with(suffix);
|
||||||
|
#else
|
||||||
|
size_t pos = s.find(suffix);
|
||||||
|
return pos != s.npos && ((s.length() - pos) == suffix.length());
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
int nbDigitsFromNbLines(size_t nbLines)
|
int nbDigitsFromNbLines(size_t nbLines)
|
||||||
{
|
{
|
||||||
int nbDigits = 0; // minimum number of digit should be 4
|
int nbDigits = 0; // minimum number of digit should be 4
|
||||||
|
@ -225,6 +225,7 @@ template<typename T> size_t vecRemoveDuplicates(std::vector<T>& vec, bool isSort
|
|||||||
}
|
}
|
||||||
|
|
||||||
void trim(generic_string& str);
|
void trim(generic_string& str);
|
||||||
|
bool endsWith(const generic_string& s, const generic_string& suffix);
|
||||||
|
|
||||||
int nbDigitsFromNbLines(size_t nbLines);
|
int nbDigitsFromNbLines(size_t nbLines);
|
||||||
|
|
||||||
|
@ -457,7 +457,7 @@ private:
|
|||||||
if (extIndex >= 0 && extIndex < static_cast<int>(_filterSpec.size()))
|
if (extIndex >= 0 && extIndex < static_cast<int>(_filterSpec.size()))
|
||||||
{
|
{
|
||||||
const generic_string ext = get1stExt(_filterSpec[extIndex].ext);
|
const generic_string ext = get1stExt(_filterSpec[extIndex].ext);
|
||||||
if (!ext.ends_with(_T(".*")))
|
if (!endsWith(ext, _T(".*")))
|
||||||
return replaceExt(name, ext);
|
return replaceExt(name, ext);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -707,7 +707,7 @@ public:
|
|||||||
if (!hasExt(newFileName))
|
if (!hasExt(newFileName))
|
||||||
{
|
{
|
||||||
const generic_string ext = get1stExt(_filterSpec[_fileTypeIndex].ext);
|
const generic_string ext = get1stExt(_filterSpec[_fileTypeIndex].ext);
|
||||||
if (!ext.ends_with(_T(".*")))
|
if (!endsWith(ext, _T(".*")))
|
||||||
newFileName += ext;
|
newFileName += ext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
version: 8.4.{build}
|
version: 8.4.{build}
|
||||||
image: Visual Studio 2022
|
image: Visual Studio 2019
|
||||||
|
|
||||||
#skip_commits:
|
#skip_commits:
|
||||||
# files:
|
# files:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user