Document towlower() and towupper() in separate manual pages instead of
trying to confusingly document both on the same page. The new manual pages are based on tolower(3) and toupper(3) instead of the old towlower(3).
This commit is contained in:
parent
9981ef2702
commit
b06b097805
@ -25,7 +25,8 @@ MAN+= btowc.3 \
|
||||
mbsrtowcs.3 multibyte.3 \
|
||||
nl_langinfo.3 \
|
||||
rune.3 \
|
||||
setlocale.3 toascii.3 tolower.3 toupper.3 towlower.3 wcsftime.3 \
|
||||
setlocale.3 toascii.3 tolower.3 toupper.3 towlower.3 towupper.3 \
|
||||
wcsftime.3 \
|
||||
wcrtomb.3 \
|
||||
wcsrtombs.3 wcstod.3 wcstol.3 \
|
||||
wctrans.3 wctype.3 wcwidth.3
|
||||
@ -48,7 +49,6 @@ MLINKS+=rune.3 fgetrune.3 rune.3 fputrune.3 rune.3 fungetrune.3 \
|
||||
rune.3 setinvalidrune.3 rune.3 setrunelocale.3 rune.3 sgetrune.3 \
|
||||
rune.3 sputrune.3
|
||||
MLINKS+=setlocale.3 localeconv.3
|
||||
MLINKS+=towlower.3 towupper.3
|
||||
MLINKS+=wcstol.3 wcstoul.3 wcstol.3 wcstoll.3 wcstol.3 wcstoull.3 \
|
||||
wcstol.3 wcstoimax.3 wcstol.3 wcstoumax.3
|
||||
MLINKS+=wctrans.3 towctrans.3
|
||||
|
@ -1,7 +1,5 @@
|
||||
.\" $NetBSD: towlower.3,v 1.4 2002/10/01 17:00:22 junyoung Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1989, 1991 The Regents of the University of California.
|
||||
.\" All rights reserved.
|
||||
.\" 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
|
||||
@ -35,41 +33,38 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)tolower.3 5.2 (Berkeley) 6/29/91
|
||||
.\" @(#)tolower.3 8.1 (Berkeley) 6/4/93
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd December 22, 2000
|
||||
.Dd October 3, 2002
|
||||
.Dt TOWLOWER 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm towlower , towupper
|
||||
.Nd wide character case letter conversion utilities
|
||||
.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"
|
||||
.Ft wint_t
|
||||
.Fn towupper "wint_t wc"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn towlower
|
||||
function converts an upper-case wide character to the corresponding lower-case
|
||||
letter.
|
||||
The
|
||||
.Fn towupper
|
||||
function converts an lower-case wide character to the corresponding upper-case
|
||||
.Fn tolower
|
||||
function converts an upper-case letter to the corresponding lower-case
|
||||
letter.
|
||||
.Sh RETURN VALUES
|
||||
If the argument is an upper/lower-case letter, the
|
||||
.Fn tolower
|
||||
function returns the corresponding counterpart if there is
|
||||
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 toupper 3 ,
|
||||
.Xr towupper 3 ,
|
||||
.Xr wctrans 3
|
||||
.Sh STANDARDS
|
||||
The functions conform to
|
||||
.St -p1003.1-2001 .
|
||||
The
|
||||
.Fn towlower
|
||||
function conforms to
|
||||
.St -isoC-99 .
|
||||
|
70
lib/libc/locale/towupper.3
Normal file
70
lib/libc/locale/towupper.3
Normal file
@ -0,0 +1,70 @@
|
||||
.\" 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$
|
||||
.\"
|
||||
.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 .
|
Loading…
Reference in New Issue
Block a user