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

//+--------------------------------------------------------------------------
//
// Copyright (C) 1997, Microsoft Corporation. All Rights Reserved.
//
// File: ctplus.h
//
// Contents: Local definitions for ctplus.c
//
// History: 23-May-96 pathal Created.
// 28-Aug-97 Weibz Add Hanguel char
//
//---------------------------------------------------------------------------
#ifndef _CTPLUS_0_H_
#define _CTPLUS_0_H_
#define HC 0x01 // Hiragana char
#define IC 0x02 // Ideograph char
#define KC 0x03 // Katakana char
#define WS 0x04 // Word seperator
#define VC 0x05 // Hankaku (variant) char
#define PS 0x06 // Phrase seperator
#define CH 0x07 // Code page 0 - ASCII Char.
#define HG 0x08 // Hanguel Char.
BYTE
GetCharType(WCHAR wc);
// Declare character types transitions
// Intuitively frequency ordered
//
typedef enum _CT {
CT_START = 0x00,
CT_HIRAGANA = 0x01,
CT_KANJI = 0x02,
CT_KATAKANA = 0x03,
CT_WORD_SEP = 0x04,
CT_HANKAKU = 0x05,
CT_PHRASE_SEP = 0x06,
CT_ROMAJI = 0x07,
CT_HANGUEL = 0x08,
} CT;
// Declare node types transitions
// Intuitively frequency ordered
//
typedef enum _WT {
WT_START = 0x00,
WT_WORD_SEP = 0x01,
WT_PHRASE_SEP = 0x02,
WT_ROMAJI = 0x03,
WT_HANGUEL = 0x04,
WT_REACHEND = 0x05,
} WT;
#define CT_MAX 0x09
#endif // _CTPLUS_0_H_