Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Ansi -iso > Re: Lower case ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 176 of 215
Post > Topic >>

Re: Lower case and isalpaha

by Scott Moore <samiamsansspam@[EMAIL PROTECTED] > Nov 17, 2005 at 01:16 PM

TC wrote On 11/17/05 08:24,:
> Hi,
> there is a function that make lowercase of char or string?
> And there is a standard function that return true/false if char is a 
> character?

All characters are characters. That's why the're called that.

function isalpha(c: char): boolean;

begin

   isalpha := c in ['A'..'Z', 'a'..'z']

end;

function lcase(c: char): char;

begin

   if c in ['A'..'Z'] then c := chr(ord(c)-ord('A')+ord('a'));

   lcase := c

end;

type string = packed array [1..100];

procedure lcases(var s: string);

var i: integer;

begin

   for i := 1 to 100 do s[i] := lcase(s[i])

end;

Enjoy.
 




 3 Posts in Topic:
Lower case and isalpaha
TC <tecomeco@[EMAIL PR  2005-11-17 16:24:47 
Re: Lower case and isalpaha
Scott Moore <samiamsan  2005-11-17 13:16:31 
Re: Lower case and isalpaha
"Chuck F. " <  2005-12-10 16:43:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:41:45 CDT 2008.