From: Bruno Haible <bruno@clisp.org>
Date: Sat, 21 Feb 2009 11:35:36 +0000 (+0100)
Subject: New module 'uninorm/decompose-internal'.
X-Git-Tag: v0.1~6299
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1f88628372de201200a23414790121a17c0ac7fe;p=gnulib.git

New module 'uninorm/decompose-internal'.
---

diff --git a/ChangeLog b/ChangeLog
index de2e4c2922..d478e9f934 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-02-21  Bruno Haible  <bruno@clisp.org>
 
+	New module 'uninorm/decompose-internal'.
+	* lib/uninorm/decompose-internal.c: New file.
+	* modules/uninorm/decompose-internal: New file.
+
 	Tests for module 'uninorm/composition'.
 	* tests/uninorm/test-composition.c: New file.
 	* modules/uninorm/composition-tests: New file.
diff --git a/lib/uninorm/decompose-internal.c b/lib/uninorm/decompose-internal.c
new file mode 100644
index 0000000000..53b745dacb
--- /dev/null
+++ b/lib/uninorm/decompose-internal.c
@@ -0,0 +1,28 @@
+/* Decomposition of Unicode 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 "decompose-internal.h"
+
+#define ELEMENT struct ucs4_with_ccc
+#define COMPARE(a,b) ((a)->ccc - (b)->ccc)
+#define STATIC
+#define merge_sort_fromto gl_uninorm_decompose_merge_sort_fromto
+#define merge_sort_inplace gl_uninorm_decompose_merge_sort_inplace
+#include "array-mergesort.h"
diff --git a/modules/uninorm/decompose-internal b/modules/uninorm/decompose-internal
new file mode 100644
index 0000000000..575de103f2
--- /dev/null
+++ b/modules/uninorm/decompose-internal
@@ -0,0 +1,25 @@
+Description:
+Decomposition of Unicode strings.
+
+Files:
+lib/uninorm/decompose-internal.h
+lib/uninorm/decompose-internal.c
+
+Depends-on:
+unitypes
+array-mergesort
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += uninorm/decompose-internal.c
+
+Include:
+"uninorm/decompose-internal.h"
+
+License:
+LGPL
+
+Maintainer:
+Bruno Haible
+