Commit 8e96b44f 8e96b44ffde18c9135dc5e694aea0e4e1a6a86bb by Sergey Poznyakoff

Rename mu_strcasestr to mu_c_strcasestr.

* include/mailutils/cstr.h (mu_strcasestr): Rename to mu_c_strcasestr.
* libmailutils/string/cstrcasestr.c: Likewise. All uses changed.
1 parent 1c4cec9b
......@@ -388,7 +388,7 @@ util_parse_ctime_date (const char *date, time_t * timep)
char *
util_strcasestr (const char *haystack, const char *needle)
{
return mu_strcasestr (haystack, needle);
return mu_c_strcasestr (haystack, needle);
}
struct
......
......@@ -27,7 +27,7 @@ int mu_strupper (char *);
int mu_c_strcasecmp (const char *a, const char *b);
int mu_c_strncasecmp (const char *a, const char *b, size_t n);
char *mu_strcasestr (const char *haystack, const char *needle);
char *mu_c_strcasestr (const char *haystack, const char *needle);
size_t mu_rtrim_class (char *str, int __class);
size_t mu_rtrim_cset (char *str, const char *cset);
......
......@@ -23,12 +23,10 @@
#include <unistd.h>
#include <mailutils/cctype.h>
/* Based on strstr from GNU libc (Stephen R. van den Berg,
berg@pool.informatik.rwth-aachen.de) */
/* FIXME: Rename to mu_c_strcasestr */
char *
mu_strcasestr (const char *a_haystack, const char *a_needle)
mu_c_strcasestr (const char *a_haystack, const char *a_needle)
{
register const unsigned char *haystack = (unsigned char*) a_haystack,
*needle = (unsigned char*) a_needle;
......
......@@ -420,7 +420,7 @@ i_ascii_casemap_is (const char *pattern, const char *text)
static int
i_ascii_casemap_contains (const char *pattern, const char *text)
{
return mu_strcasestr (text, pattern) != NULL;
return mu_c_strcasestr (text, pattern) != NULL;
}
static int
......