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

# thwstr.h(3)

## NAME

thai/thwstr.h -

## Detailed Description

Thai wide-char string manipulators.

## SYNOPSIS

### Functions

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

## Function Documentation

### size\_t th\_wnormalize (thwchar\_t dest\[\], const thwchar\_t \* src, size\_t n)

Normalize character order and remove excessive characters.

**Parameters:**

*dest* : the destination wide-char string buffer \
 *src* : the wide-char string to normalize \
 *n* : the size of *dest* buffer (as number of elements)

**Returns:**

total number of elements 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.
