Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Clarify that strunvisx() and strnunvisx() take ...
details: https://anonhg.NetBSD.org/src/rev/6554029612e5
branches: trunk
changeset: 998940:6554029612e5
user: bad <bad%NetBSD.org@localhost>
date: Wed May 08 15:37:41 2019 +0000
description:
Clarify that strunvisx() and strnunvisx() take the same flags as unvis().
Document VIS_NOESCAPE for unvis().
Bump date.
diffstat:
lib/libc/gen/unvis.3 | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
diffs (55 lines):
diff -r 2291398a536c -r 6554029612e5 lib/libc/gen/unvis.3
--- a/lib/libc/gen/unvis.3 Wed May 08 14:44:42 2019 +0000
+++ b/lib/libc/gen/unvis.3 Wed May 08 15:37:41 2019 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: unvis.3,v 1.29 2017/10/24 19:14:55 abhinav Exp $
+.\" $NetBSD: unvis.3,v 1.30 2019/05/08 15:37:41 bad Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)unvis.3 8.2 (Berkeley) 12/11/93
.\"
-.Dd March 12, 2011
+.Dd May 8, 2019
.Dt UNVIS 3
.Os
.Sh NAME
@@ -99,16 +99,18 @@
.Pp
The
.Fn strunvisx
-function does the same as the
+and
+.Fn strnunvisx
+functions do the same as the
.Fn strunvis
-function,
-but it allows you to add a flag that specifies the style the string
+and
+.Fn strnunvis
+functions,
+but take a flag that specifies the style the string
.Ar src
is encoded with.
-Currently, the supported flags are:
-.Dv VIS_HTTPSTYLE
-and
-.Dv VIS_MIMESTYLE .
+The meaning of the flag is the same as explained below for
+.Fn unvis .
.Pp
The
.Fn unvis
@@ -157,6 +159,10 @@
.Fa flag
argument is also used to specify the encoding style of the source.
If set to
+.Dv VIS_NOESCAPE
+.Fn unvis
+will not decode backslash escapes.
+If set to
.Dv VIS_HTTPSTYLE
or
.Dv VIS_HTTP1808 ,
Home |
Main Index |
Thread Index |
Old Index