12 #ifndef __UTILINPUT_HEADER__
13 #define __UTILINPUT_HEADER__
28 #define ParamCheck1(exp) \
29 std::cout << exp << " in " << __func__ << "() in " << __LINE__ << " in " \
38 for (
USI i = 0; i < len; i++) {
39 res += (int)mystr[len - 1 - i] * t;
59 void DealData(
const vector<string>& vbuf, vector<OCP_USI>& obj, vector<T>& region)
63 for (
auto& str : vbuf) {
64 auto pos = str.find(
'*');
65 if (pos != string::npos) {
67 OCP_USI num = stoi(str.substr(0, pos));
68 USI val = stoi(str.substr(pos + 1, len - (pos + 1)));
70 region.push_back(val);
Definition of build-in datatypes and consts.
unsigned int USI
Generic unsigned integer.
unsigned int OCP_USI
Long unsigned integer.
unsigned int OCP_BOOL
OCP_BOOL in OCP.