ICU-2427 move Hangul/Jamo constants from unorm.cpp to unormimp.h

X-SVN-Rev: 11264
This commit is contained in:
Markus Scherer 2003-03-07 21:46:51 +00:00
parent f0d2453789
commit a968441ac2
2 changed files with 15 additions and 15 deletions

View File

@ -89,21 +89,6 @@ enum {
_NORM_OPTIONS_UNICODE_SHIFT=5
};
/* Korean Hangul and Jamo constants */
enum {
JAMO_L_BASE=0x1100, /* "lead" jamo */
JAMO_V_BASE=0x1161, /* "vowel" jamo */
JAMO_T_BASE=0x11a7, /* "trail" jamo */
HANGUL_BASE=0xac00,
JAMO_L_COUNT=19,
JAMO_V_COUNT=21,
JAMO_T_COUNT=28,
HANGUL_COUNT=JAMO_L_COUNT*JAMO_V_COUNT*JAMO_T_COUNT
};
static inline UBool
isHangulWithoutJamoT(UChar c) {
c-=HANGUL_BASE;

View File

@ -147,6 +147,21 @@ enum {
_NORM_DECOMP_LENGTH_MASK=0x7f
};
/* Korean Hangul and Jamo constants */
enum {
JAMO_L_BASE=0x1100, /* "lead" jamo */
JAMO_V_BASE=0x1161, /* "vowel" jamo */
JAMO_T_BASE=0x11a7, /* "trail" jamo */
HANGUL_BASE=0xac00,
JAMO_L_COUNT=19,
JAMO_V_COUNT=21,
JAMO_T_COUNT=28,
HANGUL_COUNT=JAMO_L_COUNT*JAMO_V_COUNT*JAMO_T_COUNT
};
/* Constants for options flags for normalization. ### TODO prototype, see unorm.cpp */
enum {
/** Options bit 0, do not decompose Hangul syllables. @draft ICU 2.6 */