/[pcre]/code/trunk/pcre_internal.h
ViewVC logotype

Diff of /code/trunk/pcre_internal.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 994 by ph10, Tue Jul 10 14:29:26 2012 UTC revision 1011 by ph10, Sat Aug 25 11:36:15 2012 UTC
# Line 2314  extern const char*       PRIV(jit_get_ta Line 2314  extern const char*       PRIV(jit_get_ta
2314  /* Unicode character database (UCD) */  /* Unicode character database (UCD) */
2315    
2316  typedef struct {  typedef struct {
2317    pcre_uint8 script;    pcre_uint8 script;     /* ucp_Arabic, etc. */
2318    pcre_uint8 chartype;    pcre_uint8 chartype;   /* ucp_Cc, etc. (general categories) */
2319    pcre_int32 other_case;    pcre_uint8 gbprop;     /* ucp_gbControl, etc. (grapheme break property) */
2320      pcre_int32 other_case; /* offset to other case, or zero if none */
2321  } ucd_record;  } ucd_record;
2322    
2323  extern const ucd_record  PRIV(ucd_records)[];  extern const ucd_record  PRIV(ucd_records)[];
2324  extern const pcre_uint8  PRIV(ucd_stage1)[];  extern const pcre_uint8  PRIV(ucd_stage1)[];
2325  extern const pcre_uint16 PRIV(ucd_stage2)[];  extern const pcre_uint16 PRIV(ucd_stage2)[];
2326  extern const int         PRIV(ucp_gentype)[];  extern const int         PRIV(ucp_gentype)[];
2327    extern const pcre_uint8  PRIV(ucp_gbtable)[];
2328  #ifdef SUPPORT_JIT  #ifdef SUPPORT_JIT
2329  extern const int         PRIV(ucp_typerange)[];  extern const int         PRIV(ucp_typerange)[];
2330  #endif  #endif
# Line 2335  extern const int         PRIV(ucp_typera Line 2337  extern const int         PRIV(ucp_typera
2337          PRIV(ucd_stage2)[PRIV(ucd_stage1)[(ch) / UCD_BLOCK_SIZE] * \          PRIV(ucd_stage2)[PRIV(ucd_stage1)[(ch) / UCD_BLOCK_SIZE] * \
2338          UCD_BLOCK_SIZE + (ch) % UCD_BLOCK_SIZE])          UCD_BLOCK_SIZE + (ch) % UCD_BLOCK_SIZE])
2339    
2340  #define UCD_CHARTYPE(ch)  GET_UCD(ch)->chartype  #define UCD_CHARTYPE(ch)    GET_UCD(ch)->chartype
2341  #define UCD_SCRIPT(ch)    GET_UCD(ch)->script  #define UCD_SCRIPT(ch)      GET_UCD(ch)->script
2342  #define UCD_CATEGORY(ch)  PRIV(ucp_gentype)[UCD_CHARTYPE(ch)]  #define UCD_CATEGORY(ch)    PRIV(ucp_gentype)[UCD_CHARTYPE(ch)]
2343  #define UCD_OTHERCASE(ch) (ch + GET_UCD(ch)->other_case)  #define UCD_GRAPHBREAK(ch)  GET_UCD(ch)->gbprop
2344    #define UCD_OTHERCASE(ch)   (ch + GET_UCD(ch)->other_case)
2345    
2346  #endif /* SUPPORT_UCP */  #endif /* SUPPORT_UCP */
2347    

Legend:
Removed from v.994  
changed lines
  Added in v.1011

  ViewVC Help
Powered by ViewVC 1.1.5