Implemented IniMeta helpers to fetch combination of ini files .

This commit is contained in:
Zero Fanker 2024-04-25 22:14:06 -04:00
parent d1a32df54b
commit 90fa8eb408
10 changed files with 308 additions and 4 deletions

View file

@ -0,0 +1,25 @@
#pragma once
#include <afx.h>
#include <vector>
namespace utilities {
static std::vector<CString> split_string(const CString& pSource, TCHAR cSplit = ',')
{
std::vector<CString> ret;
CString tmp = pSource;
int pos = 0;
while ((pos = tmp.Find(cSplit)) != -1) {
ret.push_back(tmp.Left(pos));
tmp = tmp.Mid(pos + 1);
}
if (!tmp.IsEmpty()) {
ret.push_back(tmp);
}
return ret;
}
}