diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-07-02 18:42:11 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-07-02 18:42:11 +0000 |
commit | 0370f4b1717db0570c3a13e0ec7396c07075c8b3 (patch) | |
tree | 829249de9eea4c693ee4c075ecd22f77687cbb88 /pcre_ord2utf8.c | |
parent | e2edacee629fd1fd2e4891078653455f03753d84 (diff) | |
download | pcre-0370f4b1717db0570c3a13e0ec7396c07075c8b3.tar.gz |
Preliminary patch for upgraded Unicode Property support.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@349 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_ord2utf8.c')
-rw-r--r-- | pcre_ord2utf8.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pcre_ord2utf8.c b/pcre_ord2utf8.c index 0fdc512..cd8b2be 100644 --- a/pcre_ord2utf8.c +++ b/pcre_ord2utf8.c @@ -82,4 +82,17 @@ return 0; /* Keep compiler happy; this function won't ever be */ #endif /* called when SUPPORT_UTF8 is not defined. */ } +/* Table to translate from particular type value to the general value. */ + +const int ucp_gentype[] = { + ucp_C, ucp_C, ucp_C, ucp_C, ucp_C, /* Cc, Cf, Cn, Co, Cs */ + ucp_L, ucp_L, ucp_L, ucp_L, ucp_L, /* Ll, Lu, Lm, Lo, Lt */ + ucp_M, ucp_M, ucp_M, /* Mc, Me, Mn */ + ucp_N, ucp_N, ucp_N, /* Nd, Nl, No */ + ucp_P, ucp_P, ucp_P, ucp_P, ucp_P, /* Pc, Pd, Pe, Pf, Pi */ + ucp_P, ucp_P, /* Ps, Po */ + ucp_S, ucp_S, ucp_S, ucp_S, /* Sc, Sk, Sm, So */ + ucp_Z, ucp_Z, ucp_Z /* Zl, Zp, Zs */ +}; + /* End of pcre_ord2utf8.c */ |