No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / openldap / dist / libraries / liblunicode / utbm / utbmstub.c
blob15d2c7221e65501ad8372d16c5af3638f4262ebd
1 /* $OpenLDAP: pkg/ldap/libraries/liblunicode/utbm/utbmstub.c,v 1.6.2.3 2008/02/11 23:26:42 kurt Exp $ */
2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 * Copyright 1998-2008 The OpenLDAP Foundation.
5 * All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted only as authorized by the OpenLDAP
9 * Public License.
11 * A copy of this license is available in file LICENSE in the
12 * top-level directory of the distribution or, alternatively, at
13 * <http://www.OpenLDAP.org/license.html>.
15 /* Copyright 1997, 1998, 1999 Computing Research Labs,
16 * New Mexico State University
18 * Permission is hereby granted, free of charge, to any person obtaining a
19 * copy of this software and associated documentation files (the "Software"),
20 * to deal in the Software without restriction, including without limitation
21 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
22 * and/or sell copies of the Software, and to permit persons to whom the
23 * Software is furnished to do so, subject to the following conditions:
25 * The above copyright notice and this permission notice shall be included in
26 * all copies or substantial portions of the Software.
28 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
30 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
31 * THE COMPUTING RESEARCH LAB OR NEW MEXICO STATE UNIVERSITY BE LIABLE FOR ANY
32 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
33 * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
34 * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
36 /* $Id: utbmstub.c,v 1.1.1.1 2008/02/11 23:26:42 lukem Exp $ */
38 #include "utbm.h"
41 * This should be redefined to use the `isspace' function available in the
42 * Unicode support on the platform where this is being used.
44 #define _platform_isspace(x) 0
47 * Return non-zero for any character that should be considered the equivalent
48 * of a space character. Return zero otherwise.
50 int
51 _utbm_isspace(ucs4_t c, int compress)
53 if (compress)
54 return (c == 0x09 || c == 0x0a || c == 0x0d ||
55 c == 0x2028 || c == 0x2029 || _platform_isspace(c)) ? 1 : 0;
57 return _platform_isspace(c);
62 * Return non-zero if the character is a control character, or zero otherwise.
64 int
65 _utbm_iscntrl(ucs4_t c)
67 return 0;
71 * Return non-zero if the character is a non-spacing character, or zero
72 * otherwise.
74 int
75 _utbm_nonspacing(ucs4_t c)
77 return 0;
81 * Convert a character to lower case.
83 ucs4_t
84 _utbm_tolower(ucs4_t c)
86 return c;
90 * Convert a character to upper case.
92 ucs4_t
93 _utbm_toupper(ucs4_t c)
95 return c;
99 * Convert a character to title case.
101 ucs4_t
102 _utbm_totitle(ucs4_t c)
104 return c;