mblen.3 (128032) | mblen.3 (128102) |
---|---|
1.\" Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. 2.\" Copyright (c) 1993 3.\" The Regents of the University of California. All rights reserved. 4.\" 5.\" This code is derived from software contributed to Berkeley by 6.\" Donn Seeley of BSDI. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" From @(#)multibyte.3 8.1 (Berkeley) 6/4/93 37.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp | 1.\" Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. 2.\" Copyright (c) 1993 3.\" The Regents of the University of California. All rights reserved. 4.\" 5.\" This code is derived from software contributed to Berkeley by 6.\" Donn Seeley of BSDI. 7.\" 8.\" Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" SUCH DAMAGE. 35.\" 36.\" From @(#)multibyte.3 8.1 (Berkeley) 6/4/93 37.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp |
38.\" $FreeBSD: head/lib/libc/locale/mblen.3 128032 2004-04-08 09:59:02Z tjr $ | 38.\" $FreeBSD: head/lib/libc/locale/mblen.3 128102 2004-04-11 05:19:19Z tjr $ |
39.\" | 39.\" |
40.Dd April 7, 2004 | 40.Dd April 11, 2004 |
41.Dt MBLEN 3 42.Os 43.Sh NAME 44.Nm mblen 45.Nd get number of bytes in a character 46.Sh LIBRARY 47.Lb libc 48.Sh SYNOPSIS --- 25 unchanged lines hidden (view full) --- 74.Fn mblen 75function returns nonzero if shift states are supported, 76zero otherwise. 77.Pp 78Otherwise, if 79.Fa mbchar 80is not a null pointer, 81.Fn mblen | 41.Dt MBLEN 3 42.Os 43.Sh NAME 44.Nm mblen 45.Nd get number of bytes in a character 46.Sh LIBRARY 47.Lb libc 48.Sh SYNOPSIS --- 25 unchanged lines hidden (view full) --- 74.Fn mblen 75function returns nonzero if shift states are supported, 76zero otherwise. 77.Pp 78Otherwise, if 79.Fa mbchar 80is not a null pointer, 81.Fn mblen |
82returns the number of bytes processed in | 82either returns 0 if 83.Fa mbchar 84represents the null wide character, or returns 85the number of bytes processed in |
83.Fa mbchar , | 86.Fa mbchar , |
84or \-1 if no multibyte character | 87or returns \-1 if no multibyte character |
85could be recognized or converted. 86In this case, 87.Fn mblen Ns No 's 88internal conversion state is undefined. 89.Sh ERRORS 90The 91.Fn mblen 92function will fail if: --- 15 unchanged lines hidden --- | 88could be recognized or converted. 89In this case, 90.Fn mblen Ns No 's 91internal conversion state is undefined. 92.Sh ERRORS 93The 94.Fn mblen 95function will fail if: --- 15 unchanged lines hidden --- |