| 6 |
and semantics are as close as possible to those of the Perl 5 language. |
and semantics are as close as possible to those of the Perl 5 language. |
| 7 |
|
|
| 8 |
Written by Philip Hazel |
Written by Philip Hazel |
| 9 |
Copyright (c) 1997-2006 University of Cambridge |
Copyright (c) 1997-2007 University of Cambridge |
| 10 |
|
|
| 11 |
----------------------------------------------------------------------------- |
----------------------------------------------------------------------------- |
| 12 |
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
| 41 |
/* This module contains code for searching the table of Unicode character |
/* This module contains code for searching the table of Unicode character |
| 42 |
properties. */ |
properties. */ |
| 43 |
|
|
| 44 |
|
#ifdef HAVE_CONFIG_H |
| 45 |
|
#include <config.h> |
| 46 |
|
#endif |
| 47 |
|
|
| 48 |
#include "pcre_internal.h" |
#include "pcre_internal.h" |
| 49 |
|
|
| 50 |
#include "ucp.h" /* Category definitions */ |
#include "ucp.h" /* Category definitions */ |
| 51 |
#include "ucpinternal.h" /* Internal table details */ |
#include "ucpinternal.h" /* Internal table details */ |
| 52 |
#include "ucptable.c" /* The table itself */ |
#include "ucptable.h" /* The table itself */ |
| 53 |
|
|
| 54 |
|
|
| 55 |
/* Table to translate from particular type value to the general value. */ |
/* Table to translate from particular type value to the general value. */ |
| 56 |
|
|
| 57 |
static int ucp_gentype[] = { |
static const int ucp_gentype[] = { |
| 58 |
ucp_C, ucp_C, ucp_C, ucp_C, ucp_C, /* Cc, Cf, Cn, Co, Cs */ |
ucp_C, ucp_C, ucp_C, ucp_C, ucp_C, /* Cc, Cf, Cn, Co, Cs */ |
| 59 |
ucp_L, ucp_L, ucp_L, ucp_L, ucp_L, /* Ll, Lu, Lm, Lo, Lt */ |
ucp_L, ucp_L, ucp_L, ucp_L, ucp_L, /* Ll, Lu, Lm, Lo, Lt */ |
| 60 |
ucp_M, ucp_M, ucp_M, /* Mc, Me, Mn */ |
ucp_M, ucp_M, ucp_M, /* Mc, Me, Mn */ |