Skip to content
Snippets Groups Projects
Commit e6e5f3b1 authored by hvanwelbergen's avatar hvanwelbergen
Browse files

Merge branch 'master' of portb.techfak.uni-bielefeld.de:/vol/soa/repositories/ipaaca

parents 873934e7 922f3458
No related branches found
No related tags found
No related merge requests found
Showing
with 3065 additions and 1669 deletions
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -32,8 +32,20 @@ ...@@ -32,8 +32,20 @@
#include <ipaaca/ipaaca.h> #include <ipaaca/ipaaca.h>
#include <cctype>
#include <string>
#include <algorithm>
namespace ipaaca { namespace ipaaca {
std::string str_trim(const std::string &s)
{
auto wsfront = std::find_if_not(s.begin(), s.end(), [](int c){ return std::isspace(c); } );
auto wsback = std::find_if_not(s.rbegin(), s.rend(), [](int c){ return std::isspace(c); } ).base();
return (wsback<=wsfront ? std::string() : std::string(wsfront, wsback));
}
std::string str_join(const std::set<std::string>& set,const std::string& sep) std::string str_join(const std::set<std::string>& set,const std::string& sep)
{ {
if(set.size()==0) if(set.size()==0)
......
This diff is collapsed.
[transport.spread]
host = localhost
port = 4803
enabled = 1
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment