33 if (sep.empty() || (n =
str.find(sep,
pos)) == String::npos) {
47 size_t n, old_p =
pos;
49 if (sep.empty() || (n =
str.find(sep,
pos)) == String::npos) {
53 pos = n + sep.length();
54 }
while (n > 0 &&
str[n - 1] == esc);
56 return str.substr(old_p, n - old_p);
61 size_t p =
str.find_first_not_of(chars,
pos);
62 if (
p != String::npos)
bool at_end()
Definition strfnd.h:24
String next(const String &sep)
Definition strfnd.h:27
void skip_over(const String &chars)
Definition strfnd.h:59
void to(size_t i)
Definition strfnd.h:23
BasicStrfnd(const String &s)
Definition strfnd.h:17
size_t where()
Definition strfnd.h:22
String str
Definition strfnd.h:14
String next_esc(const String &sep, T esc=static_cast< T >('\\'))
Definition strfnd.h:42
std::basic_string< T > String
Definition strfnd.h:13
BasicStrfnd(std::basic_string_view< T > sv)
Definition strfnd.h:19
BasicStrfnd(const T *ptr)
Definition strfnd.h:18
void start(const String &s)
Definition strfnd.h:21
String what()
Definition strfnd.h:25
size_t pos
Definition strfnd.h:15
BasicStrfnd< char > Strfnd
Definition strfnd.h:67
BasicStrfnd< wchar_t > WStrfnd
Definition strfnd.h:68
static std::string p(std::string path)
Definition test_filesys.cpp:53