[PATCH] adds octstr_item_case_match
Alexander Malysh <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Centrium GmbH |
| Message-ID | <[email protected]> |
Hi list, attached patches adds list copatible octstr compare functions without case sensitivity... Comments? P.S. patches made not against cvs but should be cleanly applied -- Best Regards / Mit besten Grüßen aus Köln Dipl.-Ing. Alexander Malysh ___________________________________ Centrium GmbH Ehrenstrasse 2 50672 Köln Fon: +49 (0221) 277 49 240 Fax: +49 (0221) 277 49 109 email: [email protected] web: http://www.centrium.de msn: [email protected]
octstr.c.diff
(text/x-diff, 388 B)
--- /home/alex/projekte/work/kannel/gateway/gwlib/octstr.c 2003-03-07 00:17:51.000000000 +0100
+++ gwlib/octstr.c 2003-03-08 18:36:35.000000000 +0100
@@ -1397,6 +1397,10 @@
return octstr_compare(item, pattern) == 0;
}
+int octstr_item_case_match(void *item, void *pattern)
+{
+ return octstr_case_compare(item, pattern) == 0;
+}
void octstr_dump(Octstr *ostr, int level)
{
octstr.h.diff
(text/x-diff, 414 B)
--- /home/alex/projekte/work/kannel/gateway/gwlib/octstr.h 2003-03-07 00:17:51.000000000 +0100 +++ gwlib/octstr.h 2003-03-08 18:36:36.000000000 +0100 @@ -438,6 +438,10 @@ */ int octstr_item_match(void *item, void *pattern); +/* + * as above , except compares bytes without case sensitivity + */ +int octstr_item_case_match(void *item, void *pattern); /* * Print debugging information about octet string.
smime.p7s
(application/pkcs7-signature, 2.5 KB) - not displayed