Ascii helper routines, part 1

Posted by on June 11, 2008

Whenever I have to manipulate strings in PB, on a low-level (ie. per-character basis) I find it almost imperative to have the following routines included in my project:

 is_alpha(); is_numeric(); is_symbol();

They are amongst the most basic routines out there, however, they are still useful nonetheless.

You can grab the include/source from here:

If you’re working on a Lexer, Parser, or similar… this will come in handy in case you don’t have it already.