annotate lib/uniname.in.h @ 17160:72f4bab621be

fts: introduce FTS_VERBATIM This gives clients the option to disable stripping of trailing slashes from input path names during fts_open initialization. The recent change v0.0-7611-g3a9002d that made fts_open strip trailing slashes from input path names had a negative impact on findutils that relies on the old fts_open behavior to implement POSIX requirement that each path operand of the find utility shall be evaluated unaltered as it was provided, including all trailing slash characters. * lib/fts_.h (FTS_VERBATIM): New bit flag. (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust. * lib/fts.c (fts_open): Honor it.
author Dmitry V. Levin <ldv@altlinux.org>
date Sun, 18 Nov 2012 04:40:18 +0400
parents 079fb1e73828
children e542fd46ad6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13354
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Association between Unicode characters and their names.
16201
8250f2777afc maint: update all copyright year number ranges
Jim Meyering <meyering@redhat.com>
parents: 14079
diff changeset
2 Copyright (C) 2000-2002, 2005, 2007, 2009-2012 Free Software Foundation,
13354
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 Inc.
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 This program is free software: you can redistribute it and/or modify it
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 under the terms of the GNU Lesser General Public License as published
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 by the Free Software Foundation; either version 3 of the License, or
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 (at your option) any later version.
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 Lesser General Public License for more details.
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU Lesser General Public License
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #ifndef _UNINAME_H
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define _UNINAME_H
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include "unitypes.h"
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #ifdef __cplusplus
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 extern "C" {
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #endif
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 /* Required size of buffer for a Unicode character name. */
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 #define UNINAME_MAX 256
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 /* Looks up the name of a Unicode character, in uppercase ASCII.
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 Returns the filled buf, or NULL if the character does not have a name. */
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 extern char *
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 unicode_character_name (ucs4_t uc, char *buf);
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 /* Looks up the Unicode character with a given name, in upper- or lowercase
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 ASCII. Returns the character if found, or UNINAME_INVALID if not found. */
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 extern ucs4_t
16716
079fb1e73828 Enable common subexpression optimization in GCC.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
38 unicode_name_character (const char *name)
079fb1e73828 Enable common subexpression optimization in GCC.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
39 _UC_ATTRIBUTE_PURE;
13354
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 #define UNINAME_INVALID ((ucs4_t) 0xFFFF)
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 #ifdef __cplusplus
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 }
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 #endif
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45
86634e33e086 New module 'libunistring-optional'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 #endif /* _UNINAME_H */