Mercurial > hg > octave-lojdl > gnulib-hg
changeset 11388:cc32ae514e6f
New module 'unicase/ulc-casecoll'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 10 Mar 2009 02:39:07 +0100 |
parents | 5ef37a67ff97 |
children | 7e97400ba811 |
files | ChangeLog lib/unicase.h lib/unicase/ulc-casecoll.c modules/unicase/ulc-casecoll |
diffstat | 4 files changed, 66 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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.
--- a/lib/unicase.h +++ b/lib/unicase.h @@ -207,6 +207,10 @@ 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
new file mode 100644 --- /dev/null +++ b/lib/unicase/ulc-casecoll.c @@ -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"
new file mode 100644 --- /dev/null +++ b/modules/unicase/ulc-casecoll @@ -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 +