<p>If I have a range of say <code>000080-0007FF</code>
and I want to see if a char containing hex is within that range, how can I do it?</p>

<p>Example</p>

<pre><code>char t = 0xd790;

if (t is within range of 000080-0007FF) // true
</code></pre>

```
```
wchar_t t = 0xd790;

if (t >= 0x80 && t <= 0x7ff) ...
```
```
In C++, characters are interchangeable with integers and you can compare their values directly.
Note that I used
```
wchar_t
```
, because the
```
char
```
data type can only hold values up to 0xFF.