Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | Variables
nsUnicodeToX11Johab.cpp File Reference
#include "nsUnicodeToX11Johab.h"
#include "nsUCvKODll.h"

Go to the source code of this file.

Defines

#define START   1
#define LEADING_CONSONANT   1
#define VOWEL   2
#define canConvert(ch)

Typedefs

typedef char byte

Variables

static const PRUint16 lconBase []
static const PRUint16 vowBase []
static const PRUint16 tconBase []
static const PRUint8 lconMap1 []
static const PRUint8 lconMap2 []
static const PRUint8 vowType []
static const PRUint8 tconType []
static const PRUint8 tconMap []

Define Documentation

Value:
(((0xac00 <=(ch))&&((ch)<= 0xd7a3))    /* Modern hangul syllables         */\
   || ((0x1100 <=(ch))&&((ch)<= 0x1112)) /* modern leading consonants (19)  */\
   || ((0x1113 <=(ch))&&((ch)<= 0x1159) /* ancient leading consonants (71) */\
       && (lconBase[ch-0x1100] != 0))                                        */\
   || ((ch) == 0x115f)                 /* leading consonants filler       */\
   || ((0x1160 <=(ch))&&((ch)<= 0x1175))  /* modern vowels (21)              */\
   || ((0x1176 <=(ch))&&((ch)<= 0x11a2) /* ancient vowels (45)             */\
       && (vowBase[(ch)-0x1160] != 0  ))                                        */\
   || ((0x11a8 <=(ch))&&((ch)<= 0x11c2))/* modern trailing consonants (27) */\
   || ((0x11c3 <=(ch))&&((ch)<= 0x11f9) /* ancient trailing consonants (55)*/\
       && (tconBase[(ch)-0x11a7] != 0 )))

Definition at line 183 of file nsUnicodeToX11Johab.cpp.

Definition at line 132 of file nsUnicodeToX11Johab.cpp.

#define START   1

Definition at line 131 of file nsUnicodeToX11Johab.cpp.

#define VOWEL   2

Definition at line 133 of file nsUnicodeToX11Johab.cpp.


Typedef Documentation

typedef char byte

Definition at line 47 of file nsUnicodeToX11Johab.cpp.


Variable Documentation

const PRUint16 lconBase[] [static]
Initial value:
 {
       
       1, 11, 21, 31, 41, 51,
       61, 71, 81, 91, 101, 111,
       121, 131, 141, 151, 161, 171,
       181, 

       
       0, 0, 0, 0, 0, 0,       
       0, 0, 0, 0, 0, 201,     
       0, 221, 251, 0, 0, 0,   
       0, 0, 281, 0, 0, 0,     
       191, 0, 211, 0, 231, 0, 
       0, 241, 0, 0, 0, 291,   
       0, 0, 0, 0, 0, 0,       
       0, 0, 0, 261, 0, 0,     
       0, 0, 0, 0, 0, 0,       
       0, 0, 0, 271, 0, 0,     
       0, 0, 0, 0, 0, 0,       
       0, 0, 0, 0, 301,        
       0, 0, 0, 0, 0,          
       0,                      
  }

Definition at line 306 of file nsUnicodeToX11Johab.cpp.

const PRUint8 lconMap1[] [static]
Initial value:
 {
      0,0,0,0,0,0,     
      0,0,0,1,3,3,     
      3,1,2,4,4,4,     
      2,1,3,0,         


      3, 4, 3, 3, 3, 4,   
      4, 3, 4, 3, 3, 3,   
      1, 1, 3, 3, 3, 1,   
      3, 4, 4, 4, 4, 2,   
      3, 3, 3, 3, 3, 2,   
      4, 2, 2, 4, 0, 0,   
      3, 4, 3, 0, 1, 3,   
      2, 3, 1             
  }

Definition at line 384 of file nsUnicodeToX11Johab.cpp.

const PRUint8 lconMap2[] [static]
Initial value:
 {

      5,5,5,5,5,5,     
      5,5,5,6,8,8,     
      8,6,7,9,9,9,     
      7,6,8,5,         


      8, 9, 8, 8, 8, 9,   
      9, 8, 9, 8, 8, 8,   
      6, 6, 8, 8, 8, 6,   
      8, 9, 9, 9, 9, 7,   
      8, 8, 8, 8, 8, 7,   
      9, 7, 7, 9, 5, 5,   
      8, 9, 8, 5, 6, 8,   
      7, 8, 6             
  }

Definition at line 405 of file nsUnicodeToX11Johab.cpp.

const PRUint16 tconBase[] [static]
Initial value:
 {

      0, 
      405, 409, 413, 417, 421,
      425, 429, 433, 437, 441,
      445, 459, 453, 457, 461,
      465, 469, 473, 477, 481,
      485, 489, 493, 497, 501,
      505, 509,


      0, 0, 0, 0, 0, 0,      
      0, 0, 0, 0, 0, 0,      
      0, 0, 0, 0, 0, 0,      
      0, 0, 0, 0, 513, 517,  
      0, 0, 0, 0, 0, 0,      
      0, 0, 0, 0, 0, 0,      
      0, 0, 0, 0, 0, 0,      
      0, 0, 0, 525, 0, 0,    
      0, 0, 0, 0, 0, 0,      
      521                    
  }

Definition at line 356 of file nsUnicodeToX11Johab.cpp.

const PRUint8 tconMap[] [static]
Initial value:
 {
      0, 0, 2, 0, 2, 1,  
      2, 1, 2, 3, 0, 0,  
      0, 3, 3, 1, 1, 1,  
      3, 3, 0, 1,        


      3, 3, 3, 3, 3, 3,   
      3, 3, 3, 1, 0, 0,   
      3, 3, 3, 1, 0, 3,   
      0, 0, 0, 0, 0, 3,   
      0, 1, 1, 1, 1, 3,   
      1, 3, 3, 3, 2, 2,   
      3, 3, 3, 1, 3, 0,   
      3, 2, 3             
  }

Definition at line 471 of file nsUnicodeToX11Johab.cpp.

const PRUint8 tconType[] [static]
Initial value:
 {
      0, 1, 1, 1, 2, 1,
      1, 1, 1, 1, 1, 1,
      1, 1, 1, 1, 1, 1,
      1, 1, 1, 1, 1, 1,
      1, 1, 1, 1,


      1, 1, 1, 1, 1, 1,  
      1, 1, 1, 1, 1, 1,  
      1, 1, 1, 1, 1, 1,  
      1, 1, 1, 1, 1, 1,  
      1, 1, 1, 1, 1, 1,  
      1, 1, 1, 1, 1, 1,  
      1, 1, 1, 1, 1, 1,  
      1, 1, 1, 1, 1, 1,  
      1, 1, 1, 1, 1, 1,  
      1                  
  }

Definition at line 447 of file nsUnicodeToX11Johab.cpp.

const PRUint16 vowBase[] [static]
Initial value:
 {
      
      0,311,314,317,320,323,   
      326,329,332,335,339,343, 
      347,351,355,358,361,364, 
      367,370,374,378,         
 
      
      0, 0, 0, 0, 0, 0,        
      0, 0, 0, 0, 0, 0,        
      0, 0, 381, 384, 0, 0,    
      387, 0, 0, 0, 0, 0,      
      0, 0, 0, 390, 393, 0,    
      396, 0, 0, 0, 0, 0,      
      0, 0, 0, 0, 399, 0,      
      0, 402, 0                
  }

Definition at line 334 of file nsUnicodeToX11Johab.cpp.

const PRUint8 vowType[] [static]
Initial value:
 {
      0,0,0,0,0,0,
      0,0,0,1,1,1,
      1,1,0,0,0,0,
      0,1,1,0,


      1, 0, 1, 1, 1, 0,   
      0, 1, 0, 1, 1, 1,   
      1, 1, 0, 0, 0, 0,   
      0, 0, 0, 0, 0, 0,   
      0, 0, 0, 0, 0, 0,   
      0, 0, 0, 0, 0, 0,   
      0, 0, 0, 0, 0, 0,   
      0, 0, 0             
  }

Definition at line 426 of file nsUnicodeToX11Johab.cpp.