Back to index

im-sdk  12.3.91
Defines | Functions
hangul.h File Reference
#include <IMProtocolStruct.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CHOSEONG_FILLER   0x115F
#define JUNGSEONG_FILLER   0x1160
#define JONGSEONG_FILLER   0x11A7
#define IS_VALID_CHOSEONG(LC)   (((LC) >= 0x1100) && ((LC) <= 0x1159))
#define IS_VALID_JUNGSEONG(IV)   (((IV) >= 0x1161) && ((IV) <= 0x11a2))
#define IS_VALID_JONGSEONG(TC)   (((TC) >= 0x11a7) && ((TC) <= 0x11f9))

Functions

UTFCHAR hangul_combining_chosung_to_compatibility_jamo (UTFCHAR ch)
UTFCHAR hangul_combining_jungsung_to_compatibility_moeum (UTFCHAR ch)
UTFCHAR hangul_combining_jongsung_to_compatibility_jaeum (UTFCHAR ch)
UTFCHAR hangul_combining_chosung_to_combining_jongsung (UTFCHAR jaeum_choseong)
UTFCHAR hangul_combining_jongsung_to_combining_chosung (UTFCHAR jongsung)
void hangul_jongseong_decompose (UTFCHAR ch, UTFCHAR *jong, UTFCHAR *cho)

Define Documentation

#define CHOSEONG_FILLER   0x115F

Definition at line 6 of file hangul.h.

#define IS_VALID_CHOSEONG (   LC)    (((LC) >= 0x1100) && ((LC) <= 0x1159))

Definition at line 10 of file hangul.h.

#define IS_VALID_JONGSEONG (   TC)    (((TC) >= 0x11a7) && ((TC) <= 0x11f9))

Definition at line 12 of file hangul.h.

#define IS_VALID_JUNGSEONG (   IV)    (((IV) >= 0x1161) && ((IV) <= 0x11a2))

Definition at line 11 of file hangul.h.

#define JONGSEONG_FILLER   0x11A7

Definition at line 8 of file hangul.h.

#define JUNGSEONG_FILLER   0x1160

Definition at line 7 of file hangul.h.


Function Documentation

Definition at line 66 of file hangul.c.

{
  /*
    cchosung : compatibility jamo chosung
    cjongsung: compatibility jamo jongsung
   */
  UTFCHAR cjongsung;

  if (cchosung < 0x1100 || cchosung > 0x1112)
    cjongsung = 0;
  else
    cjongsung =
      _combining_chosung_to_combining_jongsung[cchosung - 0x1100];

  return cjongsung;
}

Here is the caller graph for this function:

Definition at line 39 of file hangul.c.

{
  if (ch < 0x1100 || ch > 0x1112)
    return 0;
  else
    return _combining_chosung_to_compatibility_chosung[ch - 0x1100];
}

Here is the caller graph for this function:

Definition at line 84 of file hangul.c.

{
#if 0
  static UTFCHAR table[] = {
    0x1100, 0x1101, 0x1109, 0x1102,
    0x110c, 0x1112, 0x1103, 0x1105,
    0x1100, 0x1106, 0x1107, 0x1109,
    0x1110, 0x1111, 0x1112, 0x1106,
    0x1107, 0x1109, 0x1109, 0x110a,
    0x110b, 0x110c, 0x110e, 0x110f,
    0x1110, 0x1111, 0x1112 
  };
#endif
  
  if (jongsung < 0x11a8 || jongsung > 0x11c2)
    return 0;
  else
    return _combining_jongsung_to_combining_chosung[jongsung - 0x11a8];
}

Here is the caller graph for this function:

Definition at line 57 of file hangul.c.

{
  if (ch < 0x11a8 || ch > 0x11c2)
    return 0;
  else
    return _combining_jongsung_to_compatibility_jaeum[ch - 0x11a8];
}

Here is the caller graph for this function:

Definition at line 48 of file hangul.c.

{
  if (ch < 0x1161 || ch > 0x1175)
    return 0;
  else
    return _combining_jungsung_to_compatibility_moeum[ch - 0x1161];
}

Here is the caller graph for this function:

void hangul_jongseong_decompose ( UTFCHAR  ch,
UTFCHAR jong,
UTFCHAR cho 
)