Mercurial > hg > octave-kai > gnulib-hg
changeset 14458:84e429ea8a0f
New module 'unictype/joininggroup-of'.
* modules/unictype/joininggroup-of: New file.
* lib/unictype/joininggroup_of.c: New file.
* lib/unictype/joininggroup_of.h: New file, automatically generated by
gen-uni-tables.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 21 Mar 2011 23:12:53 +0100 |
parents | ee101cad02be |
children | e7be441b19aa |
files | ChangeLog lib/unictype/joininggroup_of.c lib/unictype/joininggroup_of.h modules/unictype/joininggroup-of |
diffstat | 4 files changed, 248 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-03-21 Bruno Haible <bruno@clisp.org> + New module 'unictype/joininggroup-of'. + * modules/unictype/joininggroup-of: New file. + * lib/unictype/joininggroup_of.c: New file. + * lib/unictype/joininggroup_of.h: New file, automatically generated by + gen-uni-tables. + Tests for module 'unictype/joininggroup-byname'. * modules/unictype/joininggroup-byname-tests: New file. * tests/unictype/test-joininggroup_byname.c: New file.
new file mode 100644 --- /dev/null +++ b/lib/unictype/joininggroup_of.c @@ -0,0 +1,33 @@ +/* Arabic joining group of Unicode characters. + Copyright (C) 2011 Free Software Foundation, Inc. + Written by Bruno Haible <bruno@clisp.org>, 2011. + + 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 "unictype.h" + +#include "unictype/joininggroup_of.h" + +int +uc_joining_group (ucs4_t uc) +{ + if (uc >= joining_group_header_0 + && uc < joining_group_header_0 + + sizeof (u_joining_group) / sizeof (u_joining_group[0])) + return u_joining_group[uc - joining_group_header_0]; + return UC_JOINING_GROUP_NONE; +}
new file mode 100644 --- /dev/null +++ b/lib/unictype/joininggroup_of.h @@ -0,0 +1,183 @@ +/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ +/* Arabic joining type of Unicode characters. */ +/* Generated automatically by gen-uni-tables.c for Unicode 6.0.0. */ +#define joining_group_header_0 0x620 +static const unsigned char u_joining_group[0x780 - 0x620] = +{ + UC_JOINING_GROUP_YEH, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_ALEF, UC_JOINING_GROUP_ALEF, + UC_JOINING_GROUP_WAW, UC_JOINING_GROUP_ALEF, + UC_JOINING_GROUP_YEH, UC_JOINING_GROUP_ALEF, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_TEH_MARBUTA, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_BEH, + UC_JOINING_GROUP_HAH, UC_JOINING_GROUP_HAH, + UC_JOINING_GROUP_HAH, UC_JOINING_GROUP_DAL, + UC_JOINING_GROUP_DAL, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_REH, UC_JOINING_GROUP_SEEN, + UC_JOINING_GROUP_SEEN, UC_JOINING_GROUP_SAD, + UC_JOINING_GROUP_SAD, UC_JOINING_GROUP_TAH, + UC_JOINING_GROUP_TAH, UC_JOINING_GROUP_AIN, + UC_JOINING_GROUP_AIN, UC_JOINING_GROUP_GAF, + UC_JOINING_GROUP_GAF, UC_JOINING_GROUP_FARSI_YEH, + UC_JOINING_GROUP_FARSI_YEH, UC_JOINING_GROUP_FARSI_YEH, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_FEH, + UC_JOINING_GROUP_QAF, UC_JOINING_GROUP_KAF, + UC_JOINING_GROUP_LAM, UC_JOINING_GROUP_MEEM, + UC_JOINING_GROUP_NOON, UC_JOINING_GROUP_HEH, + UC_JOINING_GROUP_WAW, UC_JOINING_GROUP_YEH, + UC_JOINING_GROUP_YEH, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_QAF, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_ALEF, + UC_JOINING_GROUP_ALEF, UC_JOINING_GROUP_ALEF, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_ALEF, + UC_JOINING_GROUP_WAW, UC_JOINING_GROUP_WAW, + UC_JOINING_GROUP_YEH, UC_JOINING_GROUP_BEH, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_BEH, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_BEH, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_BEH, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_HAH, + UC_JOINING_GROUP_HAH, UC_JOINING_GROUP_HAH, + UC_JOINING_GROUP_HAH, UC_JOINING_GROUP_HAH, + UC_JOINING_GROUP_HAH, UC_JOINING_GROUP_HAH, + UC_JOINING_GROUP_DAL, UC_JOINING_GROUP_DAL, + UC_JOINING_GROUP_DAL, UC_JOINING_GROUP_DAL, + UC_JOINING_GROUP_DAL, UC_JOINING_GROUP_DAL, + UC_JOINING_GROUP_DAL, UC_JOINING_GROUP_DAL, + UC_JOINING_GROUP_DAL, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_REH, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_REH, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_REH, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_REH, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_SEEN, UC_JOINING_GROUP_SEEN, + UC_JOINING_GROUP_SEEN, UC_JOINING_GROUP_SAD, + UC_JOINING_GROUP_SAD, UC_JOINING_GROUP_TAH, + UC_JOINING_GROUP_AIN, UC_JOINING_GROUP_FEH, + UC_JOINING_GROUP_FEH, UC_JOINING_GROUP_FEH, + UC_JOINING_GROUP_FEH, UC_JOINING_GROUP_FEH, + UC_JOINING_GROUP_FEH, UC_JOINING_GROUP_QAF, + UC_JOINING_GROUP_QAF, UC_JOINING_GROUP_GAF, + UC_JOINING_GROUP_SWASH_KAF, UC_JOINING_GROUP_GAF, + UC_JOINING_GROUP_KAF, UC_JOINING_GROUP_KAF, + UC_JOINING_GROUP_KAF, UC_JOINING_GROUP_GAF, + UC_JOINING_GROUP_GAF, UC_JOINING_GROUP_GAF, + UC_JOINING_GROUP_GAF, UC_JOINING_GROUP_GAF, + UC_JOINING_GROUP_GAF, UC_JOINING_GROUP_LAM, + UC_JOINING_GROUP_LAM, UC_JOINING_GROUP_LAM, + UC_JOINING_GROUP_LAM, UC_JOINING_GROUP_NOON, + UC_JOINING_GROUP_NOON, UC_JOINING_GROUP_NOON, + UC_JOINING_GROUP_NOON, UC_JOINING_GROUP_NYA, + UC_JOINING_GROUP_KNOTTED_HEH, UC_JOINING_GROUP_HAH, + UC_JOINING_GROUP_TEH_MARBUTA, UC_JOINING_GROUP_HEH_GOAL, + UC_JOINING_GROUP_HEH_GOAL, UC_JOINING_GROUP_TEH_MARBUTA_GOAL, + UC_JOINING_GROUP_WAW, UC_JOINING_GROUP_WAW, + UC_JOINING_GROUP_WAW, UC_JOINING_GROUP_WAW, + UC_JOINING_GROUP_WAW, UC_JOINING_GROUP_WAW, + UC_JOINING_GROUP_WAW, UC_JOINING_GROUP_WAW, + UC_JOINING_GROUP_FARSI_YEH, UC_JOINING_GROUP_YEH_WITH_TAIL, + UC_JOINING_GROUP_FARSI_YEH, UC_JOINING_GROUP_WAW, + UC_JOINING_GROUP_YEH, UC_JOINING_GROUP_YEH, + UC_JOINING_GROUP_YEH_BARREE, UC_JOINING_GROUP_YEH_BARREE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_TEH_MARBUTA, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_DAL, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_SEEN, UC_JOINING_GROUP_SAD, + UC_JOINING_GROUP_AIN, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_KNOTTED_HEH, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_ALAPH, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_BETH, UC_JOINING_GROUP_GAMAL, + UC_JOINING_GROUP_GAMAL, UC_JOINING_GROUP_DALATH_RISH, + UC_JOINING_GROUP_DALATH_RISH, UC_JOINING_GROUP_HE, + UC_JOINING_GROUP_SYRIAC_WAW, UC_JOINING_GROUP_ZAIN, + UC_JOINING_GROUP_HETH, UC_JOINING_GROUP_TETH, + UC_JOINING_GROUP_TETH, UC_JOINING_GROUP_YUDH, + UC_JOINING_GROUP_YUDH_HE, UC_JOINING_GROUP_KAPH, + UC_JOINING_GROUP_LAMADH, UC_JOINING_GROUP_MIM, + UC_JOINING_GROUP_NUN, UC_JOINING_GROUP_SEMKATH, + UC_JOINING_GROUP_FINAL_SEMKATH, UC_JOINING_GROUP_E, + UC_JOINING_GROUP_PE, UC_JOINING_GROUP_REVERSED_PE, + UC_JOINING_GROUP_SADHE, UC_JOINING_GROUP_QAPH, + UC_JOINING_GROUP_DALATH_RISH, UC_JOINING_GROUP_SHIN, + UC_JOINING_GROUP_TAW, UC_JOINING_GROUP_BETH, + UC_JOINING_GROUP_GAMAL, UC_JOINING_GROUP_DALATH_RISH, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_NONE, + UC_JOINING_GROUP_NONE, UC_JOINING_GROUP_ZHAIN, + UC_JOINING_GROUP_KHAPH, UC_JOINING_GROUP_FE, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_BEH, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_BEH, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_BEH, + UC_JOINING_GROUP_BEH, UC_JOINING_GROUP_HAH, + UC_JOINING_GROUP_HAH, UC_JOINING_GROUP_DAL, + UC_JOINING_GROUP_DAL, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_SEEN, UC_JOINING_GROUP_AIN, + UC_JOINING_GROUP_AIN, UC_JOINING_GROUP_AIN, + UC_JOINING_GROUP_FEH, UC_JOINING_GROUP_FEH, + UC_JOINING_GROUP_GAF, UC_JOINING_GROUP_GAF, + UC_JOINING_GROUP_GAF, UC_JOINING_GROUP_MEEM, + UC_JOINING_GROUP_MEEM, UC_JOINING_GROUP_NOON, + UC_JOINING_GROUP_NOON, UC_JOINING_GROUP_NOON, + UC_JOINING_GROUP_LAM, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_REH, UC_JOINING_GROUP_SEEN, + UC_JOINING_GROUP_HAH, UC_JOINING_GROUP_HAH, + UC_JOINING_GROUP_SEEN, UC_JOINING_GROUP_REH, + UC_JOINING_GROUP_HAH, UC_JOINING_GROUP_ALEF, + UC_JOINING_GROUP_ALEF, UC_JOINING_GROUP_FARSI_YEH, + UC_JOINING_GROUP_FARSI_YEH, UC_JOINING_GROUP_YEH, + UC_JOINING_GROUP_WAW, UC_JOINING_GROUP_WAW, + UC_JOINING_GROUP_BURUSHASKI_YEH_BARREE, UC_JOINING_GROUP_BURUSHASKI_YEH_BARREE, + UC_JOINING_GROUP_HAH, UC_JOINING_GROUP_SEEN, + UC_JOINING_GROUP_SEEN, UC_JOINING_GROUP_KAF +};
new file mode 100644 --- /dev/null +++ b/modules/unictype/joininggroup-of @@ -0,0 +1,26 @@ +Description: +Determine Arabic joining group of a Unicode character. + +Files: +lib/unictype/joininggroup_of.c +lib/unictype/joininggroup_of.h + +Depends-on: +unictype/base + +configure.ac: +gl_LIBUNISTRING_MODULE([0.9.4], [unictype/joininggroup-of]) + +Makefile.am: +if LIBUNISTRING_COMPILE_UNICTYPE_JOININGGROUP_OF +lib_SOURCES += unictype/joininggroup_of.c +endif + +Include: +"unictype.h" + +License: +LGPL + +Maintainer: +Bruno Haible