---
name: "thinp.h"
section: "3"
platform: "linux"
package: "libthai-dev"
version: "0.1.6-1+etch1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/thinp.h"
---

# thinp.h(3)

## NAME

thai/thinp.h -

## Detailed Description

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.*

## 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\_t c1, thchar\_t c2, thstrict\_t s)

*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\_t context, thchar\_t c, 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.*
