regexpmain.c File Reference


Detailed Description

Program used to test regexp.

Author:
Antoine Fraboulet
Date:
2005

Definition in file regexpmain.c.

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dic.h"
#include "regexp.h"
#include "dic_search.h"

Go to the source code of this file.

Functions

void init_letter_lists (struct search_RegE_list_t *list)
void usage (int argc, char *argv[])
int main (int argc, char *argv[])

Variables

const unsigned int all_letter [DIC_LETTERS]
const unsigned int vowels [DIC_LETTERS]
const unsigned int consonants [DIC_LETTERS]


Function Documentation

void init_letter_lists struct search_RegE_list_t list  ) 
 

Definition at line 60 of file regexpmain.c.

References all_letter, consonants, DIC_LETTERS, RE_ALL_MATCH, RE_CONS_MATCH, RE_VOWL_MATCH, and vowels.

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 94 of file regexpmain.c.

References Dic_load(), Dic_search_RegE(), DIC_WORD_MAX, init_letter_lists(), RES_REGE_MAX, and usage().

void usage int  argc,
char *  argv[]
 

Definition at line 88 of file regexpmain.c.


Variable Documentation

const unsigned int all_letter[DIC_LETTERS]
 

Initial value:

  {
    
    
    
       0,1,1,1,1, 1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1, 1, 1, 1, 1
  }

Definition at line 40 of file regexpmain.c.

Referenced by init_letter_lists().

const unsigned int consonants[DIC_LETTERS]
 

Initial value:

  {
    
       0,0,1,1,1, 0,1,1,1,0,1, 1,1,1,1,0,1,1,1,1,1,0,1, 1, 1, 1, 1
  }

Definition at line 54 of file regexpmain.c.

Referenced by init_letter_lists().

const unsigned int vowels[DIC_LETTERS]
 

Initial value:

  {
    
       0,1,0,0,0, 1,0,0,0,1,0, 0,0,0,0,1,0,0,0,0,0,1,0, 0, 0, 1, 0
  }

Definition at line 48 of file regexpmain.c.

Referenced by init_letter_lists().


Generated on Thu Dec 29 02:01:15 2005 for Eliot by  doxygen 1.4.5