multibyte.3 (102767) | multibyte.3 (103012) |
---|---|
1.\" Copyright (c) 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Donn Seeley of BSDI. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)multibyte.3 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Donn Seeley of BSDI. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)multibyte.3 8.1 (Berkeley) 6/4/93 |
36.\" $FreeBSD: head/lib/libc/locale/multibyte.3 102767 2002-09-01 07:21:58Z tjr $ | 36.\" $FreeBSD: head/lib/libc/locale/multibyte.3 103012 2002-09-06 11:24:06Z tjr $ |
37.\" 38.Dd June 4, 1993 39.Dt MULTIBYTE 3 40.Os 41.Sh NAME 42.Nm mblen , 43.Nm mbstowcs , 44.Nm mbtowc , 45.Nm wcstombs , 46.Nm wctomb 47.Nd multibyte character support for C 48.Sh LIBRARY 49.Lb libc 50.Sh SYNOPSIS 51.In stdlib.h 52.Ft int 53.Fn mblen "const char *mbchar" "size_t nbytes" 54.Ft size_t | 37.\" 38.Dd June 4, 1993 39.Dt MULTIBYTE 3 40.Os 41.Sh NAME 42.Nm mblen , 43.Nm mbstowcs , 44.Nm mbtowc , 45.Nm wcstombs , 46.Nm wctomb 47.Nd multibyte character support for C 48.Sh LIBRARY 49.Lb libc 50.Sh SYNOPSIS 51.In stdlib.h 52.Ft int 53.Fn mblen "const char *mbchar" "size_t nbytes" 54.Ft size_t |
55.Fn mbstowcs "wchar_t *restrict wcstring" "const char *restrict mbstring" "size_t nwchars" | 55.Fn mbstowcs "wchar_t * restrict wcstring" "const char * restrict mbstring" "size_t nwchars" |
56.Ft int | 56.Ft int |
57.Fn mbtowc "wchar_t *restrict wcharp" "const char *restrict mbchar" "size_t nbytes" | 57.Fn mbtowc "wchar_t * restrict wcharp" "const char * restrict mbchar" "size_t nbytes" |
58.Ft size_t | 58.Ft size_t |
59.Fn wcstombs "char *restrict mbstring" "const wchar_t *restrict wcstring" "size_t nbytes" | 59.Fn wcstombs "char * restrict mbstring" "const wchar_t * restrict wcstring" "size_t nbytes" |
60.Ft int 61.Fn wctomb "char *mbchar" "wchar_t wchar" 62.Sh DESCRIPTION 63The basic elements of some written natural languages such as Chinese 64cannot be represented uniquely with single C 65.Va char Ns s . 66The C standard supports two different ways of dealing with 67extended natural language encodings, --- 179 unchanged lines hidden --- | 60.Ft int 61.Fn wctomb "char *mbchar" "wchar_t wchar" 62.Sh DESCRIPTION 63The basic elements of some written natural languages such as Chinese 64cannot be represented uniquely with single C 65.Va char Ns s . 66The C standard supports two different ways of dealing with 67extended natural language encodings, --- 179 unchanged lines hidden --- |