20 const char* content =
ptr();
21 for(
t_size walk = 0; walk < len; ++walk) {
22 if (s.
contains(content[walk]))
return walk;
28 const char* content =
ptr();
30 const t_size walk = _walk-1;
31 if (s.
contains(content[walk]))
return walk;
36 return (*
this)[0] == c;
39 const char * walk =
ptr();
40 const char * subWalk = s.
ptr();
42 if (*subWalk == 0)
return true;
43 if (*walk != *subWalk)
return false;
49 if (len == 0)
return false;
50 return ptr()[len-1] == c;
54 if (subLen > len)
return false;
63 return len > 0 ? (*this)[len-1] : (char)0;
74 ret +=
subString(walk,next-walk) + strNew;
75 walk = next + strOld.
length();
bool startsWith(char c) const
t_size indexOfAnyChar(stringp s, t_size base=0) const
string replace(stringp strOld, stringp strNew) const
string subString(t_size base) const
t_size lastIndexOfAnyChar(stringp s, t_size base=~0) const
bool endsWith(char c) const
"String parameter" helper class, to use in function parameters, allowing functions to take any type o...
bool containsAnyChar(stringp s) const
t_size lastIndexOf(char c, t_size base=~0) const
bool contains(char c) const
t_size string_find_last(const char *p_string, char p_tofind, t_size p_start)
t_size string_find_first(const char *p_string, char p_tofind, t_size p_start)
t_size indexOf(char c, t_size base=0) const