Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

th_isaccept(centos) [centos man page]

thai/thinp.h(3) 						      libthai							   thai/thinp.h(3)

NAME
thai/thinp.h - Thai string input sequence filtering. SYNOPSIS
Data Structures struct thinpconv_t Input sequence correction info. Enumerations enum thstrict_t { ISC_PASSTHROUGH = 0, ISC_BASICCHECK = 1, ISC_STRICT = 2 } Strictness of input sequence checking, according to WTT 2.0. Functions int th_isaccept (thchar_t c1, thchar_t c2, thstrict_t s) Check for acceptance of input sequence. int th_validate (struct thcell_t context, thchar_t c, struct thinpconv_t *conv) Check and try to correct input sequence. Detailed Description Thai string input sequence filtering. Enumeration Type Documentation enum thstrict_t Strictness of input sequence checking, according to WTT 2.0. Enumerator ISC_PASSTHROUGH No check ISC_BASICCHECK Basic check ISC_STRICT Strict check Function Documentation int th_isaccept (thchar_tc1, thchar_tc2, thstrict_ts) Check for acceptance of input sequence. Parameters: c1 : previous character c2 : the newly input character s : strictness level Returns: non-zero if accepted, 0 otherwise Checks if, according to WTT 2.0 strictness level s, c2 is allowed after c1. int th_validate (struct thcell_tcontext, thchar_tc, struct thinpconv_t *conv) Check and try to correct input sequence. Parameters: context : previous cell c : the newly input character conv : the storage for resulting correction info Returns: 0 if the input is to be rejected non-zero otherwise. Given the previous cell as context, edit the input buffer using the given input c, maintaining WTT canonical order, and do some convenient correction in conv. Author Generated automatically by Doxygen for libthai from the source code. Version 0.1.14 Tue Jun 17 2014 thai/thinp.h(3)

Check Out this Related Man Page

thai/thcell.h(3)						      libthai							  thai/thcell.h(3)

NAME
thai/thcell.h - Thai string cell custering. SYNOPSIS
Data Structures struct thcell_t Thai char cell representation. Functions void th_init_cell (struct thcell_t *cell) Initialize a Thai cell. size_t th_next_cell (const thchar_t *s, size_t len, struct thcell_t *cell, int is_decomp_am) Get first cell from string. size_t th_prev_cell (const thchar_t *s, size_t pos, struct thcell_t *cell, int is_decomp_am) Get previous cell from string. size_t th_make_cells (const thchar_t *s, size_t len, struct thcell_t cells[], size_t *ncells, int is_decomp_am) Tokenize string into cells. Detailed Description Thai string cell custering. Function Documentation void th_init_cell (struct thcell_t *cell) Initialize a Thai cell. Parameters: cell : pointer to the cell to initialize Initializes values in the Thai cell struct. size_t th_make_cells (const thchar_t *s, size_tlen, struct thcell_tcells[], size_t *ncells, intis_decomp_am) Tokenize string into cells. Parameters: s : the string len : the length of string cells : the array of output cells buffer ncells : the address of integer storing the number of cells provided by the buffer, and to keep the number of resulting cells on return is_decomp_am : whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells Returns: total characters consumed Tokenizes the string bounded by s and len into cells, and stores at most *ncells resulting cells in the cells buffer. On return, *ncells is also set to the total cells stored in cells[]. size_t th_next_cell (const thchar_t *s, size_tlen, struct thcell_t *cell, intis_decomp_am) Get first cell from string. Parameters: s : the string len : the length of string cell : the output buffer is_decomp_am : whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells Returns: total chars consumed by the cell Gets first cell from the string bounded by s and len, and, if cell is not null, stores the cell data in it. size_t th_prev_cell (const thchar_t *s, size_tpos, struct thcell_t *cell, intis_decomp_am) Get previous cell from string. Parameters: s : the string pos : the position in string to get cell previous to cell : the output buffer is_decomp_am : whether SARA AM is to be decomposed into NIKHANIT and SARA AA and to be in separate cells Returns: total chars consumed by the cell Gets last cell from the string bounded by s and pos, and if cell is not null, stores the cell data in it. Author Generated automatically by Doxygen for libthai from the source code. Version 0.1.14 Tue Jun 17 2014 thai/thcell.h(3)
Man Page