aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/uhd_usrp_probe.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-13 12:20:11 -0700
committerJosh Blum <josh@joshknows.com>2010-08-13 12:20:11 -0700
commit6d2899d18661e4cec5ae90692e08404ea48bc112 (patch)
tree5029781c6408cb2d0bdd25ca92a5becd44183138 /host/utils/uhd_usrp_probe.cpp
parent8bdc6cda2b5cc33b3eaf7f51d21d51887b77f45b (diff)
parent805d4a0cff00fb4e0071bb300436bb7eefb8fb16 (diff)
downloaduhd-6d2899d18661e4cec5ae90692e08404ea48bc112.tar.gz
uhd-6d2899d18661e4cec5ae90692e08404ea48bc112.tar.bz2
uhd-6d2899d18661e4cec5ae90692e08404ea48bc112.zip
Merge branch 'split_string' into next
Diffstat (limited to 'host/utils/uhd_usrp_probe.cpp')
-rw-r--r--host/utils/uhd_usrp_probe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/utils/uhd_usrp_probe.cpp b/host/utils/uhd_usrp_probe.cpp
index 097317516..8947034d7 100644
--- a/host/utils/uhd_usrp_probe.cpp
+++ b/host/utils/uhd_usrp_probe.cpp
@@ -18,6 +18,7 @@
#include <uhd/utils/safe_main.hpp>
#include <uhd/device.hpp>
#include <uhd/types/ranges.hpp>
+#include <uhd/utils/algorithm.hpp>
#include <uhd/usrp/device_props.hpp>
#include <uhd/usrp/mboard_props.hpp>
#include <uhd/usrp/dboard_props.hpp>
@@ -26,7 +27,6 @@
#include <uhd/usrp/subdev_props.hpp>
#include <uhd/usrp/dboard_id.hpp>
#include <boost/program_options.hpp>
-#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
#include <boost/foreach.hpp>
#include <iostream>
@@ -43,7 +43,7 @@ static std::string make_border(const std::string &text){
std::stringstream ss;
ss << boost::format(" _____________________________________________________") << std::endl;
ss << boost::format(" /") << std::endl;
- std::vector<std::string> lines; boost::split(lines, text, boost::is_any_of("\n"));
+ std::vector<std::string> lines = std::split_string(text, "\n");
while (lines.back() == "") lines.pop_back(); //strip trailing newlines
if (lines.size()) lines[0] = " " + lines[0]; //indent the title line
BOOST_FOREACH(const std::string &line, lines){