1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
.\" Process this file with
.\" groff -mdoc -Tascii <filename>
.\"
.Dd @docdate@
.Os Linux
.Dt URLCODING \&3 "libbash urlcoding Library Manual"
.\"
.Sh NAME
.\"
.\"
.Nm urlcoding
.Nd a Libbash library for encoding and decoding URL's.
.\"
.\"
.Sh SYNOPSIS
.\"
.Bl -tag -compact -width 12345678900
.\"
.It Cm urlEncodeString Bo Ns Fa -l Ns Bc Aq Ns Fa STRING Ns
.It Cm urlEncodeFile Bo Ns Fa -l Ns Bc Aq Ns Fa FILE Ns
.It Cm urlEncodeStream Bo Ns Fa -l Ns Bc
.It Cm urlDecodeString Aq Ns Fa STRING Ns
.It Cm urlDecodeFile Aq Ns Fa FILENAME Ns
.It Cm urlDecodeStream
.\"
.El
.\"
.\"
.Sh DESCRIPTION
.\"
.Bd -filled
.Nm
is a collection of functions that convert ASCII-text to standard URL's and vice-versa. The AWK code used is based on code by Heiner Steven <heiner.steven@odn.de>
.Pp
The function list:
.Bl -tag -compact -width colorprint12345 -offset indent
.It Sy urlEncodeString
Creates a URL from an ASCII string
.It Sy urlEncodeFile
Converts a file into URL-valid text
.It Sy urlEncodeStream
Converts standard input into URL-valid text
.It Sy urlDecodeString
Converts a URL-encoded text back to a plain-text form
.It Sy urlDecodeFile
Coverts URL-encoded text in a file back to plain text
.It Sy urlDecodeStream
Converts URL-encoded standard input to text
.El
.Ed
.Pp
Detailed interface description follows.
.\"
.Pp
The
.Op Em -l
option for the encoding functions should be used when line-feed characters ('\en') are to be encoded as well.
.Pp
All functions print the results of their conversions to standard output.
.Pp
The exit status of all functions is that of the command 'awk', with '0' for success
.Pp
.\"
.Sh FUNCTIONS DESCRIPTIONS
.Pp
.Ss Cm urlEncodeString Bo Ns Fa -l Ns Bc Aq Ns Fa STRING Ns
.\"
Converts
.Em STRING
- a string of ASCII characters - to URL.
.Pp
.\"
.\"
.Ss Cm urlEncodeFile Bo Ns Fa -l Ns Bc Aq Ns Fa FILE Ns
.\"
Coverts
.Em FILE
of URL-encoded text to plain text
.\"
.Ss Cm urlEncodeStream Bo Ns Fa -l Ns Bc
.\"
Converts text from standard input to URL-text.
.Pp
.\"
.Ss Cm urlDecodeString Aq Ns Fa STRING Ns
.\"
Converts URL-encoded string
.Em STRING
back to text.
.Pp
.\"
.Ss Cm urlDecodeFile Aq Ns Fa FILENAME Ns
.\"
Converts the URL-encoded text in
.Em FILE
to plain text.
.Pp
.\"
.Ss Cm urlDecodeStream
.\"
Converts the URL-encoded text from standard input to plain-text
.Pp
.\"
.\"
.\"
.\"
.Sh AUTHORS
.\"
.\"
.An "Alon Keren" Aq alon.keren@gmail.com
.\"
.\"
.Sh SEE ALSO
.Xr ldbash 1 ,
.Xr libbash 1
|