Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
ucdata.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "ucdata.h"

Go to the source code of this file.

Classes

struct  _ucheader_t
union  _ucheader_t.size

Defines

#define endian_short(cc)   (((cc) >> 8) | (((cc) & 0xff) << 8))
#define endian_long(cc)

Functions

static FILE_ucopenfile (char *paths, char *filename, char *mode)
static void _ucprop_load (char *paths, int reload)
static void _ucprop_unload ()
static int _ucprop_lookup (unsigned long code, unsigned long n)
int ucisprop (unsigned long code, unsigned long mask1, unsigned long mask2)
static void _uccase_load (char *paths, int reload)
static void _uccase_unload ()
static unsigned long _uccase_lookup (unsigned long code, long l, long r, int field)
unsigned long uctoupper (unsigned long code)
unsigned long uctolower (unsigned long code)
unsigned long uctotitle (unsigned long code)
static void _ucdcmp_load (char *paths, int reload)
static void _ucdcmp_unload ()
int ucdecomp (unsigned long code, unsigned long *num, unsigned long **decomp)
int ucdecomp_hangul (unsigned long code, unsigned long *num, decomp)
static void _uccmcl_load (char *paths, int reload)
static void _uccmcl_unload ()
unsigned long uccombining_class (unsigned long code)
static void _ucnumb_load (char *paths, int reload)
static void _ucnumb_unload ()
int ucnumber_lookup (unsigned long code, struct ucnumber *num)
int ucdigit_lookup (unsigned long code, int *digit)
struct ucnumber ucgetnumber (unsigned long code)
int ucgetdigit (unsigned long code)
void ucdata_load (char *paths, int masks)
void ucdata_unload (int masks)
void ucdata_reload (char *paths, int masks)

Variables

static char rcsid [] = "$Id: ucdata.c,v 1.1 1999/01/08 00:19:11 ftang%netscape.com Exp $"
static unsigned long masks32 [32]
static unsigned long _ucprop_size
static unsigned short * _ucprop_offsets
static unsigned long_ucprop_ranges
static unsigned long _uccase_size
static unsigned short _uccase_len [2]
static unsigned long_uccase_map
static unsigned long _ucdcmp_size
static unsigned long_ucdcmp_nodes
static unsigned long_ucdcmp_decomp
static unsigned long _uccmcl_size
static unsigned long_uccmcl_nodes
static unsigned long_ucnum_nodes
static unsigned long _ucnum_size
static short * _ucnum_vals

Class Documentation

struct _ucheader_t

Definition at line 46 of file ucdata.c.

Class Members
unsigned short bom
unsigned short cnt
union _ucheader_t size
union _ucheader_t.size

Definition at line 49 of file ucdata.c.

Class Members
unsigned long bytes
unsigned short len

Define Documentation

#define endian_long (   cc)
Value:
((((cc) & 0xff) << 24)|((((cc) >> 8) & 0xff) << 16)|\
                        ((((cc) >> 16) & 0xff) << 8)|((cc) >> 24))

Definition at line 68 of file ucdata.c.

#define endian_short (   cc)    (((cc) >> 8) | (((cc) & 0xff) << 8))

Definition at line 67 of file ucdata.c.


Function Documentation

static void _uccase_load ( char *  paths,
int  reload 
) [static]

Definition at line 315 of file ucdata.c.

{
    FILE *in;
    unsigned long i;
    _ucheader_t hdr;

    if (_uccase_size > 0) {
        if (!reload)
          /*
           * The case mappings have already been loaded.
           */
          return;

        free((char *) _uccase_map);
        _uccase_size = 0;
    }

    if ((in = _ucopenfile(paths, "case.dat", "rb")) == 0)
      return;

    /*
     * Load the header.
     */
    fread((char *) &hdr, sizeof(_ucheader_t), 1, in);

    if (hdr.bom == 0xfffe) {
        hdr.cnt = endian_short(hdr.cnt);
        hdr.size.len[0] = endian_short(hdr.size.len[0]);
        hdr.size.len[1] = endian_short(hdr.size.len[1]);
    }

    /*
     * Set the node count and lengths of the upper and lower case mapping
     * tables.
     */
    _uccase_size = hdr.cnt * 3;
    _uccase_len[0] = hdr.size.len[0] * 3;
    _uccase_len[1] = hdr.size.len[1] * 3;

    _uccase_map = (unsigned long *)
        malloc(_uccase_size * sizeof(unsigned long));

    /*
     * Load the case mapping table.
     */
    fread((char *) _uccase_map, sizeof(unsigned long), _uccase_size, in);

    /*
     * Do an endian swap if necessary.
     */
    if (hdr.bom == 0xfffe) {
        for (i = 0; i < _uccase_size; i++)
          _uccase_map[i] = endian_long(_uccase_map[i]);
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static unsigned long _uccase_lookup ( unsigned long  code,
long  l,
long  r,
int  field 
) [static]

Definition at line 392 of file ucdata.c.

{
    long m;

    /*
     * Do the binary search.
     */
    while (l <= r) {
        /*
         * Determine a "mid" point and adjust to make sure the mid point is at
         * the beginning of a case mapping triple.
         */
        m = (l + r) >> 1;
        m -= (m % 3);
        if (code > _uccase_map[m])
          l = m + 3;
        else if (code < _uccase_map[m])
          r = m - 3;
        else if (code == _uccase_map[m])
          return _uccase_map[m + field];
    }

    return code;
}

Here is the caller graph for this function:

static void _uccase_unload ( ) [static]

Definition at line 378 of file ucdata.c.

{
    if (_uccase_size == 0)
      return;

    free((char *) _uccase_map);
    _uccase_size = 0;
}

Here is the caller graph for this function:

static void _uccmcl_load ( char *  paths,
int  reload 
) [static]

Definition at line 670 of file ucdata.c.

{
    FILE *in;
    unsigned long i;
    _ucheader_t hdr;

    if (_uccmcl_size > 0) {
        if (!reload)
          /*
           * The combining classes have already been loaded.
           */
          return;

        free((char *) _uccmcl_nodes);
        _uccmcl_size = 0;
    }

    if ((in = _ucopenfile(paths, "cmbcl.dat", "rb")) == 0)
      return;

    /*
     * Load the header.
     */
    fread((char *) &hdr, sizeof(_ucheader_t), 1, in);

    if (hdr.bom == 0xfffe) {
        hdr.cnt = endian_short(hdr.cnt);
        hdr.size.bytes = endian_long(hdr.size.bytes);
    }

    _uccmcl_size = hdr.cnt * 3;
    _uccmcl_nodes = (unsigned long *) malloc(hdr.size.bytes);

    /*
     * Read the combining classes in.
     */
    fread((char *) _uccmcl_nodes, sizeof(unsigned long), _uccmcl_size, in);

    /*
     * Do an endian swap if necessary.
     */
    if (hdr.bom == 0xfffe) {
        for (i = 0; i < _uccmcl_size; i++)
          _uccmcl_nodes[i] = endian_long(_uccmcl_nodes[i]);
    }        
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _uccmcl_unload ( ) [static]

Definition at line 724 of file ucdata.c.

{
    if (_uccmcl_size == 0)
      return;

    free((char *) _uccmcl_nodes);
    _uccmcl_size = 0;
}

Here is the caller graph for this function:

static void _ucdcmp_load ( char *  paths,
int  reload 
) [static]

Definition at line 534 of file ucdata.c.

{
    FILE *in;
    unsigned long size, i;
    _ucheader_t hdr;

    if (_ucdcmp_size > 0) {
        if (!reload)
          /*
           * The decompositions have already been loaded.
           */
          return;

        free((char *) _ucdcmp_nodes);
        _ucdcmp_size = 0;
    }

    if ((in = _ucopenfile(paths, "decomp.dat", "rb")) == 0)
      return;

    /*
     * Load the header.
     */
    fread((char *) &hdr, sizeof(_ucheader_t), 1, in);

    if (hdr.bom == 0xfffe) {
        hdr.cnt = endian_short(hdr.cnt);
        hdr.size.bytes = endian_long(hdr.size.bytes);
    }

    _ucdcmp_size = hdr.cnt << 1;
    _ucdcmp_nodes = (unsigned long *) malloc(hdr.size.bytes);
    _ucdcmp_decomp = _ucdcmp_nodes + (_ucdcmp_size + 1);

    /*
     * Read the decomposition data in.
     */
    size = hdr.size.bytes / sizeof(unsigned long);
    fread((char *) _ucdcmp_nodes, sizeof(unsigned long), size, in);

    /*
     * Do an endian swap if necessary.
     */
    if (hdr.bom == 0xfffe) {
        for (i = 0; i < size; i++)
          _ucdcmp_nodes[i] = endian_long(_ucdcmp_nodes[i]);
    }        
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _ucdcmp_unload ( ) [static]

Definition at line 590 of file ucdata.c.

{
    if (_ucdcmp_size == 0)
      return;

    /*
     * Only need to free the offsets because the memory is allocated as a
     * single block.
     */
    free((char *) _ucdcmp_nodes);
    _ucdcmp_size = 0;
}

Here is the caller graph for this function:

static void _ucnumb_load ( char *  paths,
int  reload 
) [static]

Definition at line 774 of file ucdata.c.

{
    FILE *in;
    unsigned long size, i;
    _ucheader_t hdr;

    if (_ucnum_size > 0) {
        if (!reload)
          /*
           * The numbers have already been loaded.
           */
          return;

        free((char *) _ucnum_nodes);
        _ucnum_size = 0;
    }

    if ((in = _ucopenfile(paths, "num.dat", "rb")) == 0)
      return;

    /*
     * Load the header.
     */
    fread((char *) &hdr, sizeof(_ucheader_t), 1, in);

    if (hdr.bom == 0xfffe) {
        hdr.cnt = endian_short(hdr.cnt);
        hdr.size.bytes = endian_long(hdr.size.bytes);
    }

    _ucnum_size = hdr.cnt;
    _ucnum_nodes = (unsigned long *) malloc(hdr.size.bytes);
    _ucnum_vals = (short *) (_ucnum_nodes + _ucnum_size);

    /*
     * Read the combining classes in.
     */
    fread((char *) _ucnum_nodes, sizeof(unsigned char), hdr.size.bytes, in);

    /*
     * Do an endian swap if necessary.
     */
    if (hdr.bom == 0xfffe) {
        for (i = 0; i < _ucnum_size; i++)
          _ucnum_nodes[i] = endian_long(_ucnum_nodes[i]);

        /*
         * Determine the number of values that have to be adjusted.
         */
        size = (hdr.size.bytes -
                (_ucnum_size * (sizeof(unsigned long) << 1))) /
            sizeof(short);

        for (i = 0; i < size; i++)
          _ucnum_vals[i] = endian_short(_ucnum_vals[i]);
    }        
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _ucnumb_unload ( ) [static]

Definition at line 839 of file ucdata.c.

{
    if (_ucnum_size == 0)
      return;

    free((char *) _ucnum_nodes);
    _ucnum_size = 0;
}

Here is the caller graph for this function:

static FILE* _ucopenfile ( char *  paths,
char *  filename,
char *  mode 
) [static]

Definition at line 75 of file ucdata.c.

{
    FILE *f;
    char *fp, *dp, *pp, path[BUFSIZ];

    if (filename == 0 || *filename == 0)
      return 0;

    dp = paths;
    while (dp && *dp) {
        pp = path;
        while (*dp && *dp != ':')
          *pp++ = *dp++;
        *pp++ = '/';

        fp = filename;
        while (*fp)
          *pp++ = *fp++;
        *pp = 0;

        if ((f = fopen(path, mode)) != 0)
          return f;

        if (*dp == ':')
          dp++;
    }

    return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _ucprop_load ( char *  paths,
int  reload 
) [static]

Definition at line 121 of file ucdata.c.

{
    FILE *in;
    unsigned long size, i;
    _ucheader_t hdr;

    if (_ucprop_size > 0) {
        if (!reload)
          /*
           * The character properties have already been loaded.
           */
          return;

        /*
         * Unload the current character property data in preparation for
         * loading a new copy.  Only the first array has to be deallocated
         * because all the memory for the arrays is allocated as a single
         * block.
         */
        free((char *) _ucprop_offsets);
        _ucprop_size = 0;
    }

    if ((in = _ucopenfile(paths, "ctype.dat", "rb")) == 0)
      return;

    /*
     * Load the header.
     */
    fread((char *) &hdr, sizeof(_ucheader_t), 1, in);

    if (hdr.bom == 0xfffe) {
        hdr.cnt = endian_short(hdr.cnt);
        hdr.size.bytes = endian_long(hdr.size.bytes);
    }

    if ((_ucprop_size = hdr.cnt) == 0) {
        fclose(in);
        return;
    }

    /*
     * Allocate all the storage needed for the lookup table.
     */
    _ucprop_offsets = (unsigned short *) malloc(hdr.size.bytes);

    /*
     * Calculate the offset into the storage for the ranges.  The offsets
     * array is on a 4-byte boundary and one larger than the value provided in
     * the header count field.  This means the offset to the ranges must be
     * calculated after aligning the count to a 4-byte boundary.
     */
    if ((size = ((hdr.cnt + 1) * sizeof(unsigned short))) & 3)
      size += 4 - (size & 3);
    size >>= 1;
    _ucprop_ranges = (unsigned long *) (_ucprop_offsets + size);

    /*
     * Load the offset array.
     */
    fread((char *) _ucprop_offsets, sizeof(unsigned short), size, in);

    /*
     * Do an endian swap if necessary.  Don't forget there is an extra node on
     * the end with the final index.
     */
    if (hdr.bom == 0xfffe) {
        for (i = 0; i <= _ucprop_size; i++)
          _ucprop_offsets[i] = endian_short(_ucprop_offsets[i]);
    }

    /*
     * Load the ranges.  The number of elements is in the last array position
     * of the offsets.
     */
    fread((char *) _ucprop_ranges, sizeof(unsigned long),
          _ucprop_offsets[_ucprop_size], in);

    fclose(in);

    /*
     * Do an endian swap if necessary.
     */
    if (hdr.bom == 0xfffe) {
        for (i = 0; i < _ucprop_offsets[_ucprop_size]; i++)
          _ucprop_ranges[i] = endian_long(_ucprop_ranges[i]);
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static int _ucprop_lookup ( unsigned long  code,
unsigned long  n 
) [static]

Definition at line 235 of file ucdata.c.

{
    long l, r, m;

    /*
     * There is an extra node on the end of the offsets to allow this routine
     * to work right.  If the index is 0xffff, then there are no nodes for the
     * property.
     */
    if ((l = _ucprop_offsets[n]) == 0xffff)
      return 0;

    /*
     * Locate the next offset that is not 0xffff.  The sentinel at the end of
     * the array is the max index value.
     */
    for (m = 1;
         n + m < _ucprop_size && _ucprop_offsets[n + m] == 0xffff; m++) ;

    r = _ucprop_offsets[n + m] - 1;

    while (l <= r) {
        /*
         * Determine a "mid" point and adjust to make sure the mid point is at
         * the beginning of a range pair.
         */
        m = (l + r) >> 1;
        m -= (m & 1);
        if (code > _ucprop_ranges[m + 1])
          l = m + 2;
        else if (code < _ucprop_ranges[m])
          r = m - 2;
        else if (code >= _ucprop_ranges[m] && code <= _ucprop_ranges[m + 1])
          return 1;
    }
    return 0;
}

Here is the caller graph for this function:

static void _ucprop_unload ( ) [static]

Definition at line 217 of file ucdata.c.

{
    if (_ucprop_size == 0)
      return;

    /*
     * Only need to free the offsets because the memory is allocated as a
     * single block.
     */
    free((char *) _ucprop_offsets);
    _ucprop_size = 0;
}

Here is the caller graph for this function:

unsigned long uccombining_class ( unsigned long  code)

Definition at line 738 of file ucdata.c.

{
    long l, r, m;

    l = 0;
    r = _uccmcl_size - 1;

    while (l <= r) {
        m = (l + r) >> 1;
        m -= (m % 3);
        if (code > _uccmcl_nodes[m + 1])
          l = m + 3;
        else if (code < _uccmcl_nodes[m])
          r = m - 3;
        else if (code >= _uccmcl_nodes[m] && code <= _uccmcl_nodes[m + 1])
          return _uccmcl_nodes[m + 2];
    }
    return 0;
}
void ucdata_load ( char *  paths,
int  masks 
)

Definition at line 975 of file ucdata.c.

{
    if (masks & UCDATA_CTYPE)
      _ucprop_load(paths, 0);
    if (masks & UCDATA_CASE)
      _uccase_load(paths, 0);
    if (masks & UCDATA_DECOMP)
      _ucdcmp_load(paths, 0);
    if (masks & UCDATA_CMBCL)
      _uccmcl_load(paths, 0);
    if (masks & UCDATA_NUM)
      _ucnumb_load(paths, 0);
}

Here is the call graph for this function:

void ucdata_reload ( char *  paths,
int  masks 
)

Definition at line 1016 of file ucdata.c.

{
    if (masks & UCDATA_CTYPE)
      _ucprop_load(paths, 1);
    if (masks & UCDATA_CASE)
      _uccase_load(paths, 1);
    if (masks & UCDATA_DECOMP)
      _ucdcmp_load(paths, 1);
    if (masks & UCDATA_CMBCL)
      _uccmcl_load(paths, 1);
    if (masks & UCDATA_NUM)
      _ucnumb_load(paths, 1);
}

Here is the call graph for this function:

void ucdata_unload ( int  masks)

Definition at line 996 of file ucdata.c.

{
    if (masks & UCDATA_CTYPE)
      _ucprop_unload();
    if (masks & UCDATA_CASE)
      _uccase_unload();
    if (masks & UCDATA_DECOMP)
      _ucdcmp_unload();
    if (masks & UCDATA_CMBCL)
      _uccmcl_unload();
    if (masks & UCDATA_NUM)
      _ucnumb_unload();
}

Here is the call graph for this function:

int ucdecomp ( unsigned long  code,
unsigned long num,
unsigned long **  decomp 
)

Definition at line 608 of file ucdata.c.

{
    long l, r, m;

    l = 0;
    r = _ucdcmp_nodes[_ucdcmp_size] - 1;

    while (l <= r) {
        /*
         * Determine a "mid" point and adjust to make sure the mid point is at
         * the beginning of a code+offset pair.
         */
        m = (l + r) >> 1;
        m -= (m & 1);
        if (code > _ucdcmp_nodes[m])
          l = m + 2;
        else if (code < _ucdcmp_nodes[m])
          r = m - 2;
        else if (code == _ucdcmp_nodes[m]) {
            *num = _ucdcmp_nodes[m + 3] - _ucdcmp_nodes[m + 1];
            *decomp = &_ucdcmp_decomp[_ucdcmp_nodes[m + 1]];
            return 1;
        }
    }
    return 0;
}
int ucdecomp_hangul ( unsigned long  code,
unsigned long num,
decomp   
)

Definition at line 641 of file ucdata.c.

{
    if (!ucishangul(code))
      return 0;

    code -= 0xac00;
    decomp[0] = 0x1100 + (unsigned long) (code / 588);
    decomp[1] = 0x1161 + (unsigned long) ((code % 588) / 28);
    decomp[2] = 0x11a7 + (unsigned long) (code % 28);
    *num = (decomp[2] != 0x11a7) ? 3 : 2;

    return 1;
}
int ucdigit_lookup ( unsigned long  code,
int digit 
)

Definition at line 888 of file ucdata.c.

{
    long l, r, m;
    short *vp;

    l = 0;
    r = _ucnum_size - 1;
    while (l <= r) {
        /*
         * Determine a "mid" point and adjust to make sure the mid point is at
         * the beginning of a code+offset pair.
         */
        m = (l + r) >> 1;
        m -= (m & 1);
        if (code > _ucnum_nodes[m])
          l = m + 2;
        else if (code < _ucnum_nodes[m])
          r = m - 2;
        else {
            vp = _ucnum_vals + _ucnum_nodes[m + 1];
            if (*vp == *(vp + 1)) {
              *digit = *vp;
              return 1;
            }
            return 0;
        }
    }
    return 0;
}

Here is the caller graph for this function:

int ucgetdigit ( unsigned long  code)

Definition at line 947 of file ucdata.c.

{
    int dig;

    /*
     * Initialize with some arbitrary value, because the caller simply cannot
     * tell for sure if the code is a number without calling the ucisdigit()
     * macro before calling this function.
     */
    dig = -111;

    (void) ucdigit_lookup(code, &dig);

    return dig;
}

Here is the call graph for this function:

struct ucnumber ucgetnumber ( unsigned long  code) [read]

Definition at line 925 of file ucdata.c.

{
    struct ucnumber num;

    /*
     * Initialize with some arbitrary value, because the caller simply cannot
     * tell for sure if the code is a number without calling the ucisnumber()
     * macro before calling this function.
     */
    num.numerator = num.denominator = -111;

    (void) ucnumber_lookup(code, &num);

    return num;
}
int ucisprop ( unsigned long  code,
unsigned long  mask1,
unsigned long  mask2 
)

Definition at line 279 of file ucdata.c.

{
    unsigned long i;

    if (mask1 == 0 && mask2 == 0)
      return 0;

    for (i = 0; mask1 && i < 32; i++) {
        if ((mask1 & masks32[i]) && _ucprop_lookup(code, i))
          return 1;
    }

    for (i = 32; mask2 && i < _ucprop_size; i++) {
        if ((mask2 & masks32[i & 31]) && _ucprop_lookup(code, i))
          return 1;
    }

    return 0;
}

Here is the call graph for this function:

int ucnumber_lookup ( unsigned long  code,
struct ucnumber num 
)

Definition at line 853 of file ucdata.c.

{
    long l, r, m;
    short *vp;

    l = 0;
    r = _ucnum_size - 1;
    while (l <= r) {
        /*
         * Determine a "mid" point and adjust to make sure the mid point is at
         * the beginning of a code+offset pair.
         */
        m = (l + r) >> 1;
        m -= (m & 1);
        if (code > _ucnum_nodes[m])
          l = m + 2;
        else if (code < _ucnum_nodes[m])
          r = m - 2;
        else {
            vp = _ucnum_vals + _ucnum_nodes[m + 1];
            num->numerator = (int) *vp++;
            num->denominator = (int) *vp;
            return 1;
        }
    }
    return 0;
}
unsigned long uctolower ( unsigned long  code)

Definition at line 457 of file ucdata.c.

{
    int field;
    long l, r;

    if (ucislower(code))
      return code;

    if (ucisupper(code)) {
        /*
         * The character is upper case.
         */
        field = 1;
        l = 0;
        r = _uccase_len[0] - 1;
    } else {
        /*
         * The character is title case.
         */
        field = 2;
        l = _uccase_len[0] + _uccase_len[1];
        r = _uccase_size - 1;
    }
    return _uccase_lookup(code, l, r, field);
}

Here is the call graph for this function:

unsigned long uctotitle ( unsigned long  code)

Definition at line 489 of file ucdata.c.

{
    int field;
    long l, r;

    if (ucistitle(code))
      return code;

    /*
     * The offset will always be the same for converting to title case.
     */
    field = 2;

    if (ucisupper(code)) {
        /*
         * The character is upper case.
         */
        l = 0;
        r = _uccase_len[0] - 1;
    } else {
        /*
         * The character is lower case.
         */
        l = _uccase_len[0];
        r = (l + _uccase_len[1]) - 1;
    }
    return _uccase_lookup(code, l, r, field);
}

Here is the call graph for this function:

unsigned long uctoupper ( unsigned long  code)

Definition at line 425 of file ucdata.c.

{
    int field;
    long l, r;

    if (ucisupper(code))
      return code;

    if (ucislower(code)) {
        /*
         * The character is lower case.
         */
        field = 1;
        l = _uccase_len[0];
        r = (l + _uccase_len[1]) - 1;
    } else {
        /*
         * The character is title case.
         */
        field = 2;
        l = _uccase_len[0] + _uccase_len[1];
        r = _uccase_size - 1;
    }
    return _uccase_lookup(code, l, r, field);
}

Here is the call graph for this function:


Variable Documentation

unsigned short _uccase_len[2] [static]

Definition at line 308 of file ucdata.c.

unsigned long* _uccase_map [static]

Definition at line 309 of file ucdata.c.

unsigned long _uccase_size [static]

Definition at line 307 of file ucdata.c.

unsigned long* _uccmcl_nodes [static]

Definition at line 664 of file ucdata.c.

unsigned long _uccmcl_size [static]

Definition at line 663 of file ucdata.c.

unsigned long* _ucdcmp_decomp [static]

Definition at line 528 of file ucdata.c.

unsigned long* _ucdcmp_nodes [static]

Definition at line 527 of file ucdata.c.

unsigned long _ucdcmp_size [static]

Definition at line 526 of file ucdata.c.

unsigned long* _ucnum_nodes [static]

Definition at line 766 of file ucdata.c.

unsigned long _ucnum_size [static]

Definition at line 767 of file ucdata.c.

short* _ucnum_vals [static]

Definition at line 768 of file ucdata.c.

unsigned short* _ucprop_offsets [static]

Definition at line 114 of file ucdata.c.

unsigned long* _ucprop_ranges [static]

Definition at line 115 of file ucdata.c.

unsigned long _ucprop_size [static]

Definition at line 113 of file ucdata.c.

unsigned long masks32[32] [static]
Initial value:
 {
    0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000010, 0x00000020,
    0x00000040, 0x00000080, 0x00000100, 0x00000200, 0x00000400, 0x00000800,
    0x00001000, 0x00002000, 0x00004000, 0x00008000, 0x00010000, 0x00020000,
    0x00040000, 0x00080000, 0x00100000, 0x00200000, 0x00400000, 0x00800000,
    0x01000000, 0x02000000, 0x04000000, 0x08000000, 0x10000000, 0x20000000,
    0x40000000, 0x80000000
}

Definition at line 58 of file ucdata.c.

char rcsid[] = "$Id: ucdata.c,v 1.1 1999/01/08 00:19:11 ftang%netscape.com Exp $" [static]

Definition at line 27 of file ucdata.c.