Revision 202b47e9 src/common/NebulaUtil.cc

View differences:

src/common/NebulaUtil.cc
339 339
/* -------------------------------------------------------------------------- */
340 340
/* -------------------------------------------------------------------------- */
341 341

  
342
namespace one_util
343
{
344
template<>
345
void split_unique(const std::string& st, char delim, std::set<std::string>& res)
346
{
347
    std::vector<std::string>::const_iterator it;
348

  
349
    std::vector<std::string> strings = split(st, delim, true);
350

  
351
    for (it = strings.begin(); it != strings.end(); it++)
352
    {
353
        res.insert(*it);
354
    }
355
}
356
}
357

  
358
/* -------------------------------------------------------------------------- */
359
/* -------------------------------------------------------------------------- */
360

  
342 361
/**
343 362
 *  Buffer length for zlib inflate/deflate
344 363
 */

Also available in: Unified diff