/[pcre]/code/tags/pcre-5.0/ucptypetable.c
ViewVC logotype

Contents of /code/tags/pcre-5.0/ucptypetable.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75 - (show annotations) (download)
Sat Feb 24 21:40:37 2007 UTC (7 years, 7 months ago) by nigel
Original Path: code/trunk/ucptypetable.c
File MIME type: text/plain
File size: 3267 byte(s)
Load pcre-5.0 into code/trunk.

1 /*************************************************
2 * Perl-Compatible Regular Expressions *
3 *************************************************/
4
5 /*
6 This is a library of functions to support regular expressions whose syntax
7 and semantics are as close as possible to those of the Perl 5 language. See
8 the file Tech.Notes for some information on the internals.
9
10 Written by: Philip Hazel <ph10@cam.ac.uk>
11
12 Copyright (c) 1997-2004 University of Cambridge
13
14 -----------------------------------------------------------------------------
15 Redistribution and use in source and binary forms, with or without
16 modification, are permitted provided that the following conditions are met:
17
18 * Redistributions of source code must retain the above copyright notice,
19 this list of conditions and the following disclaimer.
20
21 * Redistributions in binary form must reproduce the above copyright
22 notice, this list of conditions and the following disclaimer in the
23 documentation and/or other materials provided with the distribution.
24
25 * Neither the name of the University of Cambridge nor the names of its
26 contributors may be used to endorse or promote products derived from
27 this software without specific prior written permission.
28
29 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
33 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39 POSSIBILITY OF SUCH DAMAGE.
40 -----------------------------------------------------------------------------
41 */
42
43 /* This module contains a table for translating Unicode property names into
44 code values for the ucp_findchar function. It is in a separate module so that
45 it can be included both in the main pcre library, and into pcretest (for
46 printing out internals). */
47
48 typedef struct {
49 const char *name;
50 int value;
51 } ucp_type_table;
52
53 static ucp_type_table utt[] = {
54 { "C", 128 + ucp_C },
55 { "Cc", ucp_Cc },
56 { "Cf", ucp_Cf },
57 { "Cn", ucp_Cn },
58 { "Co", ucp_Co },
59 { "Cs", ucp_Cs },
60 { "L", 128 + ucp_L },
61 { "Ll", ucp_Ll },
62 { "Lm", ucp_Lm },
63 { "Lo", ucp_Lo },
64 { "Lt", ucp_Lt },
65 { "Lu", ucp_Lu },
66 { "M", 128 + ucp_M },
67 { "Mc", ucp_Mc },
68 { "Me", ucp_Me },
69 { "Mn", ucp_Mn },
70 { "N", 128 + ucp_N },
71 { "Nd", ucp_Nd },
72 { "Nl", ucp_Nl },
73 { "No", ucp_No },
74 { "P", 128 + ucp_P },
75 { "Pc", ucp_Pc },
76 { "Pd", ucp_Pd },
77 { "Pe", ucp_Pe },
78 { "Pf", ucp_Pf },
79 { "Pi", ucp_Pi },
80 { "Po", ucp_Po },
81 { "Ps", ucp_Ps },
82 { "S", 128 + ucp_S },
83 { "Sc", ucp_Sc },
84 { "Sk", ucp_Sk },
85 { "Sm", ucp_Sm },
86 { "So", ucp_So },
87 { "Z", 128 + ucp_Z },
88 { "Zl", ucp_Zl },
89 { "Zp", ucp_Zp },
90 { "Zs", ucp_Zs }
91 };
92
93 /* End of ucptypetable.c */

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12