utf8.c File Reference


Detailed Description

utf8 string handling.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Tue Apr 21 15:32:02 1998 pessi

#include "config.h"
#include <sofia-sip/utf8.h>
#include "utf8internal.h"
#include <assert.h>

Include dependency graph for utf8.c:

Functions

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


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