JASSv2
Enumerations | Functions | Variables
ascii_database_to_c.cpp File Reference

Generate C sourcecode for is() methods for ASCII. More...

#include <time.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
Include dependency graph for ascii_database_to_c.cpp:

Enumerations

enum  character_type {
  UPPER = 1, LOWER = 2, DIGIT = 4, CONTROL = 8,
  PUNC = 16, SPACE = 32, HEX = 64, DNA = 128,
  VOWEL = 256, VOWELY = 512
}
 

Functions

void print_this (long ch)
 Print out the table entries the given character. More...
 
int main (void)
 

Variables

const char * names []
 

Detailed Description

Generate C sourcecode for is() methods for ASCII.

Author
Andrew Trotman

Enumeration Type Documentation

◆ character_type

Enumerator
UPPER 

character is uppercase

LOWER 

character is lowercase

DIGIT 

character is a digit

CONTROL 

character is a control character

PUNC 

character is punctuation

SPACE 

character is a whitespace

HEX 

character is a hexadecimal digit

DNA 

character is a DNA base (i.e in: {ACTGactg})

VOWEL 

character is a vowel (i.e. {AEIOUaeiou})

VOWELY 

character is a vowel or Y (i.e. {AEIOUYaeiouy})

Function Documentation

◆ main()

int main ( void  )

< The character currently being examined.

< What is the current truth for this character?

Examples:
parser_use.cpp.

◆ print_this()

void print_this ( long  ch)

Print out the table entries the given character.

Parameters
ch[in] the characer to print the detals of

< pointer to the name of the given bit

< used to determine whether or not a '|' should be printed

Variable Documentation

◆ names

const char* names[]
Initial value:
=
{
"UPPER",
"LOWER",
"DIGIT",
"CONTROL",
"PUNC",
"SPACE",
"HEX",
"DNA",
"VOWEL",
"VOWELY",
}