restored customized ini section map compare operator .

This commit is contained in:
Zero Fanker 2024-06-17 00:43:05 -04:00
parent ddbf167217
commit 78d3b083e1

View file

@ -41,6 +41,24 @@
using std::vector;
using std::map;
class SortDummy
{
public:
bool operator()(const CString& x, const CString& y) const
{
// the length is more important than spelling (numbers!!!)...
if (x.GetLength() < y.GetLength()) {
return true;
}
if (x.GetLength() == y.GetLength()) {
if (x < y) {
return true;
}
}
return false;
}
};
class CIniFileSection
{
public:
@ -198,7 +216,7 @@ public:
}
private:
map<CString, int64_t> value_pos{};
map<CString, int64_t, SortDummy> value_pos{};
Container value_pairs{};// sequenced
};