static PRUint8 lMap[LCount] = {
static const PRUint8 lMap[LCount] = {
PRIVATE PRBool uCheckAndGenJohabHangul(                                       uShiftTable   *shift,                                       PRInt32*   state,                                       PRUint16   in,                                       unsigned char* out,                                       PRUint32    outbuflen,                                       PRUint32*   outlen                                       ){    if(outbuflen < 2)        return PR_FALSE;    else    {    /*    See Table 4-45 (page 183) of CJKV Information Processing    for detail explaination of the following table        */        /*        static PRUint8 lMap[LCount] = {        2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20        };        Therefore lMap[i] == i+2;        */                static PRUint8 vMap[VCount] = {            /* no 0,1,2 */            3,4,5,6,7,            /* no 8,9   */                10,11,12,13,14,15,    /* no 16,17 */                18,19,20,21,22,23,    /* no 24,25 */                26,27,28,29        };        static PRUint8 tMap[TCount] = {            1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17, /* no 18 */                19,20,21,22,23,24,25,26,27,28,29        };        PRUint16 SIndex, LIndex, VIndex, TIndex, ch;        /* the following line are copy from Unicode 2.0 page 3-13 */        /* item 1 of Hangul Syllabel Decomposition */        SIndex =  in - SBase;                /* the following lines are copy from Unicode 2.0 page 3-14 */        /* item 2 of Hangul Syllabel Decomposition w/ modification */        LIndex = SIndex / NCount;        VIndex = (SIndex % NCount) / TCount;        TIndex = SIndex % TCount;                *outlen = 2;        ch = 0x8000 |             ((LIndex+2)<<10) |             (vMap[VIndex]<<5)|             tMap[TIndex];        out[0] = (ch >> 8);        out[1] = ch & 0x00FF;#if 0        printf("Johab Hangul %x %x in=%x L=%d V=%d T=%d\n", out[0], out[1], in, LIndex, VIndex, TIndex); #endif         return PR_TRUE;    }}