base64 / mime prc table
Brian K. White
brian at aljex.com
Tue Nov 9 16:20:04 PST 2004
Mark had said he though I had written a prc table to do base64, and I almost
thought I remembered that but not quite, and if I HAD, I wanted to find it
because I could use that in a few places and would rather use that than what
I am currently doing with a user command. (although, really the user command
is working great and it has one advantage in that it's a single black box
that both fp processes and cgi & cron scripts use to code/decode stuff for
each other and I can make any kind of change I want in that script and not
break anything else as long as the script still decodes what it encodes)
I went digging and I found it was this that he was thinking of which I had
forgotten all about, and which I can ALSO use in several places. It's a URL
encoder in filepro, which only took about 1 line of actual work, 2 or 3
lines of loop set-up, and several lines of comment.
http://www.aljex.com/bkw/filepro/#urlenc
I only added the c files just now and unfortunately they don't work as user
commands yet since they don't accept stdin.
I'm using them within a different already existing script that does work as
a user command.
I never made a decoder in filepro but there is a decoder sco binary and c
source there and a decoder should be almost as little in fp as the encoder.
There are awk and perl implimentations of this around but this is the kind
of thing I tend to have in the middle of loops in the middle of much-used
call tables on many-user systems such that it gets run a *lot* and so it
needs to be as light and lean as possible, ideally all in filepro, next in
as light as possible a user command, next in as light as possible a system
command or within a script wrapper that can act as a user command.
Brian K. White -- brian at aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
More information about the Filepro-list
mailing list