summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-01-09 11:25:48 +0100
committerBruno Haible <bruno@clisp.org>2011-01-09 11:35:45 +0100
commita6e6c7be963a456c638ab1722018c48696b24eb1 (patch)
tree6b5f738aa9fc121d222ec4a48848a66d4ca7f66a /lib
parentb9e4ea9d5ac45140161f1d9cd80ee40a24865bc4 (diff)
downloadgnulib-a6e6c7be963a456c638ab1722018c48696b24eb1.tar.gz
New module 'unictype/property-changes-when-titlecased'.
* modules/unictype/property-changes-when-titlecased: New file. * lib/unictype/pr_changes_when_titlecased.c: New file. * lib/unictype/pr_changes_when_titlecased.h: New file, automatically generated by gen-uni-tables. * modules/unictype/property-changes-when-titlecased-tests: New file. * tests/unictype/test-pr_changes_when_titlecased.c: New file, automatically generated by gen-uni-tables.
Diffstat (limited to 'lib')
-rw-r--r--lib/unictype/pr_changes_when_titlecased.c35
-rw-r--r--lib/unictype/pr_changes_when_titlecased.h331
2 files changed, 366 insertions, 0 deletions
diff --git a/lib/unictype/pr_changes_when_titlecased.c b/lib/unictype/pr_changes_when_titlecased.c
new file mode 100644
index 0000000000..6613e8537d
--- /dev/null
+++ b/lib/unictype/pr_changes_when_titlecased.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_titlecased table. */
+#include "pr_changes_when_titlecased.h"
+
+bool
+uc_is_property_changes_when_titlecased (ucs4_t uc)
+{
+ return bitmap_lookup (&u_property_changes_when_titlecased, uc);
+}
+
+const uc_property_t UC_PROPERTY_CHANGES_WHEN_TITLECASED =
+ { &uc_is_property_changes_when_titlecased };
diff --git a/lib/unictype/pr_changes_when_titlecased.h b/lib/unictype/pr_changes_when_titlecased.h
new file mode 100644
index 0000000000..042e3c91de
--- /dev/null
+++ b/lib/unictype/pr_changes_when_titlecased.h
@@ -0,0 +1,331 @@
+/* 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[12 << 4];
+ }
+u_property_changes_when_titlecased =
+{
+ { 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,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ -1,
+ 3 + 256 * sizeof (short) / sizeof (int) + 48,
+ 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,
+ -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,
+ -1
+ },
+ {
+ 0x00000000, 0x00000000, 0x00000000, 0x07FFFFFE,
+ 0x00000000, 0x00200000, 0x80000000, 0xFF7FFFFF,
+ 0xAAAAAAAA, 0x54AAAAAA, 0xAAAAAB55, 0xD4AAAAAA,
+ 0x46241129, 0xA251212A, 0xB55556D0, 0xAA2BAAAA,
+ 0xAAAAAAAA, 0x900AAAA8, 0x0ADFAA85, 0x20268B09,
+ 0x00041F09, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000020, 0x388A0000,
+ 0x00010000, 0xFFFFF000, 0xAAE37FFF, 0x0927AAAA,
+ 0x00000000, 0xFFFF0000, 0xFFFFFFFF, 0xAAAAAAAA,
+ 0xAAAAA802, 0xAAAAAAAA, 0xAAAAD554, 0xAAAAAAAA,
+ 0xAAAAAAAA, 0x0000002A, 0x00000000, 0xFFFFFFFE,
+ 0x000000FF, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x22000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0xAAAAAAAA, 0xAAAAAAAA, 0xAAAAAAAA, 0xAAAAAAAA,
+ 0x0FEAAAAA, 0xAAAAAAAA, 0xAAAAAAAA, 0xAAAAAAAA,
+ 0x003F00FF, 0x00FF00FF, 0x00FF003F, 0x3FFF00FF,
+ 0x00FF00FF, 0x40DF00FF, 0x00CF00DC, 0x00DC00FF,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00004000, 0xFFFF0000,
+ 0x00000010, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0xFFFF0000, 0x000003FF,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0xFFFF0000, 0x7FFFFFFF, 0x00481562,
+ 0xAAAAAAAA, 0xAAAAAAAA, 0xAAAAAAAA, 0x0000500A,
+ 0xFFFFFFFF, 0x0000003F, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0xAAAAAAAA, 0x00002AA8,
+ 0x00AAAAAA, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0xAAA8AAA8, 0xAAAAAAAA, 0x9400AAAA,
+ 0x000010AA, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00F8007F, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x07FFFFFE, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0xFFFFFF00, 0x0000FFFF, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000,
+ 0x00000000, 0x00000000, 0x00000000, 0x00000000
+ }
+};