static PRUint8 lMap[32]={
static const PRUint8 lMap[32]={
PRIVATE PRBool uCheckAndScanJohabHangul(                                        uShiftTable    *shift,                                        PRInt32*    state,                                        unsigned char  *in,                                        PRUint16    *out,                                        PRUint32     inbuflen,                                        PRUint32*    inscanlen                                        ){/* since we don't have code to convert Johab to Unicode right now     *  * make this part of code #if 0 to save space untill we fully test it */  if(inbuflen < 2)    return PR_FALSE;  else {  /*  * See Table 4-45 Johab Encoding's Five-Bit Binary Patterns in page 183  * of "CJKV Information Processing" for details    */    static PRUint8 lMap[32]={ /* totaly 19  */      0xff,0xff,0,   1,   2,   3,   4,   5,    /* 0-7    */        6,   7,   8,   9,   10,  11,  12,  13,   /* 8-15   */        14,  15,  16,  17,  18,  0xff,0xff,0xff, /* 16-23  */        0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff  /* 24-31  */    };    static PRUint8 vMap[32]={ /* totaly 21 */      0xff,0xff,0xff,0,   1,   2,   3,   4,    /* 0-7   */        0xff,0xff,5,   6,   7,   8,   9,   10,   /* 8-15  */        0xff,0xff,11,  12,  13,  14,  15,  16,   /* 16-23 */        0xff,0xff,17,  18,  19,  20,  0xff,0xff  /* 24-31 */    };    static PRUint8 tMap[32]={ /* totaly 29 */      0xff,0,   1,   2,   3,   4,   5,   6,    /* 0-7   */        7,   8,   9,   10,  11,  12,  13,  14,   /* 8-15  */        15,  16,  0xff,17,  18,  19,  20,  21,   /* 16-23 */        22,  23,  24,  25,  26,  27,  0xff,0xff  /* 24-31 */    };    PRUint16 ch = (in[0] << 8) | in[1];    PRUint16 LIndex, VIndex, TIndex;    if(0 == (0x8000 & ch))      return PR_FALSE;    LIndex=lMap[(ch>>10)& 0x1F];    VIndex=vMap[(ch>>5) & 0x1F];    TIndex=tMap[(ch>>0) & 0x1F];    if((0xff==(LIndex)) ||       (0xff==(VIndex)) ||       (0xff==(TIndex)))      return PR_FALSE;    /* the following line is from Unicode 2.0 page 3-13 item 5 */    *out = ( LIndex * VCount + VIndex) * TCount + TIndex + SBase;    *inscanlen = 2;    return PR_TRUE;  }}