* Checks if the input string is a number or a string * * @param data std::string of the data to classify * @return Returns true if the input string is a plain, positive integer * number, otherwise false. */
| 33 | * number, otherwise false. |
| 34 | */ |
| 35 | static inline bool isanum_string(const std::string &data) |
| 36 | { |
| 37 | return std::all_of(data.begin(), data.end(), ::isdigit); |
| 38 | } |
| 39 | |
| 40 | |
| 41 | static inline char *alloc_sysconf_buffer(int name, size_t *retlen) |