[Info-vax] OpenVMS - DCL - Data entry filtering
mcleanjoh at gmail.com
mcleanjoh at gmail.com
Thu Mar 26 17:14:20 EDT 2015
It's an interesting problem testing every character of input against every character that's not permitted. Almost whichever way you do it there are multiple passes through one string (eg. using f$locate on the input string).
JFM has an interesting alternative solution that involves a single pass through the main string and replacing the characters each time. It's got to be more efficient than multiple passes.
Maybe there's a use for a "test for characters" function or program, with arguments of a main string and a string/list of disallowed characters.
More information about the Info-vax
mailing list