libthai: thai/thwstr.h File Reference

# thai/thwstr.h File Reference

Thai wide-char string manipulators. More...

## Functions
size_t | th_wnormalize (thwchar_t dest[], const thwchar_t *src, size_t n)
| Normalize character order and remove excessive characters.

## Detailed Description

Thai wide-char string manipulators.

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