[Base] Add opt arg to allow empty parts in split.

[Base] Add optional argument to allow empty parts in utf8::split.
This commit is contained in:
gibbed
2020-04-20 00:31:40 -05:00
committed by Rick Gibbed
parent 817d87a0a7
commit 1f28ff5f18
2 changed files with 7 additions and 3 deletions

View File

@@ -27,7 +27,8 @@ size_t hash_fnv1a_case(const std::string_view view);
// Splits the given string on any delimiters and returns all parts.
std::vector<std::string_view> split(const std::string_view path,
const std::string_view delimiters);
const std::string_view delimiters,
bool remove_empty = false);
bool equal_z(const std::string_view left, const std::string_view right);