Edit question (was Re: string manipulation question)

Kenneth Brody kenbrody at bestweb.net
Sun Dec 12 17:33:52 PST 2004


"Jean-Pierre A. Radley" wrote:
[...]
> Because substituting the four characters
>         "uary"
> for the four characters
>         "    "
> does not change the length of the input string,
> whereas substituting <two characters> for
> <one character> expands the string length?

No, that would be:

    "Jan" !"    "!<uary>

The "<uary>" is strictly "insert if not already there".

Imagine the edit:

    dateexp    monexp <" "> {N} [ "," <" "> {N} ]

This will convert "Dec12,2004" into "December 12, 2004".  (Assuming the
field is at least 17 characters long.)  Obviously, there weren't four
spaces to remove after the "Dec".

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody/at\spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>



More information about the Filepro-list mailing list