📄 thai.c
字号:
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif
/*****************************************************************************
* Local Function
*****************************************************************************/
/*****************************************************************************
* FUNCTION
* IsThaiUpDownVowel
* DESCRIPTION
*
* PARAMETERS
* ch [IN]
* RETURNS
*
*****************************************************************************/
MMI_BOOL IsThaiUpDownVowel(U16 ch)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (ch == THAI_AV_MAIHAN_AKAT || ch >= THAI_AV_SARA_I && ch <= THAI_BV_PHINTHU || ch == THAI_AV_MAITAIKHU)
{
return TRUE;
}
else
{
return FALSE;
}
}
/*****************************************************************************
* FUNCTION
* IsThaiConsonant
* DESCRIPTION
*
* PARAMETERS
* ch [IN]
* RETURNS
*
*****************************************************************************/
MMI_BOOL IsThaiConsonant(U16 ch)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (ch >= THAI_C_KO_KAI && ch <= THAI_C_HO_NOKHUK)
{
return TRUE;
}
else
{
return FALSE;
}
}
/*****************************************************************************
* FUNCTION
* IsThaiToneMark
* DESCRIPTION
*
* PARAMETERS
* ch [IN]
* RETURNS
*
*****************************************************************************/
MMI_BOOL IsThaiToneMark(U16 ch)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (ch == THAI_TM_MAI_EK || ch == THAI_TM_MAI_THO || ch == THAI_TM_MAI_TRI || ch == THAI_TM_MAI_CHATTAWA)
{
return TRUE;
}
else
{
return FALSE;
}
}
/*****************************************************************************
* FUNCTION
* IsThaiBaseLineChar
* DESCRIPTION
*
* PARAMETERS
* ch [IN]
* RETURNS
*
*****************************************************************************/
MMI_BOOL IsThaiBaseLineChar(U16 ch)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (ch >= THAI_C_KO_KAI && ch <= THAI_S_KHOMUT)
{
/* above vowels */
if (ch != THAI_AV_MAIHAN_AKAT && ch != THAI_AV_MAITAIKHU && ch != THAI_AV_SARA_I &&
ch != THAI_AV_SARA_II && ch != THAI_AV_SARA_UE && ch != THAI_AV_SARA_UEE &&
/* Tone marks */
ch != THAI_TM_MAI_CHATTAWA && ch != THAI_TM_MAI_EK && ch != THAI_TM_MAI_THO && ch != THAI_TM_MAI_TRI &&
/* Below vowels */
ch != THAI_BV_PHINTHU && ch != THAI_BV_SARA_U && ch != THAI_BV_SARA_UU &&
/* Signs */
ch != THAI_S_ANGKHANKHU && ch != THAI_S_FONGMAN && ch != THAI_S_KHOMUT && ch != THAI_S_LAKKHANGYAO &&
ch != THAI_S_MAIYAMOK && ch != THAI_S_NIKHAHIT && ch != THAI_S_PAIYANNOI && ch != THAI_S_THANTHAKHAT && ch != THAI_S_YAMAKKAN &&
/* Exclude Thai digits */
ch <= THAI_D_ZERO)
{
return MMI_TRUE;
}
else
{
return FALSE;
}
}
else
{
return FALSE;
}
}
/*****************************************************************************
* FUNCTION
* IsThaiAboveLineChar
* DESCRIPTION
*
* PARAMETERS
* ch [IN]
* RETURNS
*
*****************************************************************************/
MMI_BOOL IsThaiAboveLineChar(U16 ch)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -