12 #ifndef ZYPP_BASE_STRINGV_H 13 #define ZYPP_BASE_STRINGV_H 14 #include <string_view> 15 #ifdef __cpp_lib_string_view 85 unsigned split( std::string_view line_r, std::string_view sep_r,
Trim trim_r,
86 std::function<
void(std::string_view)> fnc_r );
89 inline unsigned split( std::string_view line_r, std::string_view sep_r,
90 std::function<
void(std::string_view)> fnc_r )
91 {
return split( line_r, sep_r, Trim::notrim, fnc_r ); }
94 inline unsigned split( std::string_view line_r,
95 std::function<
void(std::string_view)> fnc_r )
96 {
return split( line_r, std::string_view(), Trim::notrim, fnc_r ); }
101 #endif // __cpp_lib_string_view 102 #endif // ZYPP_BASE_STRINGV_H #define ZYPP_DECLARE_FLAGS_AND_OPERATORS(Name, Enum)
Trim
To define how to trim.
std::string trim(const std::string &s, const Trim trim_r)
Easy-to use interface to the ZYPP dependency resolver.
unsigned split(std::string_view line_r, std::string_view sep_r, Trim trim_r, std::function< void(std::string_view)> fnc_r)