strListIsSubstr(const String * list, const char *s, char del)
{
assert(list && del);
- return list->pos(s) != 0;
/** \note
* Note: the original code with a loop is broken because it uses strstr()
/**
* Checks the anonymizer (header_access) configuration.
- *
+ *
* \retval 0 Header is explicitly blocked for removal
* \retval 1 Header is explicitly allowed
* \retval 1 Header has been replaced, the current version can be used.
const char *
String::pos(char const *aString) const
{
+ if (undefined())
+ return NULL;
return strstr(termedBuf(), aString);
}
const char *
String::pos(char const ch) const
{
+ if (undefined())
+ return NULL;
return strchr(termedBuf(), ch);
}
const char *
String::rpos(char const ch) const
{
+ if (undefined())
+ return NULL;
return strrchr(termedBuf(), (ch));
}