/[eliot]/eliot/dic/regexpmain.c
ViewVC logotype

Diff of /eliot/dic/regexpmain.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by ipkiss, Sun Oct 23 14:53:43 2005 UTC revision 1.9 by ipkiss, Fri Nov 4 20:00:06 2005 UTC
# Line 17  Line 17 
17  /* along with this program; if not, write to the Free Software               */  /* along with this program; if not, write to the Free Software               */
18  /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */  /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
19    
 /* $Id$ */  
   
20  #include "config.h"  #include "config.h"
21  #include <stdio.h>  #include <stdio.h>
22  #include <stdlib.h>  #include <stdlib.h>
# Line 32  Line 30 
30  /********************************************************/  /********************************************************/
31  /********************************************************/  /********************************************************/
32    
33  const unsigned int all_letter[DIC_LETTERS] =  const unsigned int all_letter[DIC_LETTERS] =
34    {    {
35      /*                      1  1 1 1 1 1 1 1 1 1 2 2 2  2  2  2  2 */      /*                      1  1 1 1 1 1 1 1 1 1 2 2 2  2  2  2  2 */
36      /* 0 1 2 3 4  5 6 7 8 9 0  1 2 3 4 5 6 7 8 9 0 1 2  3  4  5  6 */      /* 0 1 2 3 4  5 6 7 8 9 0  1 2 3 4 5 6 7 8 9 0 1 2  3  4  5  6 */
37      /* x A B C D  E F G H I J  K L M N O P Q R S T U V  W  X  Y  Z */      /* x A B C D  E F G H I J  K L M N O P Q R S T U V  W  X  Y  Z */
38         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         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
39    };    };
40    
41  const unsigned int vowels[DIC_LETTERS] =              const unsigned int vowels[DIC_LETTERS] =
42    {    {
43      /* x A B C D  E F G H I J  K L M N O P Q R S T U V  W  X  Y  Z */      /* x A B C D  E F G H I J  K L M N O P Q R S T U V  W  X  Y  Z */
44         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         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
45    };    };
46    
47  const unsigned int consonants[DIC_LETTERS] =          const unsigned int consonants[DIC_LETTERS] =
48    {    {
49      /* x A B C D  E F G H I J  K L M N O P Q R S T U V  W  X  Y  Z */      /* x A B C D  E F G H I J  K L M N O P Q R S T U V  W  X  Y  Z */
50         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         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
51    };    };
52    
53  void init_letter_lists(struct search_RegE_list_t *list)  void init_letter_lists(struct search_RegE_list_t *list)
# Line 67  void init_letter_lists(struct search_Reg Line 65  void init_letter_lists(struct search_Reg
65        list->letters[0][i] = all_letter[i];        list->letters[0][i] = all_letter[i];
66        list->letters[1][i] = vowels[i];        list->letters[1][i] = vowels[i];
67        list->letters[2][i] = consonants[i];        list->letters[2][i] = consonants[i];
68      }        }
69    list->valid[3] = 0; // user defined list 1    list->valid[3] = 0; // user defined list 1
70    list->symbl[3] = RE_USR1_MATCH;    list->symbl[3] = RE_USR1_MATCH;
71    list->valid[4] = 0; // user defined list 2    list->valid[4] = 0; // user defined list 2

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26