1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/base/StringV.cc
12 #include <zypp/base/StringV.h>
14 ///////////////////////////////////////////////////////////////////
20 unsigned split( std::string_view line_r, std::string_view sep_r, Trim trim_r,
21 std::function<void(std::string_view)> fnc_r )
24 std::vector<std::string> words;
25 str::split( std::string(line_r), std::back_inserter(words), std::string(sep_r), str::TRIM );
28 for ( const auto & w : words )
29 fnc_r( std::string_view(w) );
36 ///////////////////////////////////////////////////////////////////