check if a single character is a whitespace?
<p>What is the best way to check if a single character is a whitespace?</p>

<p>I know how to check this through a regular expression.</p>

<p>But I am not sure if this is the best way if I only have a single character.</p>

<p>Isn't there a better way (concerning performance) for checking if it's a whitespace?</p>

<p>If I do something like this, I would miss white spaces like tabs I quess?:
 if (ch == ' ') {
   ....
 }</p>
