| 127 |
|
} |
| 128 |
|
return result; |
| 129 |
|
} |
| 130 |
+ |
|
| 131 |
+ |
|
| 132 |
+ |
template<typename T> |
| 133 |
+ |
bool isType(const std::string& str) { |
| 134 |
+ |
T result; |
| 135 |
+ |
std::istringstream iss(str); |
| 136 |
+ |
bool ret = true; |
| 137 |
+ |
if (!(iss >> result)) { |
| 138 |
+ |
ret = false; |
| 139 |
+ |
} |
| 140 |
+ |
return ret; |
| 141 |
+ |
} |
| 142 |
+ |
|
| 143 |
+ |
bool isInteger(const std::string& str); |
| 144 |
|
|
| 145 |
< |
std::string OOPSE_itoa(int value, unsigned int base); |
| 145 |
> |
std::string OOPSE_itoa(int value, unsigned int base = 10); |
| 146 |
|
|
| 147 |
|
/**@todo need implementation */ |
| 148 |
|
std::string getPrefix(const std::string& str); |