USRP Hardware Driver and USRP Manual  Version:
UHD and USRP Manual
uhd::string Namespace Reference


UHD_API std::pair< std::string, std::string > split (const std::string &str, const std::string &delim)

Function Documentation

◆ split()

UHD_API std::pair<std::string, std::string> uhd::string::split ( const std::string &  str,
const std::string &  delim 

Split a string using a delimiter. The delimiter must be a substring of the original string.

strthe string to be split
delimthe delimiter in str used to determine the position of the split
a pair of substrings containing the characters before the first instance of the delimiter and after the first instance of the delimiter
uhd::runtime_errorif the delimiter is not found in the original string