Module Name: src
Committed By: bad
Date: Wed May 8 15:37:41 UTC 2019
Modified Files:
src/lib/libc/gen: unvis.3
Log Message:
Clarify that strunvisx() and strnunvisx() take the same flags as unvis().
Document VIS_NOESCAPE for unvis().
Bump date.
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/gen/unvis.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/unvis.3
diff -u src/lib/libc/gen/unvis.3:1.29 src/lib/libc/gen/unvis.3:1.30
--- src/lib/libc/gen/unvis.3:1.29 Tue Oct 24 19:14:55 2017
+++ src/lib/libc/gen/unvis.3 Wed May 8 15:37:41 2019
@@ -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 @@ should be equal to the size of
.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 @@ The
.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 ,