summaryrefslogtreecommitdiff
path: root/lib/unictype
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-01-09 11:23:38 +0100
committerBruno Haible <bruno@clisp.org>2011-01-09 11:35:44 +0100
commit40c4c8a8ec964076c8dca00b27a64700bb4454f5 (patch)
tree6adf4b83d48e83a11ff5ffef7236af3da28dfa53 /lib/unictype
parentd78da45ee46c93b7b4f0d0116c3fa33b3555720e (diff)
downloadgnulib-40c4c8a8ec964076c8dca00b27a64700bb4454f5.tar.gz
New module 'unictype/property-changes-when-lowercased'.
* modules/unictype/property-changes-when-lowercased: New file. * lib/unictype/pr_changes_when_lowercased.c: New file. * lib/unictype/pr_changes_when_lowercased.h: New file, automatically generated by gen-uni-tables. * modules/unictype/property-changes-when-lowercased-tests: New file. * tests/unictype/test-pr_changes_when_lowercased.c: New file, automatically generated by gen-uni-tables.
Diffstat (limited to 'lib/unictype')
-rw-r--r--lib/unictype/pr_changes_when_lowercased.c35
-rw-r--r--lib/unictype/pr_changes_when_lowercased.h327
2 files changed, 362 insertions, 0 deletions
diff --git a/lib/unictype/pr_changes_when_lowercased.c b/lib/unictype/pr_changes_when_lowercased.c
new file mode 100644
index 0000000000..5a2deb80fd
--- /dev/null
+++ b/lib/unictype/pr_changes_when_lowercased.c
@@ -0,0 +1,35 @@
+/* Properties of Unicode characters.
+ Copyright (C) 2002, 2006-2007, 2009-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 "bitmap.h"
+
+/* Define u_property_changes_when_lowercased table. */
+#include "pr_changes_when_lowercased.h"
+
+bool
+uc_is_property_changes_when_lowercased (ucs4_t uc)
+{
+ return bitmap_lookup (&u_property_changes_when_lowercased, uc);
+}
+
+const uc_property_t UC_PROPERTY_CHANGES_WHEN_LOWERCASED =
+ { &uc_is_property_changes_when_lowercased };
diff --git a/lib/unictype/pr_changes_when_lowercased.h b/lib/unictype/pr_changes_when_lowercased.h
new file mode 100644
index 0000000000..d85e48c185
--- /dev/null
+++ b/lib/unictype/pr_changes_when_lowercased.h
@@ -0,0 +1,327 @@
+/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
+/* Properties of Unicode characters. */
+/* Generated automatically by gen-uni-tables.c for Unicode 5.2.0. */
+#define header_0 16
+#define header_2 9
+#define header_3 127
+#define header_4 15
+static const
+struct
+ {
+ int header[1];
+ int level1[2];
+ short level2[2 << 7];
+ /*unsigned*/ int level3[11 << 4];
+ }
+u_property_changes_when_lowercased =
+{
+ { 2 },
+ {
+ 3 * sizeof (int) / sizeof (short) + 0,
+ 3 * sizeof (int) / sizeof (short) + 128
+ },
+ {
+ 3 + 256 * sizeof (short) / sizeof (int) + 0,
+ 3 + 256 * sizeof (short) / sizeof (int) + 16,
+ 3 + 256 * sizeof (short) / sizeof (int) + 32,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ 3 + 256 * sizeof (short) / sizeof (int) + 48,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ 3 + 256 * sizeof (short) / sizeof (int) + 64,
+ 3 + 256 * sizeof (short) / sizeof (int) + 80,
+ -1,
+ 3 + 256 * sizeof (short) / sizeof (int) + 96,
+ -1,
+ -1,
+ -1,
+ 3 + 256 * sizeof (short) / sizeof (int) + 112,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+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+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1
+ },
+ {
+ 0x00000000, 0x00000000, 0x07FFFFFE, 0x00000000,
+ 0x00000000, 0x00000000, 0x7F7FFFFF, 0x00000000,
+ 0x55555555, 0xAA555555, 0x555554AA, 0x2B555555,
+ 0xB1DBCED6, 0x11AED2D5, 0x4AAAADB0, 0x55D65555,
+ 0x55555555, 0x6C055555, 0x0000557A, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00450000,
+ 0xFFFED740, 0x00000FFB, 0x55008000, 0xE6905555,
+ 0xFFFFFFFF, 0x0000FFFF, 0x00000000, 0x55555555,
+ 0x55555401, 0x55555555, 0x55552AAB, 0x55555555,
+ 0x55555555, 0xFFFE0015, 0x007FFFFF, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0xFFFFFFFF, 0x0000003F, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x55555555, 0x55555555, 0x55555555, 0x55555555,
+ 0x40155555, 0x55555555, 0x55555555, 0x55555555,
+ 0x3F00FF00, 0xFF00FF00, 0xAA003F00, 0x0000FF00,
+ 0xFF00FF00, 0x1F00FF00, 0x0F001F00, 0x1F001F00,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00040C40, 0x00000000, 0x0000FFFF,
+ 0x00000008, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0xFFC00000, 0x0000FFFF, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0xFFFFFFFF, 0x00007FFF, 0x00000000, 0xC025EA9D,
+ 0x55555555, 0x55555555, 0x55555555, 0x00002805,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x55555555, 0x00001554,
+ 0x00555555, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x55545554, 0x55555555, 0x6A005555,
+ 0x00000855, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x07FFFFFE, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0xFFFFFFFF, 0x000000FF, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000
+ }
+};