MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / isanum_string

Function isanum_string

src/common/lookup.cpp:35–38  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

33 * number, otherwise false.
34 */
35static inline bool isanum_string(const std::string &data)
36{
37 return std::all_of(data.begin(), data.end(), ::isdigit);
38}
39
40
41static inline char *alloc_sysconf_buffer(int name, size_t *retlen)

Callers 1

get_useridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected