Main Page | Modules | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

wctoutf16.c File Reference

#include "unicode.h"

Functions

int unicode_wctoutf16 (uint16_t *s, wchar_t wc, size_t size)
 Wide character to UTF-16.

Function Documentation

int unicode_wctoutf16 uint16_t s,
wchar_t  wc,
size_t  size
 

Wide character to UTF-16.

Parameters:
s where to store the converted UTF-16 character;
wc the wide character to convert;
size max number of uint16_t units to store in s;
Return values:
>0 the length in uint16_t units of the converted UTF-16 character, stored in s;
-EINVAL invalid wide character (don't know how to convert it to UTF-16);
-ENAMETOOLONG size too small to store the UTF-16 character.


Generated on Fri Feb 24 14:13:22 2006 for VDK Blacksheep by  doxygen 1.4.1