# HG changeset patch # User Bruno Haible # Date 1235216136 -3600 # Node ID 9e0f28c297bf6fc5766727fee0395c4b723c4d54 # Parent 7d4f0ca17b70050167151ff090c2089f4ad73174 New module 'uninorm/decompose-internal'. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-02-21 Bruno Haible + 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 --- /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 , 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 . */ + +#include + +/* 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 --- /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 +