MCPcopy Create free account
hub / github.com/aseprite/laf / is_separator

Class is_separator

base/split_string.cpp:16–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15namespace {
16struct is_separator {
17 const std::string* separators;
18
19 is_separator(const std::string* seps) : separators(seps) {}
20
21 bool operator()(std::string::value_type chr) const
22 {
23 for (std::string::const_iterator it = separators->begin(), end = separators->end(); it != end;
24 ++it) {
25 if (chr == *it)
26 return true;
27 }
28 return false;
29 }
30};
31
32struct is_separator_view {
33 const std::string_view* separators;

Callers 1

split_stringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected