[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Upper/Lower
> Gee, Nathan, I smell an article. One of the really powerful
> capabilities of SQR is the ability to add user written functions.
> Write a function in C, add it to ufunc.c, compile it, relink the
> SQR executable, and voila, you have a new function that can be used
> in LET, WHILE, IF, etc. Just imagine:
>
> let $newstring = initcap($oldstring)
>
As Wes mentioned, the SQR Language Tutorial does give exactly this example
in its section on ufuncs. However, relinking SQR is not always possible; it
would be nice if fairly standard functions like initcap were avaible in the
baseline language.
Of course, having someone write a ufuncs to do various string processing
would be a first step towards getting them included in the language.
I can't relink SQR myself, but I am putting together a list of string
functions I'd like to suggest for possible inclusion in SQR. Initcap is
one, as is "unstring-into-an-array" for use when you don't know how many
"pieces" you'll have after you use unstring. I'll plan to post my list to
sqr-users when I get a chance to clean it up.
If anyone has particular suggestions for string functions they've needed
while programming in SQR, I'd be interested to hear. (Please send them
directly to me since I'll be summarizing to the mailing list once I've
collected the suggestions.)
Nathan
----------------------------------------------------------------------------
Nathan Treadway | Ray Ontko & Co. | info@ontko.com (auto-reply server)
nathant@ontko.com | Richmond, IN | ftp.ontko.com, http://www.ontko.com/