New module 'unicase/ulc-casecoll'.
authorBruno Haible <bruno@clisp.org>
Tue, 10 Mar 2009 01:39:07 +0000 (02:39 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 10 Mar 2009 01:39:07 +0000 (02:39 +0100)
ChangeLog
lib/unicase.h
lib/unicase/ulc-casecoll.c [new file with mode: 0644]
modules/unicase/ulc-casecoll [new file with mode: 0644]

index f4d42641315af494663100e778c029c297eddd66..f0da38a8c1da8a46d557c9ca17856962773c2731 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-03-08  Bruno Haible  <bruno@clisp.org>
 
 2009-03-08  Bruno Haible  <bruno@clisp.org>
 
+       New module 'unicase/ulc-casecoll'.
+       * lib/unicase.h (ulc_casecoll): New declaration.
+       * lib/unicase/ulc-casecoll.c: New file.
+       * modules/unicase/ulc-casecoll: New file.
+
        New module 'unicase/ulc-casexfrm'.
        * lib/unicase.h (ulc_casexfrm): New declaration.
        * lib/unicase/ulc-casexfrm.c: New file.
        New module 'unicase/ulc-casexfrm'.
        * lib/unicase.h (ulc_casexfrm): New declaration.
        * lib/unicase/ulc-casexfrm.c: New file.
index ca3ab32e4c480ea3fb82fd478084c4419e7b9632..bfb0c18082b4f28679957d8589b9cc1197683b4c 100644 (file)
@@ -207,6 +207,10 @@ extern int
        u32_casecoll (const uint32_t *s1, size_t n1,
                     const uint32_t *s2, size_t n2,
                     const char *iso639_language, uninorm_t nf, int *resultp);
        u32_casecoll (const uint32_t *s1, size_t n1,
                     const uint32_t *s2, size_t n2,
                     const char *iso639_language, uninorm_t nf, int *resultp);
+extern int
+       ulc_casecoll (const char *s1, size_t n1,
+                    const char *s2, size_t n2,
+                    const char *iso639_language, uninorm_t nf, int *resultp);
 
 
 /* Set *RESULTP to true if mapping NFD(S) to upper case is a no-op, or to false
 
 
 /* Set *RESULTP to true if mapping NFD(S) to upper case is a no-op, or to false
diff --git a/lib/unicase/ulc-casecoll.c b/lib/unicase/ulc-casecoll.c
new file mode 100644 (file)
index 0000000..9730b6d
--- /dev/null
@@ -0,0 +1,31 @@
+/* Locale dependent, case and normalization insensitive comparison of strings.
+   Copyright (C) 2009 Free Software Foundation, Inc.
+   Written by Bruno Haible <bruno@clisp.org>, 2009.
+
+   This program is free software: you can redistribute it and/or modify it
+   under the terms of the GNU Lesser General Public License as published
+   by the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+#include <config.h>
+
+/* Specification.  */
+#include "unicase.h"
+
+#include <errno.h>
+#include <stdlib.h>
+
+#include "memcmp2.h"
+
+#define FUNC ulc_casecoll
+#define UNIT char
+#define U_CASEXFRM ulc_casexfrm
+#include "u-casecoll.h"
diff --git a/modules/unicase/ulc-casecoll b/modules/unicase/ulc-casecoll
new file mode 100644 (file)
index 0000000..7762cef
--- /dev/null
@@ -0,0 +1,26 @@
+Description:
+Locale dependent, case and normalization insensitive comparison of strings.
+
+Files:
+lib/unicase/ulc-casecoll.c
+lib/unicase/u-casecoll.h
+
+Depends-on:
+unicase/base
+unicase/ulc-casexfrm
+memcmp2
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += unicase/ulc-casecoll.c
+
+Include:
+"unicase.h"
+
+License:
+LGPL
+
+Maintainer:
+Bruno Haible
+