some ini adjustment related to UT .

This commit is contained in:
Zero Fanker 2024-04-11 23:23:05 -04:00
parent de8426f014
commit fcd5b6b37f
4 changed files with 16 additions and 20 deletions

View file

@ -38,22 +38,32 @@
#include <ios>
#include "IniHelper.h"
using namespace std;
class SortDummy
{
public:
bool operator() (const CString&, const CString&) const;
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:
static const CString EmptyValue;
public:
CIniFileSection();
virtual ~CIniFileSection();