sofia-sip/utf8.h File Reference


Detailed Description

Encoding/Decoding Functions for UCS Transformation Format UTF-8.

UTF-8 encoding codes the ISO 10646 (Unicode, UCS2 and UCS4) characters as variable length (1 - 6 bytes) strings of 8-bit characters.

Author:
Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
Date:
Created: Tue Apr 21 15:32:38 1998 pessi
See also:
RFC 2279, "UTF-8, a transformation format of ISO 10646", F. Yergeau. January 1998.

#include <sofia-sip/su_types.h>

Include dependency graph for utf8.h:

Go to the source code of this file.

Functions

SOFIAPUBFUN size_t utf8_width (const utf8 *)
 Width of an UTF8 character cell (1, 2 or 4 bytes).
SOFIAPUBFUN size_t ucs18decode (char *dst, size_t dst_size, const utf8 *s)
 Convert UTF8 string s to ISO-Latin-1 string dst.
SOFIAPUBFUN size_t ucs1encode (utf8 *dst, const ucs1 *s, size_t n, const char quote[128])
 Convert ISO-Latin-1 string s to UTF8 string in dst.
SOFIAPUBFUN size_t ucs1declen (const utf8 *s)
 Calculate number of characters in UTF8 string s.
SOFIAPUBFUN size_t ucs1enclen (const ucs1 *s, size_t n, const char quote[128])
 Calculate length of UTF8 encoding of string s.

Variables

SOFIA_BEGIN_DECLS typedef
unsigned char 
utf8
 Defined when <sofia-sip/utf8.h> has been included.


Sofia-SIP 1.12.1 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.