aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/ename
diff options
context:
space:
mode:
authorJesse Pavel <jpavel@src.gnome.org>2000-10-18 04:22:43 +0800
committerJesse Pavel <jpavel@src.gnome.org>2000-10-18 04:22:43 +0800
commit84aca4e2c840aae8f7cc64ef7979edbeeec2d71c (patch)
treebfca74e145ade0985b94da896b8dc166c64bad9a /e-util/ename
parente7cb4ceabe7266443ca6c4cd85bd2ca28712a0ad (diff)
downloadgsoc2013-evolution-84aca4e2c840aae8f7cc64ef7979edbeeec2d71c.tar.gz
gsoc2013-evolution-84aca4e2c840aae8f7cc64ef7979edbeeec2d71c.tar.zst
gsoc2013-evolution-84aca4e2c840aae8f7cc64ef7979edbeeec2d71c.zip
*** empty log message ***
svn path=/trunk/; revision=5969
Diffstat (limited to 'e-util/ename')
-rw-r--r--e-util/ename/e-address-western.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/e-util/ename/e-address-western.c b/e-util/ename/e-address-western.c
index 1538e2a3ad..9ab6568338 100644
--- a/e-util/ename/e-address-western.c
+++ b/e-util/ename/e-address-western.c
@@ -32,30 +32,6 @@ static char *extended_keywords[] = {
};
-static const gchar *
-e_address_western_strstrcase (const gchar *haystack, const gchar *needle)
-{
- /* find the needle in the haystack neglecting case */
- gchar *ptr;
- guint len;
-
- g_return_val_if_fail (haystack != NULL, NULL);
- g_return_val_if_fail (needle != NULL, NULL);
-
- len = strlen(needle);
- if (len > strlen(haystack))
- return NULL;
-
- if (len == 0)
- return (char *)haystack;
-
- for (ptr = (char *)haystack; *(ptr + len - 1) != '\0'; ptr++)
- if (!g_strncasecmp(ptr, needle, len))
- return ptr;
-
- return NULL;
-}
-
static gboolean
e_address_western_is_line_blank (gchar *line)
@@ -306,7 +282,7 @@ e_address_western_extract_street (gchar *line, gchar **street, gchar **extended)
gint cntr;
for (cntr = 0; extended_keywords[cntr] != NULL; cntr++) {
- split = e_address_western_strstrcase (line, extended_keywords[cntr]);
+ split = e_strstrcase (line, extended_keywords[cntr]);
if (split != NULL)
break;
}