1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-15 14:59:46 +00:00

Add a generic split() function.

This commit is contained in:
King_DuckZ 2017-08-16 21:09:15 +01:00
parent 40f98fb382
commit 527f8cedea
2 changed files with 38 additions and 12 deletions

View file

@ -19,13 +19,13 @@
#define id913CE9D2F60745349F39F2C82455973E
#include <vector>
#include <string>
#include <boost/utility/string_ref.hpp>
#include "duckhandy/compatibility.h"
namespace dincore {
std::vector<boost::string_ref> split_and_trim ( const std::string& parList, char parSeparator ) a_pure;
std::vector<boost::string_ref> split_tags ( const std::string& parCommaSeparatedList ) a_pure;
std::vector<boost::string_ref> split_and_trim ( boost::string_ref parList, char parSeparator ) a_pure;
std::vector<boost::string_ref> split_tags ( boost::string_ref parCommaSeparatedList ) a_pure;
std::vector<boost::string_ref> split ( boost::string_ref parList, char parSeparator, bool parTrim, bool parDeleteEmpty ) a_pure;
} //namespace dincore
#endif