mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-29 21:42:49 +02:00
fixed IsCharAlphaNumeric to test for numbers too
git-svn-id: trunk@7537 -
This commit is contained in:
parent
16bf8eb0b8
commit
70d2949737
@ -1112,8 +1112,7 @@ end;
|
||||
Function IsCharAlphaNumeric(c : Char) : Boolean;
|
||||
begin
|
||||
// your code here
|
||||
Result := False;
|
||||
Result := ((ord(c) >= 65) and (ord(c) <=90) ) or ((ord(c) >= 97) and (ord(c) <=122) );
|
||||
Result := c in ['a'..'z','A'..'Z','0'..'9'];
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user