benilla-re systems structs docs

_isalpha

function · crt · primitive

Address
0x73fb91 · 46 bytes, up to 0x73fbbe
Signature
int32_t __cdecl (int32_t c)
Meaning
Tests a character's letter bits 0x103 in the table at _pctype, unchecked for negative values
Confidence
verified, proof one
Name from
the community database (idb)
Finding
crt/ctype#character-classes
Test
crt::crt_isalpha_difftest

Finding: Character classes in crt: characters

_ctype holds 16 bits for EOF and each byte, _pctype pointing at the entry for 0: controls 0x20, 9 to 13 0x28, the space 0x48, the digits 0x84, A to F 0x81, G to Z 0x01, a to f 0x82, g to z 0x02, other printable bytes 0x10, EOF and 0x80 to 0xff 0. isalpha(c) answers _pctype[c] & 0x103, nonzero for A to Z and a to z. Nothing bounds c: a negative one reads the words before the table. IsAllowedLaunchUrl passes each byte sign-extended, so from their file values the bytes 0xee, 0xef, 0xf5, 0xf7, 0xf9 and 0xfb to 0xfe pass as letters, 0xed to 0xf0 read two words code writes, and no byte 0x80 to 0xbf passes.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.