12namespace uhd {
namespace string {
25 const std::string& str,
const std::string& delim)
27 auto delim_pos = str.find(delim);
28 if (delim_pos == std::string::npos) {
30 "Delimiter \"" + delim +
"\" not found in string \"" + str +
"\"");
32 return std::make_pair(str.substr(0, delim_pos), str.substr(delim_pos + 1));
#define UHD_API
Definition: config.h:87
UHD_API std::pair< std::string, std::string > split(const std::string &str, const std::string &delim)
Definition: string.hpp:24
Definition: build_info.hpp:12
Definition: exception.hpp:132