ucptypetable.c revision 4d553781254e46f1dfc8d86b79667a74fb8a3eb5
2ronwalf/*************************************************
2ronwalf* Perl-Compatible Regular Expressions *
2ronwalf*************************************************/
22daenzerorama
2ronwalf/*
22daenzeroramaThis is a library of functions to support regular expressions whose syntax
22daenzeroramaand semantics are as close as possible to those of the Perl 5 language. See
2ronwalfthe file Tech.Notes for some information on the internals.
2ronwalf
2ronwalfWritten by: Philip Hazel <ph10@cam.ac.uk>
2ronwalf
2ronwalf Copyright (c) 1997-2004 University of Cambridge
2ronwalf
2ronwalf-----------------------------------------------------------------------------
2ronwalfRedistribution and use in source and binary forms, with or without
2ronwalfmodification, are permitted provided that the following conditions are met:
2ronwalf
2ronwalf * Redistributions of source code must retain the above copyright notice,
2ronwalf this list of conditions and the following disclaimer.
2ronwalf
2ronwalf * Redistributions in binary form must reproduce the above copyright
2ronwalf notice, this list of conditions and the following disclaimer in the
2ronwalf documentation and/or other materials provided with the distribution.
2ronwalf
2ronwalf * Neither the name of the University of Cambridge nor the names of its
2ronwalf contributors may be used to endorse or promote products derived from
2ronwalf this software without specific prior written permission.
2ronwalf
2ronwalfTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2ronwalfAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2ronwalfIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2ronwalfARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
2ronwalfLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2ronwalfCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2ronwalfSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2ronwalfINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2ronwalfCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2ronwalfARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2ronwalfPOSSIBILITY OF SUCH DAMAGE.
2ronwalf-----------------------------------------------------------------------------
2ronwalf*/
2ronwalf
2ronwalf/* This module contains a table for translating Unicode property names into
2ronwalfcode values for the ucp_findchar function. It is in a separate module so that
2ronwalfit can be included both in the main pcre library, and into pcretest (for
2ronwalfprinting out internals). */
2ronwalf
2ronwalftypedef struct {
2ronwalf const char *name;
2ronwalf int value;
2ronwalf} ucp_type_table;
2ronwalf
2ronwalfstatic ucp_type_table utt[] = {
2ronwalf { "C", 128 + ucp_C },
2ronwalf { "Cc", ucp_Cc },
2ronwalf { "Cf", ucp_Cf },
2ronwalf { "Cn", ucp_Cn },
2ronwalf { "Co", ucp_Co },
2ronwalf { "Cs", ucp_Cs },
2ronwalf { "L", 128 + ucp_L },
2ronwalf { "Ll", ucp_Ll },
2ronwalf { "Lm", ucp_Lm },
2ronwalf { "Lo", ucp_Lo },
2ronwalf { "Lt", ucp_Lt },
2ronwalf { "Lu", ucp_Lu },
2ronwalf { "M", 128 + ucp_M },
2ronwalf { "Mc", ucp_Mc },
2ronwalf { "Me", ucp_Me },
2ronwalf { "Mn", ucp_Mn },
2ronwalf { "N", 128 + ucp_N },
2ronwalf { "Nd", ucp_Nd },
2ronwalf { "Nl", ucp_Nl },
2ronwalf { "No", ucp_No },
2ronwalf { "P", 128 + ucp_P },
2ronwalf { "Pc", ucp_Pc },
2ronwalf { "Pd", ucp_Pd },
2ronwalf { "Pe", ucp_Pe },
{ "Pf", ucp_Pf },
{ "Pi", ucp_Pi },
{ "Po", ucp_Po },
{ "Ps", ucp_Ps },
{ "S", 128 + ucp_S },
{ "Sc", ucp_Sc },
{ "Sk", ucp_Sk },
{ "Sm", ucp_Sm },
{ "So", ucp_So },
{ "Z", 128 + ucp_Z },
{ "Zl", ucp_Zl },
{ "Zp", ucp_Zp },
{ "Zs", ucp_Zs }
};
/* End of ucptypetable.c */