Remove trailing whitespace only.

This commit is contained in:
Sheldon Hearn 2000-07-03 08:31:02 +00:00
parent d72b904079
commit 256dba38d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62446
2 changed files with 18 additions and 18 deletions

View File

@ -43,11 +43,11 @@
.Lb libc
.Sh SYNOPSIS
.Fd #include <vis.h>
.Ft int
.Ft int
.Fn unvis "char *cp" "int c" "int *astate" "int flag"
.Ft int
.Ft int
.Fn strunvis "char *dst" "const char *src"
.Ft int
.Ft int
.Fn strunvisx "char *dst" "const char *src" "int flag"
.Sh DESCRIPTION
The
@ -61,7 +61,7 @@ by the
.Xr vis 3
function, back into
the original form. Unvis is called with successive characters in
.Ar c
.Ar c
until a valid
sequence is recognized, at which time the decoded character is
available at the character pointed to by
@ -123,7 +123,7 @@ has several return codes that must be handled properly. They are:
.Bl -tag -width UNVIS_VALIDPUSH
.It Li \&0 (zero)
Another character is necessary; nothing has been recognized yet.
.It Dv UNVIS_VALID
.It Dv UNVIS_VALID
A valid character has been recognized and is available at the location
pointed to by cp.
.It Dv UNVIS_VALIDPUSH

View File

@ -44,9 +44,9 @@
.Fd #include <vis.h>
.Ft char *
.Fn vis "char *dst" "int c" "int flag" "int nextc"
.Ft int
.Ft int
.Fn strvis "char *dst" "const char *src" "int flag"
.Ft int
.Ft int
.Fn strvisx "char *dst" "const char *src" "size_t len" "int flag"
.Sh DESCRIPTION
The
@ -62,11 +62,11 @@ needs no encoding, it is copied in unaltered. The string is
null terminated, and a pointer to the end of the string is
returned. The maximum length of any encoding is four
characters (not including the trailing
.Dv NUL ) ;
.Dv NUL ) ;
thus, when
encoding a set of characters into a buffer, the size of the buffer should
be four times the number of characters encoded, plus one for the trailing
.Dv NUL .
.Dv NUL .
The flag parameter is used for altering the default range of
characters considered for encoding and for altering the visual
representation.
@ -91,7 +91,7 @@ function encodes characters from
.Fa src
up to the
first
.Dv NUL .
.Dv NUL .
The
.Fn strvisx
function encodes exactly
@ -111,14 +111,14 @@ must be four times the number
of characters encoded from
.Fa src
(plus one for the
.Dv NUL ) .
.Dv NUL ) .
Both
forms return the number of characters in dst (not including
the trailing
.Dv NUL ) .
.Dv NUL ) .
.Pp
The encoding is a unique, invertible representation composed entirely of
graphic characters; it can be decoded back into the original form using
graphic characters; it can be decoded back into the original form using
the
.Xr unvis 3
or
@ -127,7 +127,7 @@ functions.
.Pp
There are two parameters that can be controlled: the range of
characters that are encoded, and the type
of representation used.
of representation used.
By default, all non-graphic characters.
except space, tab, and newline are encoded.
(See
@ -137,23 +137,23 @@ alter this:
.Bl -tag -width VIS_WHITEX
.It Dv VIS_SP
Also encode space.
.It Dv VIS_TAB
.It Dv VIS_TAB
Also encode tab.
.It Dv VIS_NL
Also encode newline.
.It Dv VIS_WHITE
.It Dv VIS_WHITE
Synonym for
.Dv VIS_SP
\&|
.Dv VIS_TAB
\&|
.Dv VIS_NL .
.It Dv VIS_SAFE
.It Dv VIS_SAFE
Only encode "unsafe" characters. Unsafe means control
characters which may cause common terminals to perform
unexpected functions. Currently this form allows space,
tab, newline, backspace, bell, and return - in addition
to all graphic characters - unencoded.
to all graphic characters - unencoded.
.El
.Pp
There are three forms of encoding.