From 332ff7a104d978a607aae7239c70073c4e88fa22 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 21 Apr 2017 16:39:24 +0200 Subject: Remove unused string matching helpers --- matchcasestring.c | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 matchcasestring.c (limited to 'matchcasestring.c') diff --git a/matchcasestring.c b/matchcasestring.c deleted file mode 100644 index 4f0aab2..0000000 --- a/matchcasestring.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "case.h" -#include "bstr.h" -#include "ldif.h" - -/* like matchstring, but case insensitively */ -int matchcasestring(struct string* s,const char* c) { - unsigned int l,l1,i; - if (!c) return -1; - l1=l=bstrlen(c); - if (s->ll; - c=bstrfirst(c); - i=case_diffb(s->s,l1,c); - if (i) return i; - /* same length? */ - if (l==s->l) return 0; - /* one is a prefix of the other */ - if (l1s[l1]); -} - -- cgit v1.2.3-55-g7522