| 50 | } |
| 51 | |
| 52 | static bool hexOrDec(string &str, uintptr_t &value) |
| 53 | { |
| 54 | std::stringstream ss; |
| 55 | ss << str; |
| 56 | if (str.find("0x") == 0 && (ss >> std::hex >> value)) |
| 57 | return true; |
| 58 | else if (ss >> std::dec >> value) |
| 59 | return true; |
| 60 | |
| 61 | return false; |
| 62 | } |
| 63 | |
| 64 | static bool mightBeVec(vector<t_memrange> &ranges, |
| 65 | t_vecTriplet *vec) |
no test coverage detected