summaryrefslogtreecommitdiff
path: root/lib/unistr/u32-set.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-01-09 14:09:18 +0000
committerBruno Haible <bruno@clisp.org>2007-01-09 14:09:18 +0000
commit66a155e5a0ac7ecf4e31fa931242413682e54613 (patch)
treeb9ca86b974da4973e0fbb838e9d8ea582ac33325 /lib/unistr/u32-set.c
parentd2c09b329b86f1d8d0be706e41c6c08ce7fb75a2 (diff)
downloadgnulib-66a155e5a0ac7ecf4e31fa931242413682e54613.tar.gz
New modules 'unistr/u8-set', 'unistr/u16-set', 'unistr/u32-set'.
Diffstat (limited to 'lib/unistr/u32-set.c')
-rw-r--r--lib/unistr/u32-set.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/unistr/u32-set.c b/lib/unistr/u32-set.c
new file mode 100644
index 0000000000..1ec2235fe1
--- /dev/null
+++ b/lib/unistr/u32-set.c
@@ -0,0 +1,28 @@
+/* Fill UTF-32 string.
+ Copyright (C) 1999, 2002, 2006 Free Software Foundation, Inc.
+ Written by Bruno Haible <bruno@clisp.org>, 2002.
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Library General Public License as published
+ by the Free Software Foundation; either version 2, 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
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ USA. */
+
+#include <config.h>
+
+/* Specification. */
+#include "unistr.h"
+
+#define FUNC u32_set
+#define UNIT uint32_t
+#define IS_SINGLE_UNIT(uc) (uc < 0xd800 || (uc >= 0xe000 && uc < 0x110000))
+#include "u-set.h"