Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.7 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1997, Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: ctplus.h
  6. //
  7. // Contents: Local definitions for ctplus.c
  8. //
  9. // History: 23-May-96 pathal Created.
  10. // 28-Aug-97 Weibz Add Hanguel char
  11. //
  12. //---------------------------------------------------------------------------
  13. #ifndef _CTPLUS_0_H_
  14. #define _CTPLUS_0_H_
  15. #define HC 0x01 // Hiragana char
  16. #define IC 0x02 // Ideograph char
  17. #define KC 0x03 // Katakana char
  18. #define WS 0x04 // Word seperator
  19. #define VC 0x05 // Hankaku (variant) char
  20. #define PS 0x06 // Phrase seperator
  21. #define CH 0x07 // Code page 0 - ASCII Char.
  22. #define HG 0x08 // Hanguel Char.
  23. BYTE
  24. GetCharType(WCHAR wc);
  25. // Declare character types transitions
  26. // Intuitively frequency ordered
  27. //
  28. typedef enum _CT {
  29. CT_START = 0x00,
  30. CT_HIRAGANA = 0x01,
  31. CT_KANJI = 0x02,
  32. CT_KATAKANA = 0x03,
  33. CT_WORD_SEP = 0x04,
  34. CT_HANKAKU = 0x05,
  35. CT_PHRASE_SEP = 0x06,
  36. CT_ROMAJI = 0x07,
  37. CT_HANGUEL = 0x08,
  38. } CT;
  39. // Declare node types transitions
  40. // Intuitively frequency ordered
  41. //
  42. typedef enum _WT {
  43. WT_START = 0x00,
  44. WT_WORD_SEP = 0x01,
  45. WT_PHRASE_SEP = 0x02,
  46. WT_ROMAJI = 0x03,
  47. WT_HANGUEL = 0x04,
  48. WT_REACHEND = 0x05,
  49. } WT;
  50. #define CT_MAX 0x09
  51. #endif // _CTPLUS_0_H_