Leaked source code of windows server 2003
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.
 
 
 
 
 
 

57 lines
1.6 KiB

//+--------------------------------------------------------------------------
//
// Copyright (C) 1997, Microsoft Corporation. All Rights Reserved.
//
// File: ctplus.h
//
// Contents: Local definitions for ctplus.c
//
// History: 23-May-96 pathal Created.
// 11-Nov-97 Weibz Add Thai 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.
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;
// 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_REACHEND = 0x04,
} WT;
#define CT_MAX 0x08
#endif // _CTPLUS_0_H_