diff --git a/src/lib/libc/locale/big5.5 b/src/lib/libc/locale/big5.5 deleted file mode 100644 index ce6455c..0000000 --- a/src/lib/libc/locale/big5.5 +++ /dev/null @@ -1,48 +0,0 @@ -.\" Copyright (c) 2002, 2003 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/big5.5,v 1.2 2003/11/15 02:26:04 tjr Exp $ -.Dd August 7, 2003 -.Dt BIG5 5 -.Os -.Sh NAME -.Nm big5 -.Nd "``Big Five'' encoding for Traditional Chinese text" -.Sh SYNOPSIS -.Nm ENCODING -.Qq BIG5 -.Sh DESCRIPTION -.Dq Big Five -is the de facto standard for encoding Traditional Chinese text. -Each character is represented by either one or two bytes. -Characters from the -.Tn ASCII -character set are represented as single bytes in the range 0x00 - 0x7F. -Traditional Chinese characters are represented by two bytes: -the first in the range 0xA1 - 0xFE, the second in the range -0x40 - 0xFE. -.Sh SEE ALSO -.Xr euc 5 , -.Xr gb18030 5 , -.Xr utf8 5 diff --git a/src/lib/libc/locale/btowc.3 b/src/lib/libc/locale/btowc.3 deleted file mode 100644 index da9d1e5..0000000 --- a/src/lib/libc/locale/btowc.3 +++ /dev/null @@ -1,79 +0,0 @@ -.\" Copyright (c) 2002 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/btowc.3,v 1.2 2002/11/10 11:14:58 tjr Exp $ -.\" -.Dd August 3, 2002 -.Dt BTOWC 3 -.Os -.Sh NAME -.Nm btowc , -.Nm wctob -.Nd "convert between wide and single-byte characters" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft wint_t -.Fn btowc "int c" -.Ft int -.Fn wctob "wint_t c" -.Sh DESCRIPTION -The -.Fn btowc -function converts a single-byte character into a corresponding wide character. -If the character is -.Dv EOF -or not valid in the initial shift state, -.Fn btowc -returns -.Dv WEOF . -.Pp -The -.Fn wctob -function converts a wide character into a corresponding single-byte character. -If the wide character is -.Dv WEOF -or not able to be represented as a single byte in the initial shift state, -.Fn wctob -returns -.Dv WEOF . -.Sh SEE ALSO -.Xr mbrtowc 3 , -.Xr multibyte 3 , -.Xr wcrtomb 3 -.Sh STANDARDS -The -.Fn btowc -and -.Fn wctob -functions conform to -.St -p1003.1-2001 . -.Sh HISTORY -The -.Fn btowc -and -.Fn wctob -functions first appeared in -.Fx 5.0 . diff --git a/src/lib/libc/locale/ctype.3 b/src/lib/libc/locale/ctype.3 deleted file mode 100644 index f2cb88d..0000000 --- a/src/lib/libc/locale/ctype.3 +++ /dev/null @@ -1,155 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)ctype.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/ctype.3,v 1.14 2004/03/30 08:11:57 tjr Exp $ -.\" -.Dd March 30, 2004 -.Dt CTYPE 3 -.Os -.Sh NAME -.Nm digittoint , -.Nm isalnum , -.Nm isalpha , -.Nm isascii , -.Nm isblank , -.Nm iscntrl , -.Nm isdigit , -.Nm isgraph , -.Nm ishexnumber , -.Nm isideogram , -.Nm islower , -.Nm isnumber , -.Nm isphonogram , -.Nm isprint , -.Nm ispunct , -.Nm isrune , -.Nm isspace , -.Nm isspecial , -.Nm isupper , -.Nm isxdigit , -.Nm toascii , -.Nm tolower , -.Nm toupper -.Nd character classification macros -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn digittoint "int c" -.Ft int -.Fn isalnum "int c" -.Ft int -.Fn isalpha "int c" -.Ft int -.Fn isascii "int c" -.Ft int -.Fn iscntrl "int c" -.Ft int -.Fn isdigit "int c" -.Ft int -.Fn isgraph "int c" -.Ft int -.Fn ishexnumber "int c" -.Ft int -.Fn isideogram "int c" -.Ft int -.Fn islower "int c" -.Ft int -.Fn isnumber "int c" -.Ft int -.Fn isphonogram "int c" -.Ft int -.Fn isspecial "int c" -.Ft int -.Fn isprint "int c" -.Ft int -.Fn ispunct "int c" -.Ft int -.Fn isrune "int c" -.Ft int -.Fn isspace "int c" -.Ft int -.Fn isupper "int c" -.Ft int -.Fn isxdigit "int c" -.Ft int -.Fn toascii "int c" -.Ft int -.Fn tolower "int c" -.Ft int -.Fn toupper "int c" -.Sh DESCRIPTION -The above functions perform character tests and conversions on the integer -.Fa c . -They are available as macros, defined in the include file -.In ctype.h , -or as true functions in the C library. -See the specific manual pages for more information. -.Sh SEE ALSO -.Xr digittoint 3 , -.Xr isalnum 3 , -.Xr isalpha 3 , -.Xr isascii 3 , -.Xr isblank 3 , -.Xr iscntrl 3 , -.Xr isdigit 3 , -.Xr isgraph 3 , -.Xr isideogram 3 , -.Xr islower 3 , -.Xr isrune 3 , -.Xr isphonogram 3 , -.Xr isprint 3 , -.Xr ispunct 3 , -.Xr isspace 3 , -.Xr isspecial 3 , -.Xr isupper 3 , -.Xr isxdigit 3 , -.Xr toascii 3 , -.Xr tolower 3 , -.Xr toupper 3 , -.Xr wctype 3 , -.Xr ascii 7 -.Sh STANDARDS -These functions, except for -.Fn digittoint , -.Fn isascii , -.Fn ishexnumber , -.Fn isideogram , -.Fn isnumber , -.Fn isphonogram , -.Fn isrune , -.Fn isspecial -and -.Fn toascii , -conform to -.St -isoC . diff --git a/src/lib/libc/locale/digittoint.3 b/src/lib/libc/locale/digittoint.3 deleted file mode 100644 index 9f49a46..0000000 --- a/src/lib/libc/locale/digittoint.3 +++ /dev/null @@ -1,63 +0,0 @@ -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)digittoint.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/digittoint.3,v 1.3 2004/03/30 07:19:35 tjr Exp $ -.\" -.Dd April 6, 2001 -.Dt DIGITTOINT 3 -.Os -.Sh NAME -.Nm digittoint -.Nd convert a numeric character to its integer value -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn digittoint "int c" -.Sh DESCRIPTION -The -.Fn digittoint -function converts a numeric character to its corresponding integer value. -The character can be any decimal digit or hexadecimal digit. -With hexadecimal characters, the case of the values does not matter. -.Sh RETURN VALUES -The -.Fn digittoint -function always returns an integer from the range of 0 to 15. -If the given character was not a digit as defined by -.Xr isxdigit 3 , -the function will return 0. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr isdigit 3 , -.Xr isxdigit 3 diff --git a/src/lib/libc/locale/euc.5 b/src/lib/libc/locale/euc.5 deleted file mode 100644 index 27934f9..0000000 --- a/src/lib/libc/locale/euc.5 +++ /dev/null @@ -1,137 +0,0 @@ -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Paul Borman at Krystal Technologies. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)euc.4 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/euc.5,v 1.11 2003/11/15 01:54:46 tjr Exp $ -.\" -.Dd November 8, 2003 -.Dt EUC 5 -.Os -.Sh NAME -.Nm euc -.Nd EUC encoding of wide characters -.Sh SYNOPSIS -.Nm ENCODING -.Qq EUC -.Pp -.Nm VARIABLE -.Ar len1 -.Ar mask1 -.Ar len2 -.Ar mask2 -.Ar len3 -.Ar mask3 -.Ar len4 -.Ar mask4 -.Ar mask -.Sh DESCRIPTION -.\"The -.\".Nm EUC -.\"encoding is provided for compatibility with -.\".Ux -.\"based systems. -.\"See -.\".Xr mklocale 1 -.\"for a complete description of the -.\".Ev LC_CTYPE -.\"source file format. -.\".Pp -.Nm EUC -implements a system of 4 multibyte codesets. -A multibyte character in the first codeset consists of -.Ar len1 -bytes starting with a byte in the range of 0x00 to 0x7f. -To allow use of ASCII, -.Ar len1 -is always 1. -A multibyte character in the second codeset consists of -.Ar len2 -bytes starting with a byte in the range of 0x80-0xff excluding 0x8e and 0x8f. -A multibyte character in the third codeset consists of -.Ar len3 -bytes starting with the byte 0x8e. -A multibyte character in the fourth codeset consists of -.Ar len4 -bytes starting with the byte 0x8f. -.Pp -The -.Va wchar_t -encoding of -.Nm EUC -multibyte characters is dependent on the -.Ar len -and -.Ar mask -arguments. -First, the bytes are moved into a -.Va wchar_t -as follows: -.Bd -literal -byte0 << ((\fIlen\fPN-1) * 8) | byte1 << ((\fIlen\fPN-2) * 8) | ... | byte\fIlen\fPN-1 -.Ed -.Pp -The result is then ANDed with -.Ar ~mask -and ORed with -.Ar maskN . -Codesets 2 and 3 are special in that the leading byte (0x8e or 0x8f) is -first removed and the -.Ar lenN -argument is reduced by 1. -.Pp -For example, the -.Li ja_JP.eucJP -locale has the following -.Ev VARIABLE -line: -.Bd -literal -VARIABLE 1 0x0000 2 0x8080 2 0x0080 3 0x8000 0x8080 -.Ed -.Pp -Codeset 1 consists of the values 0x0000 - 0x007f. -.Pp -Codeset 2 consists of the values who have the bits 0x8080 set. -.Pp -Codeset 3 consists of the values 0x0080 - 0x00ff. -.Pp -Codeset 4 consists of the values 0x8000 - 0xff7f excluding the values -which have the 0x0080 bit set. -.Pp -Notice that the global -.Ar mask -is set to 0x8080, this implies that from those 2 bits the codeset can -be determined. -.Sh "SEE ALSO" -.Xr mklocale 1 , -.Xr setlocale 3 diff --git a/src/lib/libc/locale/gb18030.5 b/src/lib/libc/locale/gb18030.5 deleted file mode 100644 index 2c98742..0000000 --- a/src/lib/libc/locale/gb18030.5 +++ /dev/null @@ -1,78 +0,0 @@ -.\" Copyright (c) 2002, 2003 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/gb18030.5,v 1.5 2003/11/15 02:26:04 tjr Exp $ -.Dd August 10, 2003 -.Dt GB18030 5 -.Os -.Sh NAME -.Nm gb18030 -.Nd "GB 18030 encoding method for Chinese text" -.Sh SYNOPSIS -.Nm ENCODING -.Qq GB18030 -.Sh DESCRIPTION -The -.Nm GB18030 -encoding implements GB 18030-2000, a PRC national standard for the encoding of -Chinese characters. -It is a superset of the older GB\ 2312-1980 and GBK encodings, -and incorporates Unicode's Unihan Extension A completely. -It also provides code space for all Unicode 3.0 code points. -.Pp -Multibyte characters in the -.Nm GB18030 -encoding can be one byte, two bytes, or -four bytes long. -There are a total of over 1.5 million code positions. -.Pp -.No GB\ 11383-1981 ( Ns -.Tn ASCII ) -characters are represented by single bytes in the range 0x00 to 0x7F. -.Pp -Chinese characters are represented as either two bytes or four bytes. -Characters that are represented by two bytes begin with a byte in the range -0x81-0xFE and end with a byte either in the range 0x40-0x7E or 0x80-0xFE. -.Pp -Characters that are represented by four bytes begin with a byte in the range -0x81-0xFE, have a second byte in the range 0x30-0x39, a third byte in the range -0x81-0xFE and a fourth byte in the range 0x30-0x39. -.Sh SEE ALSO -.Xr euc 5 , -.Xr gb2312 5 , -.Xr gbk 5 , -.Xr utf8 5 -.Rs -.%T "Chinese National Standard GB 18030-2000: Information Technology -- Chinese ideograms coded character set for information interchange -- Extension for the basic set" -.%D "March 2000" -.Re -.Rs -.%Q "The Unicode Consortium" -.%T "The Unicode Standard, Version 3.0" -.%D "2000" -.Re -.Sh STANDARDS -The -.Nm GB18030 -encoding is believed to be compatible with GB 18030-2000. diff --git a/src/lib/libc/locale/gb2312.5 b/src/lib/libc/locale/gb2312.5 deleted file mode 100644 index 1b808e0..0000000 --- a/src/lib/libc/locale/gb2312.5 +++ /dev/null @@ -1,57 +0,0 @@ -.\" Copyright (c) 2003 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/gb2312.5,v 1.2 2003/11/15 02:26:04 tjr Exp $ -.Dd November 7, 2003 -.Dt GB2312 5 -.Os -.Sh NAME -.Nm gb2312 -.Nd "GB2312 encoding method for Chinese text" -.Sh SYNOPSIS -.Nm ENCODING -.Qq GB2312 -.Sh DESCRIPTION -The -.Nm GB2312 -encoding implements GB\ 2312-1980, a PRC national standard -for the encoding of simplified Chinese characters. -.Pp -Multibyte characters in the GB2312 -encoding can be one byte or two bytes long. -.No GB\ 11383-1981 ( Ns -.Tn ASCII ) -characters are represented by single bytes in the range 0x00 to 0x7F. -Simplified Chinese characters are represented by two bytes, both in -the range 0xA1-0xFE. -.Sh SEE ALSO -.Xr euc 5 , -.Xr gb18030 5 , -.Xr gbk 5 -.Sh STANDARDS -The -.Nm GB2312 -encoding is believed to be compatible with GB\ 2312-1980. -This standard has been superceded by GB\ 18030-2000, but is still -in wide use. diff --git a/src/lib/libc/locale/gbk.5 b/src/lib/libc/locale/gbk.5 deleted file mode 100644 index 1f6d2e0..0000000 --- a/src/lib/libc/locale/gbk.5 +++ /dev/null @@ -1,63 +0,0 @@ -.\" Copyright (c) 2003 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/gbk.5,v 1.3 2003/11/15 02:26:04 tjr Exp $ -.Dd August 10, 2003 -.Dt GBK 5 -.Os -.Sh NAME -.Nm gbk -.Nd "Guojia biaozhun kuozhan (GBK) encoding method for Chinese text" -.Sh SYNOPSIS -.Nm ENCODING -.Qq GBK -.Sh DESCRIPTION -GBK is a backwards-compatible extension of the GB\ 2312-1980 encoding -method for Chinese text, which adds the characters defined in the -Unified Han portion of the Unicode 2.1 standard. -.Pp -Multibyte characters in the GBK -encoding can be one byte or two bytes long. -.No GB\ 11383-1981 ( Ns -.Tn ASCII ) -characters are represented by single bytes in the range 0x00 to 0x7F. -Chinese characters are represented by two bytes, beginning with a byte in -the range 0x80-0xFE and ending with a byte in the range 0x40-0xFE. -.Sh SEE ALSO -.Xr euc 5 , -.Xr gb18030 5 , -.Xr gb2312 5 , -.Xr utf8 5 -.Rs -.%Q "The Unicode Consortium" -.%T "The Unicode Standard, Version 2.1" -.%D "1999" -.Re -.Rs -.%T "Chinese National Standard GB 18030-2000: Information Technology -- Chinese ideograms coded character set for information interchange -- Extension for the basic set" -.%D "March 2000" -.Re -.Sh STANDARDS -GBK is not a standard, but has been superceded by -GB\ 18030-2000. diff --git a/src/lib/libc/locale/isalnum.3 b/src/lib/libc/locale/isalnum.3 deleted file mode 100644 index 8b998fa..0000000 --- a/src/lib/libc/locale/isalnum.3 +++ /dev/null @@ -1,113 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isalnum.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/isalnum.3,v 1.17 2002/10/06 10:15:38 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt ISALNUM 3 -.Os -.Sh NAME -.Nm isalnum -.Nd alphanumeric character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isalnum "int c" -.Sh DESCRIPTION -The -.Fn isalnum -function tests for any character for which -.Xr isalpha 3 -or -.Xr isdigit 3 -is true. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -In the ASCII character set, this includes the following characters -(with their numeric values shown in octal): -.Pp -.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ -.It "\&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4''" -.It "\&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9''" -.It "\&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E''" -.It "\&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J''" -.It "\&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O''" -.It "\&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T''" -.It "\&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y''" -.It "\&132\ ``Z'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d''" -.It "\&145\ ``e'' \t146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i''" -.It "\&152\ ``j'' \t153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n''" -.It "\&157\ ``o'' \t160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s''" -.It "\&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x''" -.It "\&171\ ``y'' \t172\ ``z''" -.El -.Sh RETURN VALUES -The -.Fn isalnum -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn isalnum -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswalnum -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr isalpha 3 , -.Xr isdigit 3 , -.Xr iswalnum 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn isalnum -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/isalpha.3 b/src/lib/libc/locale/isalpha.3 deleted file mode 100644 index 283348e..0000000 --- a/src/lib/libc/locale/isalpha.3 +++ /dev/null @@ -1,111 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isalpha.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/isalpha.3,v 1.16 2002/10/06 10:15:38 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt ISALPHA 3 -.Os -.Sh NAME -.Nm isalpha -.Nd alphabetic character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isalpha "int c" -.Sh DESCRIPTION -The -.Fn isalpha -function tests for any character for which -.Xr isupper 3 -or -.Xr islower 3 -is true. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -In the ASCII character set, this includes the following characters -(with their numeric values shown in octal): -.Pp -.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ -.It "\&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E''" -.It "\&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J''" -.It "\&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O''" -.It "\&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T''" -.It "\&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y''" -.It "\&132\ ``Z'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d''" -.It "\&145\ ``e'' \t146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i''" -.It "\&152\ ``j'' \t153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n''" -.It "\&157\ ``o'' \t160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s''" -.It "\&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x''" -.It "\&171\ ``y'' \t172\ ``z''" -.El -.Sh RETURN VALUES -The -.Fn isalpha -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn isalpha -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswalpha -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr islower 3 , -.Xr isupper 3 , -.Xr iswalpha 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn isalpha -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/isascii.3 b/src/lib/libc/locale/isascii.3 deleted file mode 100644 index b930401..0000000 --- a/src/lib/libc/locale/isascii.3 +++ /dev/null @@ -1,57 +0,0 @@ -.\" Copyright (c) 1989, 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isascii.3 8.2 (Berkeley) 12/11/93 -.\" $FreeBSD: src/lib/libc/locale/isascii.3,v 1.13 2002/10/06 10:15:38 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt ISASCII 3 -.Os -.Sh NAME -.Nm isascii -.Nd test for ASCII character -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isascii "int c" -.Sh DESCRIPTION -The -.Fn isascii -function tests for an -.Tn ASCII -character, which is any character -between 0 and octal 0177 inclusive. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswascii 3 , -.Xr ascii 7 diff --git a/src/lib/libc/locale/isblank.3 b/src/lib/libc/locale/isblank.3 deleted file mode 100644 index f0a09f0..0000000 --- a/src/lib/libc/locale/isblank.3 +++ /dev/null @@ -1,95 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isblank.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/isblank.3,v 1.17 2002/12/18 12:45:08 ru Exp $ -.\" -.Dd October 6, 2002 -.Dt ISBLANK 3 -.Os -.Sh NAME -.Nm isblank -.Nd space or tab character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isblank "int c" -.Sh DESCRIPTION -The -.Fn isblank -function tests for a space or tab character. -For any locale, this includes the following standard characters: -.Pp -.Bl -column \&`\et''___ \&``\et''___ -.It "\&``\et''\t`` ''" -.El -.Pp -In the "C" locale -.Fn isblank -successful test is limited to this characters only. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -.Sh COMPATIBILITY -Although -.Fn isblank -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswblank -function should be used instead for maximum portability. -.Sh RETURN VALUES -The -.Fn isblank -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswblank 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn isblank -function -conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/iscntrl.3 b/src/lib/libc/locale/iscntrl.3 deleted file mode 100644 index 6024c0e..0000000 --- a/src/lib/libc/locale/iscntrl.3 +++ /dev/null @@ -1,101 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)iscntrl.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/iscntrl.3,v 1.15 2002/12/05 08:50:00 ru Exp $ -.\" -.Dd October 6, 2002 -.Dt ISCNTRL 3 -.Os -.Sh NAME -.Nm iscntrl -.Nd control character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn iscntrl "int c" -.Sh DESCRIPTION -The -.Fn iscntrl -function tests for any control character. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -In the ASCII character set, this includes the following characters -(with their numeric values shown in octal): -.Pp -.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ -.It "\&000\ NUL \t001\ SOH \t002\ STX \t003\ ETX \t004\ EOT" -.It "\&005\ ENQ \t006\ ACK \t007\ BEL \t010\ BS \t011\ HT" -.It "\&012\ NL \t013\ VT \t014\ NP \t015\ CR \t016\ SO" -.It "\&017\ SI \t020\ DLE \t021\ DC1 \t022\ DC2 \t023\ DC3" -.It "\&024\ DC4 \t025\ NAK \t026\ SYN \t027\ ETB \t030\ CAN" -.It "\&031\ EM \t032\ SUB \t033\ ESC \t034\ FS \t035\ GS" -.It "\&036\ RS \t037\ US \t177\ DEL" -.El -.Sh RETURN VALUES -The -.Fn iscntrl -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn iscntrl -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iwcntrl -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswcntrl 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn iscntrl -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/isdigit.3 b/src/lib/libc/locale/isdigit.3 deleted file mode 100644 index 3fa3699..0000000 --- a/src/lib/libc/locale/isdigit.3 +++ /dev/null @@ -1,112 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isdigit.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/isdigit.3,v 1.17 2004/03/30 07:02:04 tjr Exp $ -.\" -.Dd March 30, 2004 -.Dt ISDIGIT 3 -.Os -.Sh NAME -.Nm isdigit, isnumber -.Nd decimal-digit character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isdigit "int c" -.Ft int -.Fn isnumber "int c" -.Sh DESCRIPTION -The -.Fn isdigit -function tests for a decimal digit character. -Regardless of locale, this includes the following characters only: -.Pp -.Bl -column \&``0''______ \&``0''______ \&``0''______ \&``0''______ \&``0''______ -.It "\&``0''\t``1''\t``2''\t``3''\t``4''" -.It "\&``5''\t``6''\t``7''\t``8''\t``9''" -.El -.Pp -The -.Fn isnumber -function behaves similarly to -.Fn isdigit , -but may recognize additional characters, depending on the current locale -setting. -.Pp -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -.Sh RETURN VALUES -The -.Fn isdigit -and -.Fn isnumber -functions return zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn isdigit -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswdigit -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswdigit 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn isdigit -function conforms to -.St -isoC . -.Sh HISTORY -The -.Fn isnumber -function appeared in -.Bx 4.4 . diff --git a/src/lib/libc/locale/isgraph.3 b/src/lib/libc/locale/isgraph.3 deleted file mode 100644 index 6975930..0000000 --- a/src/lib/libc/locale/isgraph.3 +++ /dev/null @@ -1,116 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isgraph.3 8.2 (Berkeley) 12/11/93 -.\" $FreeBSD: src/lib/libc/locale/isgraph.3,v 1.17 2002/10/06 10:15:38 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt ISGRAPH 3 -.Os -.Sh NAME -.Nm isgraph -.Nd printing character test (space character exclusive) -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isgraph "int c" -.Sh DESCRIPTION -The -.Fn isgraph -function tests for any printing character except space -.Pq Ql "\ " -and other -locale specific space-like characters. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -In the ASCII character set, this includes the following characters -(with their numeric values shown in octal): -.Pp -.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ -.It "\&041\ ``!'' \t042\ ``""'' \t043\ ``#'' \t044\ ``$'' \t045\ ``%''" -.It "\&046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' \t052\ ``*''" -.It "\&053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.'' \t057\ ``/''" -.It "\&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4''" -.It "\&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9''" -.It "\&072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``='' \t076\ ``>''" -.It "\&077\ ``?'' \t100\ ``@'' \t101\ ``A'' \t102\ ``B'' \t103\ ``C''" -.It "\&104\ ``D'' \t105\ ``E'' \t106\ ``F'' \t107\ ``G'' \t110\ ``H''" -.It "\&111\ ``I'' \t112\ ``J'' \t113\ ``K'' \t114\ ``L'' \t115\ ``M''" -.It "\&116\ ``N'' \t117\ ``O'' \t120\ ``P'' \t121\ ``Q'' \t122\ ``R''" -.It "\&123\ ``S'' \t124\ ``T'' \t125\ ``U'' \t126\ ``V'' \t127\ ``W''" -.It "\&130\ ``X'' \t131\ ``Y'' \t132\ ``Z'' \t133\ ``['' \t134\ ``\e\|''" -.It "\&135\ ``]'' \t136\ ``^'' \t137\ ``_'' \t140\ ```'' \t141\ ``a''" -.It "\&142\ ``b'' \t143\ ``c'' \t144\ ``d'' \t145\ ``e'' \t146\ ``f''" -.It "\&147\ ``g'' \t150\ ``h'' \t151\ ``i'' \t152\ ``j'' \t153\ ``k''" -.It "\&154\ ``l'' \t155\ ``m'' \t156\ ``n'' \t157\ ``o'' \t160\ ``p''" -.It "\&161\ ``q'' \t162\ ``r'' \t163\ ``s'' \t164\ ``t'' \t165\ ``u''" -.It "\&166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y'' \t172\ ``z''" -.It "\&173\ ``{'' \t174\ ``|'' \t175\ ``}'' \t176\ ``~''" -.El -.Sh RETURN VALUES -The -.Fn isgraph -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn isgraph -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswgraph -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswgraph 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn isgraph -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/isideogram.3 b/src/lib/libc/locale/isideogram.3 deleted file mode 100644 index 3472d59..0000000 --- a/src/lib/libc/locale/isideogram.3 +++ /dev/null @@ -1,57 +0,0 @@ -.\" -.\" Copyright (c) 2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/isideogram.3,v 1.1 2004/03/30 07:23:54 tjr Exp $ -.\" -.Dd March 30, 2004 -.Dt ISIDEOGRAM 3 -.Os -.Sh NAME -.Nm isideogram -.Nd ideographic character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isideogram "int c" -.Sh DESCRIPTION -The -.Fn isideogram -function tests for an ideographic character. -.Sh RETURN VALUES -The -.Fn isideogram -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr isphonogram 3 , -.Xr iswideogram 3 , -.Sh HISTORY -The -.Fn isideogram -function appeared in -.Bx 4.4 . diff --git a/src/lib/libc/locale/islower.3 b/src/lib/libc/locale/islower.3 deleted file mode 100644 index 7fb642c..0000000 --- a/src/lib/libc/locale/islower.3 +++ /dev/null @@ -1,101 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)islower.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/islower.3,v 1.15 2002/10/06 10:15:38 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt ISLOWER 3 -.Os -.Sh NAME -.Nm islower -.Nd lower-case character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn islower "int c" -.Sh DESCRIPTION -The -.Fn islower -function tests for any lower-case letters. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -In the ASCII character set, this includes the following characters -(with their numeric values shown in octal): -.Pp -.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ -.It "\&141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' \t145\ ``e''" -.It "\&146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' \t152\ ``j''" -.It "\&153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' \t157\ ``o''" -.It "\&160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' \t164\ ``t''" -.It "\&165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y''" -.It "\&172\ ``z''" -.El -.Sh RETURN VALUES -The -.Fn islower -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn islower -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswlower -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswlower 3 , -.Xr multibyte 3 , -.Xr tolower 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn islower -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/isphonogram.3 b/src/lib/libc/locale/isphonogram.3 deleted file mode 100644 index 66bd006..0000000 --- a/src/lib/libc/locale/isphonogram.3 +++ /dev/null @@ -1,57 +0,0 @@ -.\" -.\" Copyright (c) 2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/isphonogram.3,v 1.1 2004/03/30 07:23:54 tjr Exp $ -.\" -.Dd March 30, 2004 -.Dt ISPHONOGRAM 3 -.Os -.Sh NAME -.Nm isphonogram -.Nd phonographic character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isphonogram "int c" -.Sh DESCRIPTION -The -.Fn isphonogram -function tests for a phonographic character. -.Sh RETURN VALUES -The -.Fn isphonogram -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr isideogram 3 , -.Xr iswphonogram 3 -.Sh HISTORY -The -.Fn isphonogram -function appeared in -.Bx 4.4 . diff --git a/src/lib/libc/locale/isprint.3 b/src/lib/libc/locale/isprint.3 deleted file mode 100644 index ed2ce3d..0000000 --- a/src/lib/libc/locale/isprint.3 +++ /dev/null @@ -1,114 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isprint.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/isprint.3,v 1.18 2002/10/06 10:15:38 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt ISPRINT 3 -.Os -.Sh NAME -.Nm isprint -.Nd printing character test (space character inclusive) -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isprint "int c" -.Sh DESCRIPTION -The -.Fn isprint -function tests for any printing character including space -.Pq Ql "\ " . -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -In the ASCII character set, this includes the following characters -(with their numeric values shown in octal): -.Pp -.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ -.It "\&040\ sp \t041\ ``!'' \t042\ ``""'' \t043\ ``#'' \t044\ ``$''" -.It "\&045\ ``%'' \t046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)''" -.It "\&052\ ``*'' \t053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.''" -.It "\&057\ ``/'' \t060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3''" -.It "\&064\ ``4'' \t065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8''" -.It "\&071\ ``9'' \t072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``=''" -.It "\&076\ ``>'' \t077\ ``?'' \t100\ ``@'' \t101\ ``A'' \t102\ ``B''" -.It "\&103\ ``C'' \t104\ ``D'' \t105\ ``E'' \t106\ ``F'' \t107\ ``G''" -.It "\&110\ ``H'' \t111\ ``I'' \t112\ ``J'' \t113\ ``K'' \t114\ ``L''" -.It "\&115\ ``M'' \t116\ ``N'' \t117\ ``O'' \t120\ ``P'' \t121\ ``Q''" -.It "\&122\ ``R'' \t123\ ``S'' \t124\ ``T'' \t125\ ``U'' \t126\ ``V''" -.It "\&127\ ``W'' \t130\ ``X'' \t131\ ``Y'' \t132\ ``Z'' \t133\ ``[''" -.It "\&134\ ``\e\|'' \t135\ ``]'' \t136\ ``^'' \t137\ ``_'' \t140\ ```''" -.It "\&141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' \t145\ ``e''" -.It "\&146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' \t152\ ``j''" -.It "\&153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' \t157\ ``o''" -.It "\&160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' \t164\ ``t''" -.It "\&165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y''" -.It "\&172\ ``z'' \t173\ ``{'' \t174\ ``|'' \t175\ ``}'' \t176\ ``~''" -.El -.Sh RETURN VALUES -The -.Fn isprint -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn isprint -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswprint -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswprint 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn isprint -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/ispunct.3 b/src/lib/libc/locale/ispunct.3 deleted file mode 100644 index 67fe6a3..0000000 --- a/src/lib/libc/locale/ispunct.3 +++ /dev/null @@ -1,106 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)ispunct.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/ispunct.3,v 1.16 2002/10/06 10:15:38 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt ISPUNCT 3 -.Os -.Sh NAME -.Nm ispunct -.Nd punctuation character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn ispunct "int c" -.Sh DESCRIPTION -The -.Fn ispunct -function tests for any printing character except for space -.Pq Ql "\ " -or a -character for which -.Xr isalnum 3 -is true. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -In the ASCII character set, this includes the following characters -(with their numeric values shown in octal): -.Pp -.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ -.It "\&041\ ``!'' \t042\ ``""'' \t043\ ``#'' \t044\ ``$'' \t045\ ``%''" -.It "\&046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' \t052\ ``*''" -.It "\&053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.'' \t057\ ``/''" -.It "\&072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``='' \t076\ ``>''" -.It "\&077\ ``?'' \t100\ ``@'' \t133\ ``['' \t134\ ``\e\|'' \t135\ ``]''" -.It "\&136\ ``^'' \t137\ ``_'' \t140\ ```'' \t173\ ``{'' \t174\ ``|''" -.It "\&175\ ``}'' \t176\ ``~''" -.El -.Sh RETURN VALUES -The -.Fn ispunct -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn ispunct -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswpunct -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswpunct 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn ispunct -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/isrune.3 b/src/lib/libc/locale/isrune.3 deleted file mode 100644 index 2b1f64f..0000000 --- a/src/lib/libc/locale/isrune.3 +++ /dev/null @@ -1,63 +0,0 @@ -.\" -.\" Copyright (c) 2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/isrune.3,v 1.1 2004/03/30 07:23:54 tjr Exp $ -.\" -.Dd March 30, 2004 -.Dt ISRUNE 3 -.Os -.Sh NAME -.Nm isrune -.Nd valid character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isrune "int c" -.Sh DESCRIPTION -The -.Fn isrune -function tests for any character that is valid in the current -character set. -In the -.Tn ASCII -character set, this is equivalent to -.Fn isascii . -.Sh RETURN VALUES -The -.Fn isrune -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr isascii 3 , -.Xr iswrune 3 , -.Xr ascii 7 -.Sh HISTORY -The -.Fn isrune -function appeared in -.Bx 4.4 . diff --git a/src/lib/libc/locale/isspace.3 b/src/lib/libc/locale/isspace.3 deleted file mode 100644 index eab4f5d..0000000 --- a/src/lib/libc/locale/isspace.3 +++ /dev/null @@ -1,98 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isspace.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/isspace.3,v 1.15 2002/10/06 10:15:38 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt ISSPACE 3 -.Os -.Sh NAME -.Nm isspace -.Nd white-space character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isspace "int c" -.Sh DESCRIPTION -The -.Fn isspace -function tests for the white-space characters. -For any locale, this includes the following standard characters: -.Pp -.Bl -column \&`\et''___ \&``\et''___ \&``\et''___ \&``\et''___ \&``\et''___ \&``\et''___ -.It "\&``\et''\t``\en''\t``\ev''\t``\ef''\t``\er''\t`` ''" -.El -.Pp -In the "C" locale -.Fn isspace -successful test is limited to this characters only. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -.Sh RETURN VALUES -The -.Fn isspace -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn isspace -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswspace -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswspace 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn isspace -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/isspecial.3 b/src/lib/libc/locale/isspecial.3 deleted file mode 100644 index 57eefc8..0000000 --- a/src/lib/libc/locale/isspecial.3 +++ /dev/null @@ -1,56 +0,0 @@ -.\" -.\" Copyright (c) 2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/isspecial.3,v 1.1 2004/03/30 07:23:54 tjr Exp $ -.\" -.Dd March 30, 2004 -.Dt ISSPECIAL 3 -.Os -.Sh NAME -.Nm isspecial -.Nd special character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isspecial "int c" -.Sh DESCRIPTION -The -.Fn isspecial -function tests for a special character. -.Sh RETURN VALUES -The -.Fn isspecial -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswspecial 3 -.Sh HISTORY -The -.Fn isspecial -function appeared in -.Bx 4.4 . diff --git a/src/lib/libc/locale/isupper.3 b/src/lib/libc/locale/isupper.3 deleted file mode 100644 index 09070df..0000000 --- a/src/lib/libc/locale/isupper.3 +++ /dev/null @@ -1,101 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isupper.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/isupper.3,v 1.16 2002/10/06 10:15:38 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt ISUPPER 3 -.Os -.Sh NAME -.Nm isupper -.Nd upper-case character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isupper "int c" -.Sh DESCRIPTION -The -.Fn isupper -function tests for any upper-case letter. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -In the ASCII character set, this includes the following characters -(with their numeric values shown in octal): -.Pp -.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ -.It "\&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E''" -.It "\&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J''" -.It "\&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O''" -.It "\&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T''" -.It "\&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y''" -.It "\&132\ ``Z''" -.El -.Sh RETURN VALUES -The -.Fn isupper -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn isupper -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn iswupper -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswupper 3 , -.Xr multibyte 3 , -.Xr toupper 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn isupper -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/iswalnum.3 b/src/lib/libc/locale/iswalnum.3 deleted file mode 100644 index 4aafb25..0000000 --- a/src/lib/libc/locale/iswalnum.3 +++ /dev/null @@ -1,162 +0,0 @@ -.\" $NetBSD: iswalnum.3,v 1.5 2002/07/10 14:46:10 yamt Exp $ -.\" -.\" Copyright (c) 1991 The Regents of the University of California. -.\" All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isalnum.3 5.2 (Berkeley) 6/29/91 -.\" $FreeBSD: src/lib/libc/locale/iswalnum.3,v 1.5 2002/11/29 17:35:09 ru Exp $ -.\" -.Dd October 3, 2002 -.Dt ISWALNUM 3 -.Os -.Sh NAME -.Nm iswalnum , -.Nm iswalpha , -.Nm iswascii , -.Nm iswblank , -.Nm iswcntrl , -.Nm iswdigit , -.Nm iswgraph , -.Nm iswhexnumber , -.Nm iswideogram , -.Nm iswlower , -.Nm iswnumber , -.Nm iswphonogram , -.Nm iswprint , -.Nm iswpunct , -.Nm iswrune , -.Nm iswspace , -.Nm iswspecial , -.Nm iswupper , -.Nm iswxdigit -.Nd wide character classification utilities -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wctype.h -.Ft int -.Fn iswalnum "wint_t wc" -.Ft int -.Fn iswalpha "wint_t wc" -.Ft int -.Fn iswascii "wint_t wc" -.Ft int -.Fn iswblank "wint_t wc" -.Ft int -.Fn iswcntrl "wint_t wc" -.Ft int -.Fn iswdigit "wint_t wc" -.Ft int -.Fn iswgraph "wint_t wc" -.Ft int -.Fn iswhexnumber "wint_t wc" -.Ft int -.Fn iswideogram "wint_t wc" -.Ft int -.Fn iswlower "wint_t wc" -.Ft int -.Fn iswnumber "wint_t wc" -.Ft int -.Fn iswphonogram "wint_t wc" -.Ft int -.Fn iswprint "wint_t wc" -.Ft int -.Fn iswpunct "wint_t wc" -.Ft int -.Fn iswrune "wint_t wc" -.Ft int -.Fn iswspace "wint_t wc" -.Ft int -.Fn iswspecial "wint_t wc" -.Ft int -.Fn iswupper "wint_t wc" -.Ft int -.Fn iswxdigit "wint_t wc" -.Sh DESCRIPTION -The above functions are character classification utility functions, -for use with wide characters -.Vt ( wchar_t -or -.Vt wint_t ) . -See the description for the similarly-named single byte classification -functions (like -.Xr isalnum 3 ) , -for details. -.Sh RETURN VALUES -The functions return zero if the character tests false and -return non-zero if the character tests true. -.Sh SEE ALSO -.Xr isalnum 3 , -.Xr isalpha 3 , -.Xr isascii 3 , -.Xr isblank 3 , -.Xr iscntrl 3 , -.Xr isdigit 3 , -.Xr isgraph 3 , -.Xr ishexnumber 3 , -.Xr isideogram 3 , -.Xr islower 3 , -.Xr isnumber 3 , -.Xr isphonogram 3 , -.Xr isprint 3 , -.Xr ispunct 3 , -.Xr isrune 3 , -.Xr isspace 3 , -.Xr isspecial 3 , -.Xr isupper 3 , -.Xr isxdigit 3 , -.Xr wctype 3 -.Sh STANDARDS -These functions conform to -.St -p1003.1-2001 , -except -.Fn iswascii , -.Fn iswhexnumber , -.Fn iswideogram , -.Fn iswnumber , -.Fn iswphonogram , -.Fn iswrune -and -.Fn iswspecial , -which are -.Fx -extensions. -.Sh CAVEATS -The result of these functions is undefined unless -the argument is -.Dv WEOF -or a valid -.Vt wchar_t -value for the current locale. diff --git a/src/lib/libc/locale/isxdigit.3 b/src/lib/libc/locale/isxdigit.3 deleted file mode 100644 index aceb097..0000000 --- a/src/lib/libc/locale/isxdigit.3 +++ /dev/null @@ -1,113 +0,0 @@ -.\" Copyright (c) 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)isxdigit.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/isxdigit.3,v 1.18 2004/06/21 19:54:56 mpp Exp $ -.\" -.Dd March 30, 2004 -.Dt ISXDIGIT 3 -.Os -.Sh NAME -.Nm isxdigit, ishexnumber -.Nd hexadecimal-digit character test -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn isxdigit "int c" -.Ft int -.Fn ishexnumber "int c" -.Sh DESCRIPTION -The -.Fn isxdigit -function tests for any hexadecimal-digit character. -Regardless of locale, this includes the following characters only: -.Pp -.Bl -column \&``0''______ \&``0''______ \&``0''______ \&``0''______ \&``0''______ -.It "\&``0''\t``1''\t``2''\t``3''\t``4''" -.It "\&``5''\t``6''\t``7''\t``8''\t``9''" -.It "\&``A''\t``B''\t``C''\t``D''\t``E''" -.It "\&``F''\t``a''\t``b''\t``c''\t``d''" -.It "\&``e''\t``f''" -.El -.Pp -The -.Fn ishexnumber -function behaves similarly to -.Fn isxdigit , -but may recognize additional characters, -depending on the current locale setting. -.Pp -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -.Sh RETURN VALUES -The -.Fn isxdigit -function returns zero if the character tests false and -returns non-zero if the character tests true. -.Sh COMPATIBILITY -Although -.Fn isxdigit -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn isxwdigit -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr iswxdigit 3 , -.Xr multibyte 3 , -.Xr ascii 7 -.Sh STANDARDS -The -.Fn isxdigit -function conforms to -.St -isoC . -.Sh HISTORY -The -.Fn ishexnumber -function appeared in -.Bx 4.4 . diff --git a/src/lib/libc/locale/localeconv.3 b/src/lib/libc/locale/localeconv.3 deleted file mode 100644 index 31ccbf0..0000000 --- a/src/lib/libc/locale/localeconv.3 +++ /dev/null @@ -1,225 +0,0 @@ -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Donn Seeley at BSDI. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" From @(#)setlocale.3 8.1 (Berkeley) 6/9/93 -.\" From FreeBSD: src/lib/libc/locale/setlocale.3,v 1.28 2003/11/15 02:26:04 tjr Exp -.\" $FreeBSD: src/lib/libc/locale/localeconv.3,v 1.1 2003/12/07 06:00:00 tjr Exp $ -.\" -.Dd November 21, 2003 -.Dt LOCALECONV 3 -.Os -.Sh NAME -.Nm localeconv -.Nd natural language formatting for C -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In locale.h -.Ft struct lconv * -.Fn localeconv "void" -.Sh DESCRIPTION -The -.Fn localeconv -function returns a pointer to a structure -which provides parameters for formatting numbers, -especially currency values: -.Bd -literal -offset indent -struct lconv { - char *decimal_point; - char *thousands_sep; - char *grouping; - char *int_curr_symbol; - char *currency_symbol; - char *mon_decimal_point; - char *mon_thousands_sep; - char *mon_grouping; - char *positive_sign; - char *negative_sign; - char int_frac_digits; - char frac_digits; - char p_cs_precedes; - char p_sep_by_space; - char n_cs_precedes; - char n_sep_by_space; - char p_sign_posn; - char n_sign_posn; - char int_p_cs_precedes; - char int_n_cs_precedes; - char int_p_sep_by_space; - char int_n_sep_by_space; - char int_p_sign_posn; - char int_n_sign_posn; -}; -.Ed -.Pp -The individual fields have the following meanings: -.Pp -.Bl -tag -width mon_decimal_point -.It Fa decimal_point -The decimal point character, except for currency values, -cannot be an empty string. -.It Fa thousands_sep -The separator between groups of digits -before the decimal point, except for currency values. -.It Fa grouping -The sizes of the groups of digits, except for currency values. -This is a pointer to a vector of integers, each of size -.Va char , -representing group size from low order digit groups -to high order (right to left). -The list may be terminated with 0 or -.Dv CHAR_MAX . -If the list is terminated with 0, -the last group size before the 0 is repeated to account for all the digits. -If the list is terminated with -.Dv CHAR_MAX , -no more grouping is performed. -.It Fa int_curr_symbol -The standardized international currency symbol. -.It Fa currency_symbol -The local currency symbol. -.It Fa mon_decimal_point -The decimal point character for currency values. -.It Fa mon_thousands_sep -The separator for digit groups in currency values. -.It Fa mon_grouping -Like -.Fa grouping -but for currency values. -.It Fa positive_sign -The character used to denote nonnegative currency values, -usually the empty string. -.It Fa negative_sign -The character used to denote negative currency values, -usually a minus sign. -.It Fa int_frac_digits -The number of digits after the decimal point -in an international-style currency value. -.It Fa frac_digits -The number of digits after the decimal point -in the local style for currency values. -.It Fa p_cs_precedes -1 if the currency symbol precedes the currency value -for nonnegative values, 0 if it follows. -.It Fa p_sep_by_space -1 if a space is inserted between the currency symbol -and the currency value for nonnegative values, 0 otherwise. -.It Fa n_cs_precedes -Like -.Fa p_cs_precedes -but for negative values. -.It Fa n_sep_by_space -Like -.Fa p_sep_by_space -but for negative values. -.It Fa p_sign_posn -The location of the -.Fa positive_sign -with respect to a nonnegative quantity and the -.Fa currency_symbol , -coded as follows: -.Bl -tag -width 3n -compact -.It Li 0 -Parentheses around the entire string. -.It Li 1 -Before the string. -.It Li 2 -After the string. -.It Li 3 -Just before -.Fa currency_symbol . -.It Li 4 -Just after -.Fa currency_symbol . -.El -.It Fa n_sign_posn -Like -.Fa p_sign_posn -but for negative currency values. -.It Fa int_p_cs_precedes -Same as -.Fa p_cs_precedes , -but for internationally formatted monetary quantities. -.It Fa int_n_cs_precedes -Same as -.Fa n_cs_precedes , -but for internationally formatted monetary quantities. -.It Fa int_p_sep_by_space -Same as -.Fa p_sep_by_space , -but for internationally formatted monetary quantities. -.It Fa int_n_sep_by_space -Same as -.Fa n_sep_by_space , -but for internationally formatted monetary quantities. -.It Fa int_p_sign_posn -Same as -.Fa p_sign_posn , -but for internationally formatted monetary quantities. -.It Fa int_n_sign_posn -Same as -.Fa n_sign_posn , -but for internationally formatted monetary quantities. -.El -.Pp -Unless mentioned above, -an empty string as a value for a field -indicates a zero length result or -a value that is not in the current locale. -A -.Dv CHAR_MAX -result similarly denotes an unavailable value. -.Sh RETURN VALUES -The -.Fn localeconv -function returns a pointer to a static object -which may be altered by later calls to -.Fn setlocale -or -.Fn localeconv . -.Sh ERRORS -No errors are defined. -.Sh SEE ALSO -.Xr setlocale 3 , -.Xr strfmon 3 -.Sh STANDARDS -The -.Fn localeconv -function conforms to -.St -isoC-99 . -.Sh HISTORY -The -.Fn localeconv -function first appeared in -.Bx 4.4 . diff --git a/src/lib/libc/locale/mblen.3 b/src/lib/libc/locale/mblen.3 deleted file mode 100644 index b49a305..0000000 --- a/src/lib/libc/locale/mblen.3 +++ /dev/null @@ -1,110 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Donn Seeley of BSDI. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" From @(#)multibyte.3 8.1 (Berkeley) 6/4/93 -.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp -.\" $FreeBSD: src/lib/libc/locale/mblen.3,v 1.3 2004/04/11 05:19:19 tjr Exp $ -.\" -.Dd April 11, 2004 -.Dt MBLEN 3 -.Os -.Sh NAME -.Nm mblen -.Nd get number of bytes in a character -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In stdlib.h -.Ft int -.Fn mblen "const char *mbchar" "size_t nbytes" -.Sh DESCRIPTION -The -.Fn mblen -function computes the length in bytes -of a multibyte character -.Fa mbchar -according to the current conversion state. -Up to -.Fa nbytes -bytes are examined. -.Pp -A call with a null -.Fa mbchar -pointer returns nonzero if the current locale requires shift states, -zero otherwise; -if shift states are required, the shift state is reset to the initial state. -.Sh RETURN VALUES -If -.Fa mbchar -is -.Dv NULL , -the -.Fn mblen -function returns nonzero if shift states are supported, -zero otherwise. -.Pp -Otherwise, if -.Fa mbchar -is not a null pointer, -.Fn mblen -either returns 0 if -.Fa mbchar -represents the null wide character, or returns -the number of bytes processed in -.Fa mbchar , -or returns \-1 if no multibyte character -could be recognized or converted. -In this case, -.Fn mblen Ns No 's -internal conversion state is undefined. -.Sh ERRORS -The -.Fn mblen -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid multibyte sequence was detected. -.It Bq Er EINVAL -The internal conversion state is not valid. -.El -.Sh SEE ALSO -.Xr mbrlen 3 , -.Xr mbtowc 3 , -.Xr multibyte 3 -.Sh STANDARDS -The -.Fn mblen -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/mbrlen.3 b/src/lib/libc/locale/mbrlen.3 deleted file mode 100644 index 5027823..0000000 --- a/src/lib/libc/locale/mbrlen.3 +++ /dev/null @@ -1,145 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/mbrlen.3,v 1.7 2004/04/08 09:59:02 tjr Exp $ -.\" -.Dd April 7, 2004 -.Dt MBRLEN 3 -.Os -.Sh NAME -.Nm mbrlen -.Nd "get number of bytes in a character (restartable)" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft size_t -.Fn mbrlen "const char * restrict s" "size_t n" "mbstate_t * restrict ps" -.Sh DESCRIPTION -The -.Fn mbrlen -function inspects at most -.Fa n -bytes pointed to by -.Fa s -to determine the number of bytes needed to complete the next -multibyte character. -.Pp -The -.Vt mbstate_t -argument, -.Fa ps , -is used to keep track of the shift state. -If it is -.Dv NULL , -.Fn mbrlen -uses an internal, static -.Vt mbstate_t -object, which is initialized to the initial conversion state -at program startup. -.Pp -It is equivalent to: -.Pp -.Dl "mbrtowc(NULL, s, n, ps);" -.Pp -Except that when -.Fa ps -is a -.Dv NULL -pointer, -.Fn mbrlen -uses its own static, internal -.Vt mbstate_t -object to keep track of the shift state. -.Sh RETURN VALUES -The -.Fn mbrlen -functions returns: -.Bl -tag -width indent -.It 0 -The next -.Fa n -or fewer bytes -represent the null wide character -.Pq Li "L'\e0'" . -.It >0 -The next -.Fa n -or fewer bytes -represent a valid character, -.Fn mbrlen -returns the number of bytes used to complete the multibyte character. -.It Po Vt size_t Pc Ns \-2 -The next -.Fa n -contribute to, but do not complete, a valid multibyte character sequence, -and all -.Fa n -bytes have been processed. -.It Po Vt size_t Pc Ns \-1 -An encoding error has occurred. -The next -.Fa fn -or fewer bytes do not contribute to a valid multibyte character. -.El -.Sh EXAMPLES -A function that calculates the number of characters in a multibyte -character string: -.Bd -literal -offset indent -size_t -nchars(const char *s) -{ - size_t charlen, chars; - mbstate_t mbs; - - chars = 0; - memset(&mbs, 0, sizeof(mbs)); - while ((charlen = mbrlen(s, MB_CUR_MAX, &mbs)) != 0 && - charlen != (size_t)-1 && charlen != (size_t)-2) { - s += charlen; - chars++; - } - - return (chars); -} -.Ed -.Sh ERRORS -The -.Fn mbrlen -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid multibyte sequence was detected. -.It Bq Er EINVAL -The conversion state is invalid. -.El -.Sh SEE ALSO -.Xr mblen 3 , -.Xr mbrtowc 3 , -.Xr multibyte 3 -.Sh STANDARDS -The -.Fn mbrlen -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/mbrtowc.3 b/src/lib/libc/locale/mbrtowc.3 deleted file mode 100644 index 8290245..0000000 --- a/src/lib/libc/locale/mbrtowc.3 +++ /dev/null @@ -1,139 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/mbrtowc.3,v 1.4 2004/04/08 09:59:02 tjr Exp $ -.\" -.Dd April 8, 2004 -.Dt MBRTOWC 3 -.Os -.Sh NAME -.Nm mbrtowc -.Nd "convert a character to a wide-character code (restartable)" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft size_t -.Fo mbrtowc -.Fa "wchar_t * restrict pwc" "const char * restrict s" "size_t n" -.Fa "mbstate_t * restrict ps" -.Fc -.Sh DESCRIPTION -The -.Fn mbrtowc -function inspects at most -.Fa n -bytes pointed to by -.Fa s -to determine the number of bytes needed to complete the next multibyte -character. -If a character can be completed, and -.Fa pwc -is not -.Dv NULL , -the wide character which is represented by -.Fa s -is stored in the -.Vt wchar_t -it points to. -.Pp -If -.Fa s -is -.Dv NULL , -.Fn mbrtowc -behaves as if -.Fa pwc -was -.Dv NULL , -.Fa s -was an empty string -.Pq Qq -and -.Fa n -was 1. -.Pp -The -.Vt mbstate_t -argument, -.Fa ps , -is used to keep track of the shift state. -If it is -.Dv NULL , -.Fn mbrtowc -uses an internal, static -.Vt mbstate_t -object, which is initialized to the initial conversion state -at program startup. -.Sh RETURN VALUES -The -.Fn mbrtowc -functions returns: -.Bl -tag -width indent -.It 0 -The next -.Fa n -or fewer bytes -represent the null wide character -.Pq Li "L'\e0'" . -.It >0 -The next -.Fa n -or fewer bytes -represent a valid character, -.Fn mbrtowc -returns the number of bytes used to complete the multibyte character. -.It Po Vt size_t Pc Ns \-2 -The next -.Fa n -contribute to, but do not complete, a valid multibyte character sequence, -and all -.Fa n -bytes have been processed. -.It Po Vt size_t Pc Ns \-1 -An encoding error has occurred. -The next -.Fa fn -or fewer bytes do not contribute to a valid multibyte character. -.El -.Sh ERRORS -The -.Fn mbrtowc -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid multibyte sequence was detected. -.It Bq Er EINVAL -The conversion state is invalid. -.El -.Sh SEE ALSO -.Xr mbtowc 3 , -.Xr multibyte 3 , -.Xr setlocale 3 , -.Xr wcrtomb 3 -.Sh STANDARDS -The -.Fn mbrtowc -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/mbrune.3 b/src/lib/libc/locale/mbrune.3 deleted file mode 100644 index 33d9483..0000000 --- a/src/lib/libc/locale/mbrune.3 +++ /dev/null @@ -1,176 +0,0 @@ -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Paul Borman at Krystal Technologies. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)mbrune.3 8.2 (Berkeley) 4/19/94 -.\" $FreeBSD: src/lib/libc/locale/mbrune.3,v 1.16 2003/11/15 02:26:04 tjr Exp $ -.\" -.Dd April 19, 1994 -.Dt MBRUNE 3 -.Os -.Sh NAME -.Nm mbrune , -.Nm mbrrune , -.Nm mbmb -.Nd multibyte rune support for C -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In rune.h -.Ft char * -.Fn mbrune "const char *string" "rune_t rune" -.Ft char * -.Fn mbrrune "const char *string" "rune_t rune" -.Ft char * -.Fn mbmb "const char *string" "char *pattern" -.Sh DESCRIPTION -.Bf Em -The -.Bx 4.4 -.Dq rune -functions have been deprecated in favour of the -.Tn ISO -C99 extended multibyte and wide character facilities -and should not be used in new applications. -.Ef -Consider working with wide characters instead, and using -.Xr wcschr 3 , -.Xr wcsrchr 3 , -and -.Xr wcsstr 3 -instead of these functions. -.Pp -These routines provide the corresponding functionality of -.Fn strchr , -.Fn strrchr -and -.Fn strstr -for multibyte strings. -.Pp -The -.Fn mbrune -function locates the first occurrence of -.Fn rune -in the string pointed to by -.Fa string . -The terminating -.Dv NUL -character is considered part of the string. -If -.Fa rune -is -.Ql \e0 , -.Fn mbrune -locates the terminating -.Ql \e0 . -.Pp -The -.Fn mbrrune -function -locates the last occurrence of -.Fa rune -in the string -.Fa string . -If -.Fa rune -is -.Ql \e0 , -.Fn mbrune -locates the terminating -.Ql \e0 . -.Pp -The -.Fn mbmb -function locates the first occurrence of the null-terminated string -.Fa pattern -in the null-terminated string -.Fa string . -If -.Fa pattern -is the empty string, -.Fn mbmb -returns -.Fa string ; -if -.Fa pattern -occurs nowhere in -.Fa string , -.Fn mbmb -returns -.Dv NULL ; -otherwise -.Fn mbmb -returns a pointer to the first character of the first occurrence of -.Fa pattern . -.Sh RETURN VALUES -The function -.Fn mbrune -returns a pointer to the located character, or -.Dv NULL -if the character does not appear in the string. -.Pp -The -.Fn mbrrune -function -returns a pointer to the character, or -.Dv NULL -if the character does not appear in the string. -.Pp -The -.Fn mbmb -function -returns a pointer to the -.Fa pattern , -or -.Dv NULL -if the -.Fa pattern -does not appear in the string. -.Sh SEE ALSO -.Xr rune 3 , -.Xr setlocale 3 , -.Xr euc 5 , -.Xr utf2 5 , -.Xr utf8 5 -.Sh HISTORY -The -.Fn mbrune , -.Fn mbrrune , -and -.Fn mbmb -functions -first appeared in Plan 9 from Bell Labs as -.Fn utfrune , -.Fn utfrrune , -and -.Fn utfutf . diff --git a/src/lib/libc/locale/mbsinit.3 b/src/lib/libc/locale/mbsinit.3 deleted file mode 100644 index e2a9e46..0000000 --- a/src/lib/libc/locale/mbsinit.3 +++ /dev/null @@ -1,67 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/mbsinit.3,v 1.3 2004/04/08 09:59:02 tjr Exp $ -.\" -.Dd April 8, 2004 -.Dt MBSINIT 3 -.Os -.Sh NAME -.Nm mbsinit -.Nd "determine conversion object status" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft int -.Fn mbsinit "const mbstate_t *ps" -.Sh DESCRIPTION -The -.Fn mbsinit -function determines whether the -.Vt mbstate_t -object pointed to by -.Fa ps -describes an initial conversion state. -.Sh RETURN VALUES -The -.Fn mbsinit -function returns non-zero if -.Fa ps -is -.Dv NULL -or describes an initial conversion state, -otherwise it returns zero. -.Sh SEE ALSO -.Xr mbrlen 3 , -.Xr mbrtowc 3 , -.Xr mbsrtowcs 3 , -.Xr multibyte 3 , -.Xr wcrtomb 3 , -.Xr wcsrtombs 3 -.Sh STANDARDS -The -.Fn mbsinit -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/mbsrtowcs.3 b/src/lib/libc/locale/mbsrtowcs.3 deleted file mode 100644 index 1e9a6ab..0000000 --- a/src/lib/libc/locale/mbsrtowcs.3 +++ /dev/null @@ -1,112 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/mbsrtowcs.3,v 1.4 2004/04/08 09:59:02 tjr Exp $ -.Dd April 8, 2004 -.Dt MBSRTOWCS 3 -.Os -.Sh NAME -.Nm mbsrtowcs -.Nd "convert a character string to a wide-character string (restartable)" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft size_t -.Fo mbsrtowcs -.Fa "wchar_t * restrict dst" "const char ** restrict src" "size_t len" -.Fa "mbstate_t * restrict ps" -.Fc -.Sh DESCRIPTION -The -.Fn mbsrtowcs -function converts a sequence of multibyte characters pointed to indirectly by -.Fa src -into a sequence of corresponding wide characters and stores at most -.Fa len -of them in the -.Vt wchar_t -array pointed to by -.Fa dst , -until it encounters a terminating null character -.Pq Li '\e0' . -.Pp -If -.Fa dst -is -.Dv NULL , -no characters are stored. -.Pp -If -.Fa dst -is not -.Dv NULL , -the pointer pointed to by -.Fa src -is updated to point to the character after the one that conversion stopped at. -If conversion stops because a null character is encountered, -.Fa *src -is set to -.Dv NULL . -.Pp -The -.Vt mbstate_t -argument, -.Fa ps , -is used to keep track of the shift state. -If it is -.Dv NULL , -.Fn mbsrtowcs -uses an internal, static -.Vt mbstate_t -object, which is initialized to the initial conversion state -at program startup. -.Sh RETURN VALUES -The -.Fn mbsrtowcs -function returns the number of wide characters stored in -the array pointed to by -.Fa dst -if successful, otherwise it returns -.Po Vt size_t Pc Ns \-1 . -.Sh ERRORS -The -.Fn mbsrtowcs -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid multibyte character sequence was encountered. -.It Bq Er EINVAL -The conversion state is invalid. -.El -.Sh SEE ALSO -.Xr mbrtowc 3 , -.Xr mbstowcs 3 , -.Xr multibyte 3 , -.Xr wcsrtombs 3 -.Sh STANDARDS -The -.Fn mbsrtowcs -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/mbstowcs.3 b/src/lib/libc/locale/mbstowcs.3 deleted file mode 100644 index d5715ed..0000000 --- a/src/lib/libc/locale/mbstowcs.3 +++ /dev/null @@ -1,88 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Donn Seeley of BSDI. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" From @(#)multibyte.3 8.1 (Berkeley) 6/4/93 -.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp -.\" $FreeBSD: src/lib/libc/locale/mbstowcs.3,v 1.2 2004/04/08 09:59:02 tjr Exp $ -.\" -.Dd April 8, 2004 -.Dt MBSTOWCS 3 -.Os -.Sh NAME -.Nm mbstowcs -.Nd convert a character string to a wide-character string -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In stdlib.h -.Ft size_t -.Fn mbstowcs "wchar_t * restrict wcstring" "const char * restrict mbstring" "size_t nwchars" -.Sh DESCRIPTION -The -.Fn mbstowcs -function converts a multibyte character string -.Fa mbstring -beginning in the initial conversion state -into a wide character string -.Fa wcstring . -No more than -.Fa nwchars -wide characters are stored. -A terminating null wide character is appended if there is room. -.Sh RETURN VALUES -The -.Fn mbstowcs -function returns the number of wide characters converted, -not counting any terminating null wide character, or \-1 -if an invalid multibyte character was encountered. -.Sh ERRORS -The -.Fn mbstowcs -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid multibyte sequence was detected. -.It Bq Er EINVAL -The conversion state is invalid. -.El -.Sh SEE ALSO -.Xr mbtowc 3 , -.Xr mbsrtowcs 3 , -.Xr multibyte 3 -.Sh STANDARDS -The -.Fn mbstowcs -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/mbtowc.3 b/src/lib/libc/locale/mbtowc.3 deleted file mode 100644 index b01038b..0000000 --- a/src/lib/libc/locale/mbtowc.3 +++ /dev/null @@ -1,115 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Donn Seeley of BSDI. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" From @(#)multibyte.3 8.1 (Berkeley) 6/4/93 -.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp -.\" $FreeBSD: src/lib/libc/locale/mbtowc.3,v 1.3 2004/04/11 05:19:19 tjr Exp $ -.\" -.Dd April 11, 2004 -.Dt MBTOWC 3 -.Os -.Sh NAME -.Nm mbtowc -.Nd convert a character to a wide-character code -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In stdlib.h -.Ft int -.Fn mbtowc "wchar_t * restrict wcharp" "const char * restrict mbchar" "size_t nbytes" -.Sh DESCRIPTION -The -.Fn mbtowc -function converts a multibyte character -.Fa mbchar -into a wide character according to the current conversion state, -and stores the result -in the object pointed to by -.Fa wcharp . -Up to -.Fa nbytes -bytes are examined. -.Pp -A call with a null -.Fa mbchar -pointer returns nonzero if the current encoding requires shift states, -zero otherwise; -if shift states are required, the shift state is reset to the initial state. -.Sh RETURN VALUES -If -.Fa mbchar -is -.Dv NULL , -the -.Fn mbtowc -function returns nonzero if shift states are supported, -zero otherwise. -.Pp -Otherwise, if -.Fa mbchar -is not a null pointer, -.Fn mbtowc -either returns 0 if -.Fa mbchar -represents the null wide character, or returns -the number of bytes processed in -.Fa mbchar , -or returns \-1 if no multibyte character -could be recognized or converted. -In this case, -.Fn mbtowc Ns No 's -internal conversion state is undefined. -.Sh ERRORS -The -.Fn mbtowc -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid multibyte sequence was detected. -.It Bq Er EINVAL -The internal conversion state is invalid. -.El -.Sh SEE ALSO -.Xr btowc 3 , -.Xr mblen 3 , -.Xr mbrtowc 3 , -.Xr mbstowcs 3 , -.Xr multibyte 3 , -.Xr wctomb 3 -.Sh STANDARDS -The -.Fn mbtowc -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/mskanji.5 b/src/lib/libc/locale/mskanji.5 deleted file mode 100644 index af53ac6..0000000 --- a/src/lib/libc/locale/mskanji.5 +++ /dev/null @@ -1,69 +0,0 @@ -.\" Copyright (c) 2002, 2003 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/mskanji.5,v 1.3 2003/11/15 02:26:04 tjr Exp $ -.Dd August 7, 2003 -.Dt MSKANJI 5 -.Os -.Sh NAME -.Nm mskanji -.Nd "Shift-JIS (MS Kanji) encoding for Japanese text" -.Sh SYNOPSIS -.Nm ENCODING -.Qq MSKanji -.Sh DESCRIPTION -Shift-JIS, also known as MS Kanji or SJIS, is an encoding system for -Japanese characters, developed by Microsoft Corporation. -It encodes the characters from the -.Tn JIS -X 0201 (ASCII/JIS-Roman) and -.Tn JIS -X 0208 (Japanese) character sets as sequences of either one or two bytes. -.Pp -Characters from the -.Tn ASCII Ns -/JIS-Roman character set are encoded as single bytes between 0x00 and 0x7F -(ASCII) or 0xA1 and 0xDF (Half-width katakana). -.Pp -Characters from the -.Tn JIS -X 0208 character set are encoded as two bytes. -The first ranges from -0x81 - 0x9F, 0xE0 - 0xEA, 0xED - 0xEE (not -.Tn JIS Ns : -.Tn NEC Ns - Ns -selected -.Tn IBM -extended characters), -0xF0 - 0xF9 (not -.Tn JIS Ns : -user defined), -or 0xFA - 0xFC (not -.Tn JIS Ns : -.Tn IBM -extended characters). -The second byte ranges from 0x40 - 0xFC, excluding 0x7F (delete). -.Sh SEE ALSO -.Xr euc 5 , -.Xr utf8 5 diff --git a/src/lib/libc/locale/multibyte.3 b/src/lib/libc/locale/multibyte.3 deleted file mode 100644 index 64fd759..0000000 --- a/src/lib/libc/locale/multibyte.3 +++ /dev/null @@ -1,147 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Donn Seeley of BSDI. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)multibyte.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/multibyte.3,v 1.25 2004/04/08 09:59:02 tjr Exp $ -.\" -.Dd April 8, 2004 -.Dt MULTIBYTE 3 -.Os -.Sh NAME -.Nm multibyte -.Nd multibyte and wide character manipulation functions -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In limits.h -.In stdlib.h -.In wchar.h -.Sh DESCRIPTION -The basic elements of some written natural languages, such as Chinese, -cannot be represented uniquely with single C -.Va char Ns s . -The C standard supports two different ways of dealing with -extended natural language encodings: -wide characters and -multibyte characters. -Wide characters are an internal representation -which allows each basic element to map -to a single object of type -.Va wchar_t . -Multibyte characters are used for input and output -and code each basic element as a sequence of C -.Va char Ns s . -Individual basic elements may map into one or more -(up to -.Dv MB_LEN_MAX ) -bytes in a multibyte character. -.Pp -The current locale -.Pq Xr setlocale 3 -governs the interpretation of wide and multibyte characters. -The locale category -.Dv LC_CTYPE -specifically controls this interpretation. -The -.Va wchar_t -type is wide enough to hold the largest value -in the wide character representations for all locales. -.Pp -Multibyte strings may contain -.Sq shift -indicators to switch to and from -particular modes within the given representation. -If explicit bytes are used to signal shifting, -these are not recognized as separate characters -but are lumped with a neighboring character. -There is always a distinguished -.Sq initial -shift state. -Some functions (e.g. -.Fn mblen , -.Fn mbtowc -and -.Fn wctomb ) -maintain static shift state internally, whereas -others store in an -.Vt mbstate_t -object passed by the caller. -Shift states are undefined after a call to -.Fn setlocale -with the -.Dv LC_CTYPE -or -.Dv LC_ALL -categories. -.Pp -For convenience in processing, -the wide character with value 0 -(the null wide character) -is recognized as the wide character string terminator, -and the character with value 0 -(the null byte) -is recognized as the multibyte character string terminator. -Null bytes are not permitted within multibyte characters. -.Pp -The C library provides the following functions for dealing with -multibyte characters: -.Bl -column "Description" -.It Sy "Function Description" -.It "mblen get number of bytes in a character" -.It "mbrlen get number of bytes in a character (restartable)" -.It "mbrtowc convert a character to a wide-character code (restartable)" -.It "mbsrtowcs convert a character string to a wide-character string (restartable)" -.It "mbstowcs convert a character string to a wide-character string" -.It "mbtowc convert a character to a wide-character code" -.It "wcrtomb convert a wide-character code to a character (restartable)" -.It "wcstombs convert a wide-character string to a character string" -.It "wcsrtombs convert a wide-character string to a character string (restartable)" -.It "wctomb convert a wide-character code to a character" -.El -.Sh SEE ALSO -.Xr mklocale 1 , -.Xr stdio 3 , -.Xr setlocale 3 , -.Xr big5 5 , -.Xr euc 5 , -.Xr gb18030 5 , -.Xr gb2312 5 , -.Xr gbk 5 , -.Xr mskanji 5 , -.Xr utf2 5 , -.Xr utf8 5 -.Sh STANDARDS -These functions conform to -.St -isoC-99 . diff --git a/src/lib/libc/locale/nl_langinfo.3 b/src/lib/libc/locale/nl_langinfo.3 deleted file mode 100644 index 3fc47e0..0000000 --- a/src/lib/libc/locale/nl_langinfo.3 +++ /dev/null @@ -1,90 +0,0 @@ -.\" Copyright (c) 2001 Alexey Zelkin -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/nl_langinfo.3,v 1.5 2003/09/08 19:57:14 ru Exp $ -.\" -.Dd May 3, 2001 -.Dt NL_LANGINFO 3 -.Os -.Sh NAME -.Nm nl_langinfo -.Nd language information -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In langinfo.h -.Ft char * -.Fn nl_langinfo "nl_item item" -.Sh DESCRIPTION -The -.Fn nl_langinfo -function returns a pointer to a string containing information relevant to -the particular language or cultural area defined in the program's locale. -The manifest constant names and values of -.Fa item -are defined in -.In langinfo.h . -.Pp -Calls to -.Fn setlocale -with a category corresponding to the category of -.Fa item , -or to the -category -.Dv LC_ALL , -may overwrite buffer pointed by the return value. -.Sh EXAMPLES -For example: -.Pp -.Dl nl_langinfo(ABDAY_1) -.Pp -would return a pointer to the string -.Qq Li Dom -if the identified language was -Portuguese, and -.Qq Li Sun -if the identified language was English. -.Sh RETURN VALUES -In a locale where langinfo data is not defined, -.Fn nl_langinfo -returns a pointer to the corresponding string in the -.Tn POSIX -locale. -In all locales, -.Fn nl_langinfo -returns a pointer to an empty string if -.Fa item -contains an invalid setting. -.Sh SEE ALSO -.Xr setlocale 3 -.Sh STANDARDS -The -.Fn nl_langinfo -function conforms to -.St -susv2 . -.Sh HISTORY -The -.Fn nl_langinfo -function first appeared in -.Fx 4.6 . diff --git a/src/lib/libc/locale/rune.3 b/src/lib/libc/locale/rune.3 deleted file mode 100644 index 3a62ac9..0000000 --- a/src/lib/libc/locale/rune.3 +++ /dev/null @@ -1,283 +0,0 @@ -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Paul Borman at Krystal Technologies. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)rune.3 8.2 (Berkeley) 12/11/93 -.\" $FreeBSD: src/lib/libc/locale/rune.3,v 1.24 2003/11/15 02:26:04 tjr Exp $ -.\" -.Dd October 6, 2002 -.Dt RUNE 3 -.Os -.Sh NAME -.Nm setrunelocale , -.Nm setinvalidrune , -.Nm sgetrune , -.Nm sputrune , -.Nm fgetrune , -.Nm fungetrune , -.Nm fputrune -.Nd rune support for C -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In rune.h -.In errno.h -.Ft int -.Fn setrunelocale "char *locale" -.Ft void -.Fn setinvalidrune "rune_t rune" -.Ft rune_t -.Fn sgetrune "const char *string" "size_t n" "char const **result" -.Ft int -.Fn sputrune "rune_t rune" "char *string" "size_t n" "char **result" -.Pp -.In stdio.h -.Ft long -.Fn fgetrune "FILE *stream" -.Ft int -.Fn fungetrune "rune_t rune" "FILE *stream" -.Ft int -.Fn fputrune "rune_t rune" "FILE *stream" -.Sh DESCRIPTION -.Bf Em -The -.Bx 4.4 -.Dq rune -functions have been deprecated in favour of the -.Tn ISO -C99 extended multibyte and wide character facilities -and should not be used in new applications. -.Ef -Consider using -.Xr setlocale 3 , -.Xr mbrtowc 3 , -.Xr wcrtomb 3 , -.Xr fgetwc 3 , -.Xr ungetwc 3 , -and -.Xr fputwc 3 -instead. -.Pp -The -.Fn setrunelocale -controls the type of encoding used to represent runes as multibyte strings -as well as the properties of the runes as defined in -.In ctype.h . -The -.Fa locale -argument indicates which locale to load. -If the locale is successfully loaded, -.Dv 0 -is returned, otherwise an errno value is returned to indicate the -type of error. -.Pp -The -.Fn setinvalidrune -function sets the value of the global value -.Dv _INVALID_RUNE -to be -.Fa rune . -.Pp -The -.Fn sgetrune -function tries to read a single multibyte character from -.Fa string , -which is at most -.Fa n -bytes long. -If -.Fn sgetrune -is successful, the rune is returned. -If -.Fa result -is not -.Dv NULL , -.Fa *result -will point to the first byte which was not converted in -.Fa string . -If the first -.Fa n -bytes of -.Fa string -do not describe a full multibyte character, -.Dv _INVALID_RUNE -is returned and -.Fa *result -will point to -.Fa string . -If there is an encoding error at the start of -.Fa string , -.Dv _INVALID_RUNE -is returned and -.Fa *result -will point to the second character of -.Fa string . -.Pp -the -.Fn sputrune -function tries to encode -.Fa rune -as a multibyte string and store it at -.Fa string , -but no more than -.Fa n -bytes will be stored. -If -.Fa result -is not -.Dv NULL , -.Fa *result -will be set to point to the first byte in string following the new -multibyte character. -If -.Fa string -is -.Dv NULL , -.Fa *result -will point to -.Dv "(char *)0 +" -.Fa x , -where -.Fa x -is the number of bytes that would be needed to store the multibyte value. -If the multibyte character would consist of more than -.Fa n -bytes and -.Fa result -is not -.Dv NULL , -.Fa *result -will be set to -.Dv NULL . -In all cases, -.Fn sputrune -will return the number of bytes which would be needed to store -.Fa rune -as a multibyte character. -.Pp -The -.Fn fgetrune -function operates the same as -.Fn sgetrune -with the exception that it attempts to read enough bytes from -.Fa stream -to decode a single rune. It returns either -.Dv EOF -on end of file, -.Dv _INVALID_RUNE -on an encoding error, or the rune decoded if all went well. -.Pp -The -.Fn fungetrune -function pushes the multibyte encoding, as provided by -.Fn sputrune , -of -.Fa rune -onto -.Fa stream -such that the next -.Fn fgetrune -call will return -.Fa rune . -It returns -.Dv EOF -if it fails and -.Dv 0 -on success. -.Pp -The -.Fn fputrune -function writes the multibyte encoding of -.Fa rune , -as provided by -.Fn sputrune , -onto -.Fa stream . -It returns -.Dv EOF -on failure and -.Dv 0 -on success. -.Sh RETURN VALUES -The -.Fn setrunelocale -function returns one of the following values: -.Bl -tag -width Er -.It Er 0 -The -.Fn setrunelocale -function -was successful. -.It Bq Er EINVAL -The -.Fa locale -name was incorrect. -.It Bq Er ENOENT -The locale could not be found. -.It Bq Er EFTYPE -The file found was not a valid file. -.El -.Pp -The -.Fn sgetrune -function either returns the rune read or -.Dv _INVALID_RUNE . -The -.Fn sputrune -function returns the number of bytes needed to store -.Fa rune -as a multibyte string. -.Sh FILES -.Bl -tag -width /usr/share/locale/locale/LC_CTYPE -compact -.It Pa $PATH_LOCALE/ Ns Em locale Ns /LC_CTYPE -.It Pa /usr/share/locale/ Ns Em locale Ns /LC_CTYPE -binary LC_CTYPE file for the locale -.Em locale . -.El -.Sh SEE ALSO -.Xr mbrune 3 , -.Xr setlocale 3 , -.Xr euc 5 , -.Xr utf2 5 , -.Xr utf8 5 -.Sh HISTORY -These functions first appeared in -.Bx 4.4 . -.Pp -The -.Fn setrunelocale -function and the other non-ANSI rune functions were inspired by -.Sy "Plan 9 from Bell Labs" . -.\"They were conceived at the San Diego 1993 Summer USENIX conference by -.\"Paul Borman of Krystal Technologies, Keith Bostic of CSRG and Andrew Hume -.\"of Bell Labs. diff --git a/src/lib/libc/locale/setlocale.3 b/src/lib/libc/locale/setlocale.3 deleted file mode 100644 index 7f0b4c3..0000000 --- a/src/lib/libc/locale/setlocale.3 +++ /dev/null @@ -1,185 +0,0 @@ -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Donn Seeley at BSDI. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)setlocale.3 8.1 (Berkeley) 6/9/93 -.\" $FreeBSD: src/lib/libc/locale/setlocale.3,v 1.30 2004/01/29 09:27:24 ache Exp $ -.\" -.Dd November 21, 2003 -.Dt SETLOCALE 3 -.Os -.Sh NAME -.Nm setlocale -.Nd natural language formatting for C -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In locale.h -.Ft char * -.Fn setlocale "int category" "const char *locale" -.Sh DESCRIPTION -The -.Fn setlocale -function sets the C library's notion -of natural language formatting style -for particular sets of routines. -Each such style is called a -.Sq locale -and is invoked using an appropriate name passed as a C string. -.Pp -The -.Fn setlocale -function recognizes several categories of routines. -These are the categories and the sets of routines they select: -.Pp -.Bl -tag -width LC_MONETARY -.It Dv LC_ALL -Set the entire locale generically. -.It Dv LC_COLLATE -Set a locale for string collation routines. -This controls alphabetic ordering in -.Fn strcoll -and -.Fn strxfrm . -.It Dv LC_CTYPE -Set a locale for the -.Xr ctype 3 , -.Xr mbrune 3 , -.Xr multibyte 3 -and -.Xr rune 3 -functions. -This controls recognition of upper and lower case, -alphabetic or non-alphabetic characters, -and so on. The real work is done by the -.Fn setrunelocale -function. -.It Dv LC_MESSAGES -Set a locale for message catalogs, see -.Xr catopen 3 -function. -.It Dv LC_MONETARY -Set a locale for formatting monetary values; -this affects the -.Fn localeconv -function. -.It Dv LC_NUMERIC -Set a locale for formatting numbers. -This controls the formatting of decimal points -in input and output of floating point numbers -in functions such as -.Fn printf -and -.Fn scanf , -as well as values returned by -.Fn localeconv . -.It Dv LC_TIME -Set a locale for formatting dates and times using the -.Fn strftime -function. -.El -.Pp -Only three locales are defined by default, -the empty string -.Li "\&""\|"" -which denotes the native environment, and the -.Li "\&""C"" -and -.Li "\&""POSIX"" -locales, which denote the C language environment. -A -.Fa locale -argument of -.Dv NULL -causes -.Fn setlocale -to return the current locale. -By default, C programs start in the -.Li "\&""C"" -locale. -The only function in the library that sets the locale is -.Fn setlocale ; -the locale is never changed as a side effect of some other routine. -.Sh RETURN VALUES -Upon successful completion, -.Fn setlocale -returns the string associated with the specified -.Fa category -for the requested -.Fa locale . -The -.Fn setlocale -function returns -.Dv NULL -and fails to change the locale -if the given combination of -.Fa category -and -.Fa locale -makes no sense. -.Sh ERRORS -No errors are defined. -.Sh FILES -.Bl -tag -width /usr/share/locale/locale/category -compact -.It Pa $PATH_LOCALE/ Ns Em locale/category -.It Pa /usr/share/locale/ Ns Em locale/category -locale file for the locale -.Em locale -and the category -.Em category . -.El -.Sh SEE ALSO -.Xr colldef 1 , -.Xr mklocale 1 , -.Xr catopen 3 , -.Xr ctype 3 , -.Xr localeconv 3 , -.Xr mbrune 3 , -.Xr multibyte 3 , -.Xr rune 3 , -.Xr strcoll 3 , -.Xr strxfrm 3 , -.Xr euc 5 , -.Xr utf2 5 , -.Xr utf8 5 , -.Xr environ 7 -.Sh STANDARDS -The -.Fn setlocale -function conforms to -.St -isoC-99 . -.Sh HISTORY -The -.Fn setlocale -function first appeared in -.Bx 4.4 . diff --git a/src/lib/libc/locale/toascii.3 b/src/lib/libc/locale/toascii.3 deleted file mode 100644 index b1a2425..0000000 --- a/src/lib/libc/locale/toascii.3 +++ /dev/null @@ -1,73 +0,0 @@ -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)toascii.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/toascii.3,v 1.7 2002/01/09 13:43:31 nik Exp $ -.\" -.Dd June 4, 1993 -.Dt TOASCII 3 -.Os -.Sh NAME -.Nm toascii -.Nd convert a byte to 7-bit ASCII -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn toascii "int c" -.Sh DESCRIPTION -The -.Fn toascii -function strips all but the low 7 bits from a letter, -including parity or other marker bits. -.Sh RETURN VALUES -The -.Fn toascii -function always returns a valid ASCII character. -.Sh SEE ALSO -.Xr digittoint 3 , -.Xr isalnum 3 , -.Xr isalpha 3 , -.Xr isascii 3 , -.Xr iscntrl 3 , -.Xr isdigit 3 , -.Xr isgraph 3 , -.Xr islower 3 , -.Xr isprint 3 , -.Xr ispunct 3 , -.Xr isspace 3 , -.Xr isupper 3 , -.Xr isxdigit 3 , -.Xr stdio 3 , -.Xr tolower 3 , -.Xr toupper 3 , -.Xr ascii 7 diff --git a/src/lib/libc/locale/tolower.3 b/src/lib/libc/locale/tolower.3 deleted file mode 100644 index bb2c801..0000000 --- a/src/lib/libc/locale/tolower.3 +++ /dev/null @@ -1,90 +0,0 @@ -.\" Copyright (c) 1989, 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)tolower.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/tolower.3,v 1.15 2002/10/03 11:14:00 tjr Exp $ -.\" -.Dd October 3, 2002 -.Dt TOLOWER 3 -.Os -.Sh NAME -.Nm tolower -.Nd upper case to lower case letter conversion -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn tolower "int c" -.Sh DESCRIPTION -The -.Fn tolower -function converts an upper-case letter to the corresponding lower-case -letter. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -.Sh RETURN VALUES -If the argument is an upper-case letter, the -.Fn tolower -function returns the corresponding lower-case letter if there is -one; otherwise the argument is returned unchanged. -.Sh COMPATIBILITY -Although -.Fn tolower -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn towlower -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr islower 3 , -.Xr multibyte 3 , -.Xr towlower 3 -.Sh STANDARDS -The -.Fn tolower -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/toupper.3 b/src/lib/libc/locale/toupper.3 deleted file mode 100644 index f0fddf9..0000000 --- a/src/lib/libc/locale/toupper.3 +++ /dev/null @@ -1,90 +0,0 @@ -.\" Copyright (c) 1989, 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)toupper.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/toupper.3,v 1.15 2002/10/03 11:14:00 tjr Exp $ -.\" -.Dd October 3, 2002 -.Dt TOUPPER 3 -.Os -.Sh NAME -.Nm toupper -.Nd lower case to upper case letter conversion -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In ctype.h -.Ft int -.Fn toupper "int c" -.Sh DESCRIPTION -The -.Fn toupper -function converts a lower-case letter to the corresponding -upper-case letter. -For single C -.Va char Ns s -locales (see -.Xr multibyte 3 ) -the value of the argument is -representable as an -.Li unsigned char -or the value of -.Dv EOF . -.Sh RETURN VALUES -If the argument is a lower-case letter, the -.Fn toupper -function returns the corresponding upper-case letter if there is -one; otherwise the argument is returned unchanged. -.Sh COMPATIBILITY -Although -.Fn toupper -accepts arguments outside of the range of the -.Vt "unsigned char" -type in locales with large character sets, -this is a -.Bx 4.4 -extension and the -.Fn towupper -function should be used instead for maximum portability. -.Sh SEE ALSO -.Xr ctype 3 , -.Xr isupper 3 , -.Xr multibyte 3 , -.Xr towupper 3 -.Sh STANDARDS -The -.Fn toupper -function conforms to -.St -isoC . diff --git a/src/lib/libc/locale/towlower.3 b/src/lib/libc/locale/towlower.3 deleted file mode 100644 index 6bdd3c8..0000000 --- a/src/lib/libc/locale/towlower.3 +++ /dev/null @@ -1,70 +0,0 @@ -.\" Copyright (c) 1989, 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)tolower.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/towlower.3,v 1.5 2002/11/29 17:35:09 ru Exp $ -.\" -.Dd October 3, 2002 -.Dt TOWLOWER 3 -.Os -.Sh NAME -.Nm towlower -.Nd "upper case to lower case letter conversion (wide character version)" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wctype.h -.Ft wint_t -.Fn towlower "wint_t wc" -.Sh DESCRIPTION -The -.Fn towlower -function converts an upper-case letter to the corresponding lower-case -letter. -.Sh RETURN VALUES -If the argument is an upper-case letter, the -.Fn towlower -function returns the corresponding lower-case letter if there is -one; otherwise the argument is returned unchanged. -.Sh SEE ALSO -.Xr iswlower 3 , -.Xr tolower 3 , -.Xr towupper 3 , -.Xr wctrans 3 -.Sh STANDARDS -The -.Fn towlower -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/towupper.3 b/src/lib/libc/locale/towupper.3 deleted file mode 100644 index c771998..0000000 --- a/src/lib/libc/locale/towupper.3 +++ /dev/null @@ -1,70 +0,0 @@ -.\" Copyright (c) 1989, 1991, 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" the American National Standards Committee X3, on Information -.\" Processing Systems. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)toupper.3 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/towupper.3,v 1.2 2002/11/29 17:35:09 ru Exp $ -.\" -.Dd October 3, 2002 -.Dt TOWUPPER 3 -.Os -.Sh NAME -.Nm towupper -.Nd "lower case to upper case letter conversion (wide character version)" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wctype.h -.Ft wint_t -.Fn towupper "wint_t wc" -.Sh DESCRIPTION -The -.Fn towupper -function converts a lower-case letter to the corresponding -upper-case letter. -.Sh RETURN VALUES -If the argument is a lower-case letter, the -.Fn towupper -function returns the corresponding upper-case letter if there is -one; otherwise the argument is returned unchanged. -.Sh SEE ALSO -.Xr iswupper 3 , -.Xr toupper 3 , -.Xr towlower 3 , -.Xr wctrans 3 -.Sh STANDARDS -The -.Fn towupper -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/utf2.5 b/src/lib/libc/locale/utf2.5 deleted file mode 100644 index 92e4ac2..0000000 --- a/src/lib/libc/locale/utf2.5 +++ /dev/null @@ -1,95 +0,0 @@ -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Paul Borman at Krystal Technologies. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)utf2.4 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/utf2.5,v 1.12 2003/11/15 01:54:46 tjr Exp $ -.\" -.Dd October 11, 2002 -.Dt UTF2 5 -.Os -.Sh NAME -.Nm utf2 -.Nd "Universal character set Transformation Format encoding of wide characters -.Sh SYNOPSIS -.Nm ENCODING -.Qq UTF2 -.Sh DESCRIPTION -.Bf Em -The UTF2 encoding has been deprecated in favour of UTF-8. -.Ef -New applications should not use UTF2. -.Pp -The -.Nm UTF2 -encoding is based on a proposed X-Open multibyte -\s-1FSS-UCS-TF\s+1 (File System Safe Universal Character Set Transformation Format) encoding as used in -.Sy "Plan 9 from Bell Labs" . -Although it is capable of representing more than 16 bits, -the current implementation is limited to 16 bits as defined by the -Unicode Standard. -.Pp -.Nm UTF2 -representation is backwards compatible with ASCII, so 0x00-0x7f refer to the -ASCII character set. The multibyte encodings of wide characters between -0x0080 and 0xffff -consist entirely of bytes whose high order bit is set. The actual -encoding is represented by the following table: -.Bd -literal -[0x0000 - 0x007f] [00000000.0bbbbbbb] -> 0bbbbbbb -[0x0080 - 0x07ff] [00000bbb.bbbbbbbb] -> 110bbbbb, 10bbbbbb -[0x0800 - 0xffff] [bbbbbbbb.bbbbbbbb] -> 1110bbbb, 10bbbbbb, 10bbbbbb -.Ed -.Pp -If more than a single representation of a value exists (for example, -0x00; 0xC0 0x80; 0xE0 0x80 0x80) the shortest representation is always -used (but the longer ones will be correctly decoded). -.Pp -The final three encodings provided by X-Open: -.Bd -literal -[00000000.000bbbbb.bbbbbbbb.bbbbbbbb] -> - 11110bbb, 10bbbbbb, 10bbbbbb, 10bbbbbb - -[000000bb.bbbbbbbb.bbbbbbbb.bbbbbbbb] -> - 111110bb, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb - -[0bbbbbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb] -> - 1111110b, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb -.Ed -.Pp -which provides for the entire proposed ISO-10646 31 bit standard are currently -not implemented. -.Sh "SEE ALSO" -.Xr mklocale 1 , -.Xr setlocale 3 , -.Xr utf8 5 diff --git a/src/lib/libc/locale/utf8.5 b/src/lib/libc/locale/utf8.5 deleted file mode 100644 index 1b8d45a..0000000 --- a/src/lib/libc/locale/utf8.5 +++ /dev/null @@ -1,126 +0,0 @@ -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Paul Borman at Krystal Technologies. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" @(#)utf2.4 8.1 (Berkeley) 6/4/93 -.\" $FreeBSD: src/lib/libc/locale/utf8.5,v 1.5 2004/04/12 12:58:41 tjr Exp $ -.\" -.Dd April 7, 2004 -.Dt UTF8 5 -.Os -.Sh NAME -.Nm utf8 -.Nd "UTF-8, a transformation format of ISO 10646" -.Sh SYNOPSIS -.Nm ENCODING -.Qq UTF-8 -.Sh DESCRIPTION -The -.Nm UTF-8 -encoding represents UCS-4 characters as a sequence of octets, using -between 1 and 6 for each character. -It is backwards compatible with -.Tn ASCII , -so 0x00-0x7f refer to the -.Tn ASCII -character set. -The multibyte encoding of -.No non- Ns Tn ASCII -characters -consist entirely of bytes whose high order bit is set. -The actual -encoding is represented by the following table: -.Bd -literal -[0x00000000 - 0x0000007f] [00000000.0bbbbbbb] -> 0bbbbbbb -[0x00000080 - 0x000007ff] [00000bbb.bbbbbbbb] -> 110bbbbb, 10bbbbbb -[0x00000800 - 0x0000ffff] [bbbbbbbb.bbbbbbbb] -> - 1110bbbb, 10bbbbbb, 10bbbbbb -[0x00010000 - 0x001fffff] [00000000.000bbbbb.bbbbbbbb.bbbbbbbb] -> - 11110bbb, 10bbbbbb, 10bbbbbb, 10bbbbbb -[0x00200000 - 0x03ffffff] [000000bb.bbbbbbbb.bbbbbbbb.bbbbbbbb] -> - 111110bb, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb -[0x04000000 - 0x7fffffff] [0bbbbbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb] -> - 1111110b, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb -.Ed -.Pp -If more than a single representation of a value exists (for example, -0x00; 0xC0 0x80; 0xE0 0x80 0x80) the shortest representation is always -used. -Longer ones are detected as an error as they pose a potential -security risk, and destroy the 1:1 character:octet sequence mapping. -.Sh COMPATIBILITY -The -.Nm -encoding supersedes the -.Xr utf2 5 -encoding. -The only differences between the two are that -.Nm -handles the full 31-bit character set of -.Tn ISO -10646 -whereas -.Xr utf2 5 -is limited to a 16-bit character set, -and that -.Xr utf2 5 -accepts redundant, -.No non- Ns Dq "shortest form" -representations of characters. -.Sh SEE ALSO -.Xr euc 5 , -.Xr utf2 5 -.Rs -.%A "Rob Pike" -.%A "Ken Thompson" -.%T "Hello World" -.%J "Proceedings of the Winter 1993 USENIX Technical Conference" -.%Q "USENIX Association" -.%D "January 1993" -.Re -.Rs -.%A "F. Yergeau" -.%T "UTF-8, a transformation format of ISO 10646" -.%O "RFC 2279" -.%D "January 1998" -.Re -.Rs -.%Q "The Unicode Consortium" -.%T "The Unicode Standard, Version 3.0" -.%D "2000" -.%O "as amended by the Unicode Standard Annex #27: Unicode 3.1 and by the Unicode Standard Annex #28: Unicode 3.2" -.Re -.Sh STANDARDS -The -.Nm -encoding is compatible with RFC 2279 and Unicode 3.2. diff --git a/src/lib/libc/locale/wcrtomb.3 b/src/lib/libc/locale/wcrtomb.3 deleted file mode 100644 index 432eddf..0000000 --- a/src/lib/libc/locale/wcrtomb.3 +++ /dev/null @@ -1,105 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/wcrtomb.3,v 1.4 2004/04/08 09:59:02 tjr Exp $ -.\" -.Dd April 8, 2004 -.Dt WCRTOMB 3 -.Os -.Sh NAME -.Nm wcrtomb -.Nd "convert a wide-character code to a character (restartable)" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft size_t -.Fn wcrtomb "char * restrict s" "wchar_t wc" "mbstate_t * restrict ps" -.Sh DESCRIPTION -The -.Fn wcrtomb -function stores a multibyte sequence representing the -wide character -.Fa wc , -including any necessary shift sequences, to the -character array -.Fa s , -storing a maximum of -.Dv MB_CUR_MAX -bytes. -.Pp -If -.Fa s -is -.Dv NULL , -.Fn wcrtomb -behaves as if -.Fa s -pointed to an internal buffer and -.Fa wc -was a null wide character (L'\e0'). -.Pp -The -.Ft mbstate_t -argument, -.Fa ps , -is used to keep track of the shift state. -If it is -.Dv NULL , -.Fn wcrtomb -uses an internal, static -.Vt mbstate_t -object, which is initialized to the initial conversion state -at program startup. -.Sh RETURN VALUES -The -.Fn wcrtomb -functions returns the length (in bytes) of the multibyte sequence -needed to represent -.Fa wc , -or -.Po Vt size_t Pc Ns \-1 -if -.Fa wc -is not a valid wide character code. -.Sh ERRORS -The -.Fn wcrtomb -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid wide character code was specified. -.It Bq Er EINVAL -The conversion state is invalid. -.El -.Sh SEE ALSO -.Xr mbrtowc 3 , -.Xr multibyte 3 , -.Xr setlocale 3 , -.Xr wctomb 3 -.Sh STANDARDS -The -.Fn wcrtomb -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/wcsftime.3 b/src/lib/libc/locale/wcsftime.3 deleted file mode 100644 index 5f29f39..0000000 --- a/src/lib/libc/locale/wcsftime.3 +++ /dev/null @@ -1,66 +0,0 @@ -.\" Copyright (c) 2002 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/wcsftime.3,v 1.2 2002/11/29 17:35:09 ru Exp $ -.\" -.Dd September 8, 2002 -.Dt WCSFTIME 3 -.Os -.Sh NAME -.Nm wcsftime -.Nd "convert date and time to a wide-character string" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft size_t -.Fo wcsftime -.Fa "wchar_t * restrict wcs" "size_t maxsize" -.Fa "const wchar_t * restrict format" "const struct tm * restrict timeptr" -.Fc -.Sh DESCRIPTION -The -.Fn wcsftime -function is equivalent to the -.Fn strftime -function except for the types of its arguments. -Refer to -.Xr strftime 3 -for a detailed description. -.Sh COMPATIBILITY -Some early implementations of -.Fn wcsftime -had a -.Fa format -argument with type -.Vt "const char *" -instead of -.Vt "const wchar_t *" . -.Sh SEE ALSO -.Xr strftime 3 -.Sh STANDARDS -The -.Fn wcsftime -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/wcsrtombs.3 b/src/lib/libc/locale/wcsrtombs.3 deleted file mode 100644 index 37b4184..0000000 --- a/src/lib/libc/locale/wcsrtombs.3 +++ /dev/null @@ -1,111 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/wcsrtombs.3,v 1.4 2004/04/08 09:59:02 tjr Exp $ -.\" -.Dd April 8, 2004 -.Dt WCSRTOMBS 3 -.Os -.Sh NAME -.Nm wcsrtombs -.Nd "convert a wide-character string to a character string (restartable)" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft size_t -.Fo wcsrtombs -.Fa "char * restrict dst" "const wchar_t ** restrict src" -.Fa "size_t len" "mbstate_t * restrict ps" -.Fc -.Sh DESCRIPTION -The -.Fn wcsrtombs -function converts a string of wide characters indirectly pointed to by -.Fa src -to a corresponding multibyte character string stored in the array -pointed to by -.Fa dst . -No more than -.Fa len -bytes are written to -.Fa dst . -.Pp -If -.Fa dst -is -.Dv NULL , -no characters are stored. -.Pp -If -.Fa dst -is not -.Dv NULL , -the pointer pointed to by -.Fa src -is updated to point to the character after the one that conversion stopped at. -If conversion stops because a null character is encountered, -.Fa *src -is set to -.Dv NULL . -.Pp -The -.Vt mbstate_t -argument, -.Fa ps , -is used to keep track of the shift state. -If it is -.Dv NULL , -.Fn wcsrtombs -uses an internal, static -.Vt mbstate_t -object, which is initialized to the initial conversion state -at program startup. -.Sh RETURN VALUES -The -.Fn wcsrtombs -function returns the number of bytes stored in -the array pointed to by -.Fa dst -(not including any terminating null), if successful, otherwise it returns -.Po Vt size_t Pc Ns \-1 . -.Sh ERRORS -The -.Fn wcsrtombs -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid wide character was encountered. -.It Bq Er EINVAL -The conversion state is invalid. -.El -.Sh SEE ALSO -.Xr mbsrtowcs 3 , -.Xr wcrtomb 3 , -.Xr wcstombs 3 -.Sh STANDARDS -The -.Fn wcsrtombs -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/wcstod.3 b/src/lib/libc/locale/wcstod.3 deleted file mode 100644 index e63a2c8..0000000 --- a/src/lib/libc/locale/wcstod.3 +++ /dev/null @@ -1,73 +0,0 @@ -.\" Copyright (c) 2002, 2003 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/wcstod.3,v 1.4 2003/05/22 13:02:27 ru Exp $ -.\" -.Dd February 22, 2003 -.Dt WCSTOD 3 -.Os -.Sh NAME -.Nm wcstof , -.Nm wcstod , -.Nm wcstold -.Nd convert string to -.Vt float , double -or -.Vt "long double" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft float -.Fn wcstof "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" -.Ft "long double" -.Fn wcstold "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" -.Ft double -.Fn wcstod "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" -.Sh DESCRIPTION -The -.Fn wcstof , -.Fn wcstod -and -.Fn wcstold -functions are the wide-character versions of the -.Fn strtof , -.Fn strtod -and -.Fn strtold -functions. -Refer to -.Xr strtod 3 -for details. -.Sh SEE ALSO -.Xr strtod 3 , -.Xr wcstol 3 -.Sh STANDARDS -The -.Fn wcstof , -.Fn wcstod -and -.Fn wcstold -functions conform to -.St -isoC-99 . diff --git a/src/lib/libc/locale/wcstol.3 b/src/lib/libc/locale/wcstol.3 deleted file mode 100644 index 306f223..0000000 --- a/src/lib/libc/locale/wcstol.3 +++ /dev/null @@ -1,94 +0,0 @@ -.\" Copyright (c) 2002 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/wcstol.3,v 1.4 2002/11/29 17:35:09 ru Exp $ -.\" -.Dd September 7, 2002 -.Dt WCSTOL 3 -.Os -.Sh NAME -.Nm wcstol , wcstoul , -.Nm wcstoll , wcstoull , -.Nm wcstoimax , wcstoumax -.Nd "convert a wide character string value to a" -.Vt long , -.Vt "unsigned long" , -.Vt "long long" , -.Vt "unsigned long long" , -.Vt intmax_t -or -.Vt uintmax_t -integer -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft long -.Fn wcstol "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base" -.Ft "unsigned long" -.Fn wcstoul "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base" -.Ft "long long" -.Fn wcstoll "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base" -.Ft "unsigned long long" -.Fn wcstoull "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base" -.In inttypes.h -.Ft intmax_t -.Fn wcstoimax "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base" -.Ft uintmax_t -.Fn wcstoumax "const wchar_t * restrict nptr" "wchar_t ** restrict endptr" "int base" -.Sh DESCRIPTION -The -.Fn wcstol , -.Fn wcstoul , -.Fn wcstoll , -.Fn wcstoull , -.Fn wcstoimax -and -.Fn wcstoumax -functions are wide-character versions of the -.Fn strtol , -.Fn strtoul , -.Fn strtoll , -.Fn strtoull , -.Fn strtoimax -and -.Fn strtoumax -functions, respectively. -Refer to their manual pages (for example -.Xr strtol 3 ) -for details. -.Sh SEE ALSO -.Xr strtol 3 , -.Xr strtoul 3 -.Sh STANDARDS -The -.Fn wcstol , -.Fn wcstoul , -.Fn wcstoll , -.Fn wcstoull , -.Fn wcstoimax -and -.Fn wcstoumax -functions conform to -.St -isoC-99 . diff --git a/src/lib/libc/locale/wcstombs.3 b/src/lib/libc/locale/wcstombs.3 deleted file mode 100644 index b247f39..0000000 --- a/src/lib/libc/locale/wcstombs.3 +++ /dev/null @@ -1,91 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Donn Seeley of BSDI. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" From @(#)multibyte.3 8.1 (Berkeley) 6/4/93 -.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp -.\" $FreeBSD: src/lib/libc/locale/wcstombs.3,v 1.3 2004/04/08 09:59:02 tjr Exp $ -.\" -.Dd April 8, 2004 -.Dt WCSTOMBS 3 -.Os -.Sh NAME -.Nm wcstombs , -.Nd convert a wide-character string to a character string -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In stdlib.h -.Ft size_t -.Fn wcstombs "char * restrict mbstring" "const wchar_t * restrict wcstring" "size_t nbytes" -.Sh DESCRIPTION -The -.Fn wcstombs -function converts a wide character string -.Fa wcstring -into a multibyte character string, -.Fa mbstring , -beginning in the initial conversion state. -Up to -.Fa nbytes -bytes are stored in -.Fa mbstring . -Partial multibyte characters at the end of the string are not stored. -The multibyte character string is null terminated if there is room. -.Sh RETURN VALUES -The -.Fn wcstombs -function returns the number of bytes converted -(not including any terminating null), if successful, otherwise it returns -.Po Vt size_t Pc Ns \-1 . -.Sh ERRORS -The -.Fn wcstombs -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid wide character was encountered. -.It Bq Er EINVAL -The conversion state is invalid. -.El -.Sh SEE ALSO -.Xr mbstowcs 3 , -.Xr multibyte 3 , -.Xr wcsrtombs 3 , -.Xr wctomb 3 -.Sh STANDARDS -The -.Fn wcstombs -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/wctomb.3 b/src/lib/libc/locale/wctomb.3 deleted file mode 100644 index 734e8b9..0000000 --- a/src/lib/libc/locale/wctomb.3 +++ /dev/null @@ -1,112 +0,0 @@ -.\" Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. -.\" Copyright (c) 1993 -.\" The Regents of the University of California. All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Donn Seeley of BSDI. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" 3. All advertising materials mentioning features or use of this software -.\" must display the following acknowledgement: -.\" This product includes software developed by the University of -.\" California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors -.\" may be used to endorse or promote products derived from this software -.\" without specific prior written permission. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" From @(#)multibyte.3 8.1 (Berkeley) 6/4/93 -.\" From FreeBSD: src/lib/libc/locale/multibyte.3,v 1.22 2003/11/08 03:23:11 tjr Exp -.\" $FreeBSD: src/lib/libc/locale/wctomb.3,v 1.2 2004/04/08 09:59:02 tjr Exp $ -.\" -.Dd April 8, 2004 -.Dt WCTOMB 3 -.Os -.Sh NAME -.Nm wctomb -.Nd convert a wide-character code to a character -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In stdlib.h -.Ft int -.Fn wctomb "char *mbchar" "wchar_t wchar" -.Sh DESCRIPTION -The -.Fn wctomb -function converts a wide character -.Fa wchar -into a multibyte character and stores -the result in -.Fa mbchar . -The object pointed to by -.Fa mbchar -must be large enough to accommodate the multibyte character, which -may be up to -.Dv MB_LEN_MAX -bytes. -.Pp -A call with a null -.Fa mbchar -pointer returns nonzero if the current locale requires shift states, -zero otherwise; -if shift states are required, the shift state is reset to the initial state. -.Sh RETURN VALUES -If -.Fa mbchar -is -.Dv NULL , -the -.Fn wctomb -function returns nonzero if shift states are supported, -zero otherwise. -If -.Fa mbchar -is valid, -.Fn wctomb -returns -the number of bytes processed in -.Fa mbchar , -or \-1 if no multibyte character -could be recognized or converted. -In this case, -.Fn wctomb Ns No 's -internal conversion state is undefined. -.Sh ERRORS -The -.Fn wctomb -function will fail if: -.Bl -tag -width Er -.It Bq Er EILSEQ -An invalid multibyte sequence was detected. -.It Bq Er EINVAL -The internal conversion state is invalid. -.El -.Sh SEE ALSO -.Xr mbtowc 3 , -.Xr wcrtomb 3 , -.Xr wcstombs 3 , -.Xr wctob 3 -.Sh STANDARDS -The -.Fn wctomb -function conforms to -.St -isoC-99 . diff --git a/src/lib/libc/locale/wctrans.3 b/src/lib/libc/locale/wctrans.3 deleted file mode 100644 index 0f2bc65..0000000 --- a/src/lib/libc/locale/wctrans.3 +++ /dev/null @@ -1,122 +0,0 @@ -.\" Copyright (c) 2002 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/wctrans.3,v 1.3 2002/11/29 17:35:09 ru Exp $ -.\" -.Dd October 3, 2002 -.Dt WCTRANS 3 -.Os -.Sh NAME -.Nm towctrans , wctrans -.Nd "wide character mapping functions" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wctype.h -.Ft wint_t -.Fn towctrans "wint_t wc" "wctrans_t desc" -.Ft wctrans_t -.Fn wctrans "const char *charclass" -.Sh DESCRIPTION -The -.Fn wctrans -function returns a value of type -.Vt wctrans_t -which represents the requested wide character mapping operation and -may be used as the second argument for calls to -.Fn towctrans . -.Pp -The following character mapping names are recognised: -.Bl -column -offset indent ".Li tolower" ".Li toupper" -.It Li "tolower toupper" -.El -.Pp -The -.Fn towctrans -function transliterates the wide character -.Fa wc -according to the mapping described by -.Fa desc . -.Sh RETURN VALUES -The -.Fn towctrans -function returns the transliterated character if successful, otherwise -it returns the character unchanged and sets -.Va errno . -.Pp -The -.Fn wctrans -function returns non-zero if successful, otherwise it returns zero -and sets -.Va errno . -.Sh EXAMPLES -Reimplement -.Fn towupper -in terms of -.Fn towctrans -and -.Fn wctrans : -.Bd -literal -offset indent -wint_t -mytowupper(wint_t wc) -{ - return (towctrans(wc, wctrans("toupper"))); -} -.Ed -.Sh ERRORS -The -.Fn towctrans -function will fail if: -.Bl -tag -width Er -.It Bq Er EINVAL -The supplied -.Fa desc -argument is invalid. -.El -.Pp -The -.Fn wctrans -function will fail if: -.Bl -tag -width Er -.It Bq Er EINVAL -The requested mapping name is invalid. -.El -.Sh SEE ALSO -.Xr tolower 3 , -.Xr toupper 3 , -.Xr wctype 3 -.Sh STANDARDS -The -.Fn towctrans -and -.Fn wctrans -functions conform to -.St -p1003.1-2001 . -.Sh HISTORY -The -.Fn towctrans -and -.Fn wctrans -functions first appeared in -.Fx 5.0 . diff --git a/src/lib/libc/locale/wctype.3 b/src/lib/libc/locale/wctype.3 deleted file mode 100644 index 30409f3..0000000 --- a/src/lib/libc/locale/wctype.3 +++ /dev/null @@ -1,118 +0,0 @@ -.\" Copyright (c) 2002 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/wctype.3,v 1.5 2004/03/27 08:59:21 tjr Exp $ -.\" -.Dd March 27, 2004 -.Dt WCTYPE 3 -.Os -.Sh NAME -.Nm iswctype , wctype -.Nd "wide character class functions" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wctype.h -.Ft int -.Fn iswctype "wint_t wc" "wctype_t charclass" -.Ft wctype_t -.Fn wctype "const char *property" -.Sh DESCRIPTION -The -.Fn wctype -function returns a value of type -.Vt wctype_t -which represents the requested wide character class and -may be used as the second argument for calls to -.Fn iswctype . -.Pp -The following character class names are recognised: -.Bl -column -offset indent ".Li alnum" ".Li cntrl" ".Li ideogram" ".Li print" ".Li space" -.It Li "alnum cntrl ideogram print space xdigit" -.It Li "alpha digit lower punct special" -.It Li "blank graph phonogram rune upper" -.El -.Pp -The -.Fn iswctype -function checks whether the wide character -.Fa wc -is in the character class -.Fa charclass . -.Sh RETURN VALUES -The -.Fn iswctype -function returns non-zero if and only if -.Fa wc -has the property described by -.Fa charclass , -or -.Fa charclass -is zero. -.Pp -The -.Fn wctype -function returns 0 if -.Fa property -is invalid, otherwise it returns a value of type -.Vt wctype_t -that can be used in subsequent calls to -.Fn iswctype . -.Sh EXAMPLES -Reimplement -.Xr iswalpha 3 -in terms of -.Fn iswctype -and -.Fn wctype : -.Bd -literal -offset indent -int -myiswalpha(wint_t wc) -{ - return (iswctype(wc, wctype("alpha"))); -} -.Ed -.Sh SEE ALSO -.Xr ctype 3 -.Sh STANDARDS -The -.Fn iswctype -and -.Fn wctype -functions conform to -.St -p1003.1-2001 . -The -.Dq Li ideogram , -.Dq Li phonogram -.Dq Li special , -and -.Dq Li rune -character classes are extensions. -.Sh HISTORY -The -.Fn iswctype -and -.Fn wctype -functions first appeared in -.Fx 5.0 . diff --git a/src/lib/libc/locale/wcwidth.3 b/src/lib/libc/locale/wcwidth.3 deleted file mode 100644 index ed28bf5..0000000 --- a/src/lib/libc/locale/wcwidth.3 +++ /dev/null @@ -1,86 +0,0 @@ -.\" Copyright (c) 2002 Tim J. Robbins -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/lib/libc/locale/wcwidth.3,v 1.3 2002/11/29 17:35:09 ru Exp $ -.\" -.Dd October 3, 2002 -.Dt WCWIDTH 3 -.Os -.Sh NAME -.Nm wcwidth -.Nd "number of column positions of a wide-character code" -.Sh LIBRARY -.Lb libc -.Sh SYNOPSIS -.In wchar.h -.Ft int -.Fn wcwidth "wchar_t wc" -.Sh DESCRIPTION -The -.Fn wcwidth -function determines the number of column positions required to -display the wide character -.Fa wc . -.Sh RETURN VALUES -The -.Fn wcwidth -function returns 0 if the -.Fa wc -argument is a null wide character (L'\e0'), -\-1 if -.Fa wc -is not printable, -otherwise it returns the number of column positions the -character occupies. -.Sh EXAMPLES -This code fragment reads text from standard input and -breaks lines that are more than 20 column positions wide, -similar to the -.Xr fold 1 -utility: -.Bd -literal -offset indent -wint_t ch; -int column, w; - -column = 0; -while ((ch = getwchar()) != WEOF) { - if ((w = wcwidth(ch)) > 0) - column += w; - if (column >= 20) { - putwchar(L'\en'); - column = 0; - } - putwchar(ch); - if (ch == L'\en') - column = 0; -} -.Ed -.Sh SEE ALSO -.Xr iswprint 3 , -.Xr wcswidth 3 -.Sh STANDARDS -The -.Fn wcwidth -function conforms to -.St -p1003.1-2001 .