//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include <OCApi.h>
-#include <OCUtilities.h>
+#include "OCApi.h"
+
+#include "OCUtilities.h"
#include <boost/algorithm/string.hpp>
+
#include <sstream>
#include <iterator>
#include <algorithm>
}
std::vector<std::string> queryparams;
- boost::split(queryparams, uri, [](const char c){return c=='&';},
- boost::token_compress_on);
+ boost::split(queryparams, uri, boost::is_any_of(OC_QUERY_SEPARATOR), boost::token_compress_on);
for(std::string& it: queryparams)
{
qp[it.substr(0, index)] = it.substr(index + 1);
}
}
-
- return qp;
-}
+ return qp;
+ }
namespace OC {
case OC_STACK_PRESENCE_TIMEOUT:
case OC_STACK_PRESENCE_DO_NOT_HANDLE:
#endif
-
break;
}
}
} // namespace OC
+