---
name: "thstr.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/thstr.h"
---

# thstr.h(3)

## NAME

thai/thstr.h -

## Detailed Description

Thai string manipulators.

## SYNOPSIS

### Functions

size\_t **th\_normalize** (**thchar\_t** dest\[\], const **thchar\_t** \*src, size\_t n)\
 *Normalize character order and remove excessive characters.*

## Function Documentation

### size\_t th\_normalize (thchar\_t dest\[\], const thchar\_t \* src, size\_t n)

Normalize character order and remove excessive characters.

**Parameters:**

*dest* : the destination string buffer \
 *src* : the string to normalize \
 *n* : the size of *dest* buffer

**Returns:**

total bytes written to *dest*, excluding the terminating '\\0'.

Corrects combining character order and remove excessive characters. At most *n* characters are put in *dest*.

## Author

Generated automatically by Doxygen for libthai from the source code.
