Lower case and isalpaha
There is no guarantee in Pascal that alphabetical characters are
continuous. You need to enumerate all the possible chars.
Again, the same comment applies. You would be better advised to
create and initialize two sets, one consisting of the enumerated
upper case chars, and another for the lower case ones. Then the
isalpha can refer to the set lowers + uppers.
Also, since there is no guarantee of any numeric relationship
between the corresponding lower and upper case characters, you
probably need some ******** arrays of char for the conversion.
Your solutions will work only for the limited conditions of Ascii
coding, with no allowance for such things as Swedish, German, etc.
characters.
--
Read about the Sony stealthware that is a security leak, phones
home, and is generally illegal in most parts of the world. Also
the apparent connivance of the various security software firms.
http://www.schneier.com/blog/archives/2005/11/sonys_drm_rootk.html
|