Hi Folks,
still translating c-code.
How do i check if a Integer is a control-character?
int MyFunction(int c)
{
return c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v';
}
Function MyFunction(c:Integer):Boolean
Begin
Result:=(c=Ord(' ')) Or //???????
End;
For the life of me i can't find anyting for this.
And yes, i'm aware that i'm checking if c is a whitespace-character
And, no. I'm using {H+} so IsWhiteSpace-Function is not option.
EDIT: After reading up on it: Or is it enough to check if #32 and everything <= #13 ?