Implement probe_lua and add it to lpxclient/lpxserver

This commit is contained in:
2021-11-26 13:56:24 -05:00
parent c02109699e
commit 1e93533246
10 changed files with 134 additions and 35 deletions

View File

@@ -77,6 +77,10 @@ int common_prefix_length(const std::string &a, const std::string &b);
std::string tolower(std::string input);
std::string toupper(std::string input);
// Return true if the string has the specified prefix or suffix.
bool has_prefix(const std::string &s, const std::string &prefix);
bool has_suffix(const std::string &s, const std::string &suffix);
// Return true if the string can be parsed as an integer.
bool validinteger(const std::string &value);