yw_string_assign_utf32

Name

yw_string_assign_utf32 -- assign UTF32 string

Synopsis


     #include <yw/string.h>
   

int yw_string_assign_utf32(YwString *s, const uint32_t *chars, int len);

DESCRIPTION

This function initializes *s to contain UTF32 encoded string passed in chars parameter, of length (in characters, not bytes) len. chars can be NULL if len is 0. If len is -1 then length of chars parameter is determined based on 0 terminator. String is encoded in host endian, 32 bit UNICODE, which is also internal representation used by YwString datatype.

RETURN VALUE

This function always returns 0.

SEE ALSO

yw_string_assign_cstring (3),

INFO

Generated from: string.c,v 1.6 2001/05/23 08:46:01 malekith Exp.