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