Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src ad manpage for wide character string manipulation (wmem*/wcs*)
details: https://anonhg.NetBSD.org/src/rev/26d3da83c886
branches: trunk
changeset: 501005:26d3da83c886
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Dec 22 04:59:41 2000 +0000
description:
ad manpage for wide character string manipulation (wmem*/wcs*)
diffstat:
distrib/sets/lists/comp/mi | 38 ++++++++++++-
lib/libc/locale/Makefile.inc | 13 +++-
lib/libc/locale/wmemchr.3 | 128 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 176 insertions(+), 3 deletions(-)
diffs (223 lines):
diff -r 69380e260f15 -r 26d3da83c886 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi Fri Dec 22 04:59:35 2000 +0000
+++ b/distrib/sets/lists/comp/mi Fri Dec 22 04:59:41 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.289 2000/12/22 02:18:58 itojun Exp $
+# $NetBSD: mi,v 1.290 2000/12/22 04:59:41 itojun Exp $
./sys comp-sysutil-root
./usr/bin/addr2line comp-miscutil-bin
./usr/bin/ar comp-util-bin
@@ -2804,6 +2804,24 @@
./usr/share/man/cat3/vwarnx.0 comp-c-catman
./usr/share/man/cat3/warn.0 comp-c-catman
./usr/share/man/cat3/warnx.0 comp-c-catman
+./usr/share/man/cat3/wcscat.0 comp-c-catman
+./usr/share/man/cat3/wcschr.0 comp-c-catman
+./usr/share/man/cat3/wcscmp.0 comp-c-catman
+./usr/share/man/cat3/wcscpy.0 comp-c-catman
+./usr/share/man/cat3/wcscspn.0 comp-c-catman
+./usr/share/man/cat3/wcslen.0 comp-c-catman
+./usr/share/man/cat3/wcsncat.0 comp-c-catman
+./usr/share/man/cat3/wcsncmp.0 comp-c-catman
+./usr/share/man/cat3/wcsncpy.0 comp-c-catman
+./usr/share/man/cat3/wcspbrk.0 comp-c-catman
+./usr/share/man/cat3/wcsrchr.0 comp-c-catman
+./usr/share/man/cat3/wcsspn.0 comp-c-catman
+./usr/share/man/cat3/wcsstr.0 comp-c-catman
+./usr/share/man/cat3/wmemchr.0 comp-c-catman
+./usr/share/man/cat3/wmemcmp.0 comp-c-catman
+./usr/share/man/cat3/wmemcpy.0 comp-c-catman
+./usr/share/man/cat3/wmemmove.0 comp-c-catman
+./usr/share/man/cat3/wmemset.0 comp-c-catman
./usr/share/man/cat3/xdr.0 comp-c-catman
./usr/share/man/cat3/xdr_accepted_reply.0 comp-c-catman
./usr/share/man/cat3/xdr_array.0 comp-c-catman
@@ -4587,6 +4605,24 @@
./usr/share/man/man3/vwarnx.3 comp-c-man
./usr/share/man/man3/warn.3 comp-c-man
./usr/share/man/man3/warnx.3 comp-c-man
+./usr/share/man/man3/wcscat.3 comp-c-man
+./usr/share/man/man3/wcschr.3 comp-c-man
+./usr/share/man/man3/wcscmp.3 comp-c-man
+./usr/share/man/man3/wcscpy.3 comp-c-man
+./usr/share/man/man3/wcscspn.3 comp-c-man
+./usr/share/man/man3/wcslen.3 comp-c-man
+./usr/share/man/man3/wcsncat.3 comp-c-man
+./usr/share/man/man3/wcsncmp.3 comp-c-man
+./usr/share/man/man3/wcsncpy.3 comp-c-man
+./usr/share/man/man3/wcspbrk.3 comp-c-man
+./usr/share/man/man3/wcsrchr.3 comp-c-man
+./usr/share/man/man3/wcsspn.3 comp-c-man
+./usr/share/man/man3/wcsstr.3 comp-c-man
+./usr/share/man/man3/wmemchr.3 comp-c-man
+./usr/share/man/man3/wmemcmp.3 comp-c-man
+./usr/share/man/man3/wmemcpy.3 comp-c-man
+./usr/share/man/man3/wmemmove.3 comp-c-man
+./usr/share/man/man3/wmemset.3 comp-c-man
./usr/share/man/man3/xdr.3 comp-c-man
./usr/share/man/man3/xdr_accepted_reply.3 comp-c-man
./usr/share/man/man3/xdr_array.3 comp-c-man
diff -r 69380e260f15 -r 26d3da83c886 lib/libc/locale/Makefile.inc
--- a/lib/libc/locale/Makefile.inc Fri Dec 22 04:59:35 2000 +0000
+++ b/lib/libc/locale/Makefile.inc Fri Dec 22 04:59:41 2000 +0000
@@ -1,5 +1,5 @@
# from: @(#)Makefile.inc 5.1 (Berkeley) 2/18/91
-# $NetBSD: Makefile.inc,v 1.26 2000/12/22 02:18:58 itojun Exp $
+# $NetBSD: Makefile.inc,v 1.27 2000/12/22 04:59:41 itojun Exp $
# locale sources
.PATH: ${ARCHDIR}/locale ${.CURDIR}/locale
@@ -22,7 +22,7 @@
# -D_PATH_LOCALEMODULE=\"/usr/lib/runemodule\"
# to be dynamically loaded
#SRCS+= big5.c euc.c euctw.c iso2022.c mskanji.c utf2.c utf8.c
-MAN+= iswalnum.3 towlower.3
+MAN+= iswalnum.3 towlower.3 wmemchr.3
MLINKS+=iswalnum.3 iswalpha.3 iswalnum.3 iswblank.3 \
iswalnum.3 iswcntrl.3 iswalnum.3 iswdigit.3 \
@@ -31,3 +31,12 @@
iswalnum.3 iswspace.3 iswalnum.3 iswupper.3 \
iswalnum.3 iswxdigit.3
MLINKS+=towlower.3 towupper.3
+MLINKS+=wmemchr.3 wmemcmp.3 wmemchr.3 wmemcpy.3 \
+ wmemchr.3 wmemmove.3 wmemchr.3 wmemset.3 \
+ wmemchr.3 wcscat.3 wmemchr.3 wcschr.3 \
+ wmemchr.3 wcscmp.3 wmemchr.3 wcscpy.3 \
+ wmemchr.3 wcscspn.3 wmemchr.3 wcslen.3 \
+ wmemchr.3 wcsncat.3 wmemchr.3 wcsncmp.3 \
+ wmemchr.3 wcsncpy.3 wmemchr.3 wcspbrk.3 \
+ wmemchr.3 wcsrchr.3 wmemchr.3 wcsspn.3 \
+ wmemchr.3 wcsstr.3
diff -r 69380e260f15 -r 26d3da83c886 lib/libc/locale/wmemchr.3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libc/locale/wmemchr.3 Fri Dec 22 04:59:41 2000 +0000
@@ -0,0 +1,128 @@
+.\" $NetBSD: wmemchr.3,v 1.1 2000/12/22 04:59:41 itojun Exp $
+.\"
+.\" Copyright (c) 1990, 1991, 1993
+.\" The Regents of the University of California. All rights reserved.
+.\"
+.\" This code is derived from software contributed to Berkeley by
+.\" Chris Torek and 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.
+.\"
+.\" from: @(#)strcpy.3 8.1 (Berkeley) 6/4/93
+.\"
+.Dd December 22, 2000
+.Dt WMEMCHR 3
+.Os
+.Sh NAME
+.Nm wmemchr ,
+.Nm wmemcmp ,
+.Nm wmemcpy ,
+.Nm wmemmove ,
+.Nm wmemset ,
+.Nm wcscat ,
+.Nm wcschr ,
+.Nm wcscmp ,
+.Nm wcscpy ,
+.Nm wcscspn ,
+.Nm wcslen ,
+.Nm wcsncat ,
+.Nm wcsncmp ,
+.Nm wcsncpy ,
+.Nm wcspbrk ,
+.Nm wcsrchr ,
+.Nm wcsspn ,
+.Nm wcsstr
+.Nd wide character string manipulation utilities
+.Sh LIBRARY
+.Lb libc
+.Sh SYNOPSIS
+.Fd #include <wchar.h>
+.Ft wchar_t *
+.Fn wmemchr "const wchar_t *s" "wchar_t c" "size_t n"
+.Ft int
+.Fn wmemcmp "const wchar_t *s1" "const wchar_t *s2" "size_t n"
+.Ft wchar_t *
+.Fn wmemcpy "wchar_t *s1" "const wchar_t *s2" "size_t n"
+.Ft wchar_t *
+.Fn wmemmove "wchar_t *s1" "const wchar_t *s2" "size_t n"
+.Ft wchar_t *
+.Fn wmemset "wchar_t *s" "wchar_t c" "size_t n"
+.Ft wchar_t *
+.Fn wcscat "wchar_t *s1" "const wchar_t *s2"
+.Ft wchar_t *
+.Fn wcschr "const wchar_t *s" "wchar_t c"
+.Ft int
+.Fn wcscmp "const wchar_t *s1" "const wchar_t *s2"
+.Ft wchar_t *
+.Fn wcscpy "wchar_t *s1" "const wchar_t *s2"
+.Ft size_t
+.Fn wcscspn "const wchar_t *s1" "const wchar_t *s2"
+.Ft size_t
+.Fn wcslen "const wchar_t *s"
+.Ft wchar_t *
+.Fn wcsncat "wchar_t *s1" "const wchar_t *s2" "size_t n"
+.Ft int
+.Fn wcsncmp "const wchar_t *s1" "const wchar_t * s2" "size_t n"
+.Ft wchar_t *
+.Fn wcsncpy "wchar_t *s1" "const wchar_t *s2" "size_t n"
+.Ft wchar_t *
+.Fn wcspbrk "const wchar_t *s1" "const wchar_t *s2"
+.Ft wchar_t *
+.Fn wcsrchr "const wchar_t *s" "wchar_tc c"
+.Ft size_t
+.Fn wcsspn "const wchar_t *s1" "const wchar_t *s2"
+.Ft wchar_t *
+.Fn wcsstr "const wchar_t *s1" "const wchar_t *s2"
+.Sh DESCRIPTION
+The functions implement string manipulation operation over wide character
+strings.
+For detailed description, refer to documents for singlebyte counterpart, like
+.Xr memchr 3 .
+.Sh SEE ALSO
+.Xr memchr 3 ,
+.Xr memcmp 3 ,
+.Xr memcpy 3 ,
+.Xr memmove 3 ,
+.Xr memset 3 ,
+.Xr strcat 3 ,
+.Xr strchr 3 ,
+.Xr strcmp 3 ,
+.Xr strcpy 3 ,
+.Xr strcspn 3 ,
+.Xr strlen 3 ,
+.Xr strncat 3 ,
+.Xr strncmp 3 ,
+.Xr strncpy 3 ,
+.Xr strpbrk 3 ,
+.Xr strrchr 3 ,
+.Xr strspn 3 ,
+.Xr strstr 3
+.Sh STANDARDS
+The functions conform to ISO/IEC 9899:1999(E).
Home |
Main Index |
Thread Index |
Old Index