]> git.sur5r.net Git - openldap/blob - libraries/liblunicode/ure/urestubs.c
s/2000-2000/2000/ in copyright notice
[openldap] / libraries / liblunicode / ure / urestubs.c
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 2000 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 /*
7  * Copyright 1997, 1998, 1999 Computing Research Labs,
8  * New Mexico State University
9  *
10  * Permission is hereby granted, free of charge, to any person obtaining a
11  * copy of this software and associated documentation files (the "Software"),
12  * to deal in the Software without restriction, including without limitation
13  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
14  * and/or sell copies of the Software, and to permit persons to whom the
15  * Software is furnished to do so, subject to the following conditions:
16  *
17  * The above copyright notice and this permission notice shall be included in
18  * all copies or substantial portions of the Software.
19  *
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
23  * THE COMPUTING RESEARCH LAB OR NEW MEXICO STATE UNIVERSITY BE LIABLE FOR ANY
24  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
25  * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
26  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27  */
28 #ifndef lint
29 static char rcsid[] = "$Id: urestubs.c,v 1.2 1999/09/21 15:47:44 mleisher Exp $";
30 #endif
31
32 #include "ure.h"
33
34 /*
35  * This file contains stub routines needed by the URE package to test
36  * character properties and other Unicode implementation specific details.
37  */
38
39 /*
40  * This routine should return the lower case equivalent for the character or,
41  * if there is no lower case quivalent, the character itself.
42  */
43 ucs4_t _ure_tolower(ucs4_t c)
44 {
45     return c;
46 }
47
48 /*
49  * This routine takes a set of URE character property flags (see ure.h) along
50  * with a character and tests to see if the character has one or more of those
51  * properties.
52  */
53 int
54 _ure_matches_properties(unsigned long props, ucs4_t c)
55 {
56     return 1;
57 }