/[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.2.1 by afrab, Sun Oct 23 17:13:56 2005 UTC revision 1.8.2.2 by ipkiss, Sun Oct 23 20:58:19 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  /**  /**
21   *  \file   regexpmain.c   *  \file   regexpmain.c
22   *  \brief  Program used to test regexp   *  \brief  Program used to test regexp
# Line 39  Line 37 
37  /********************************************************/  /********************************************************/
38  /********************************************************/  /********************************************************/
39    
40  const unsigned int all_letter[DIC_LETTERS] =  const unsigned int all_letter[DIC_LETTERS] =
41    {    {
42      /*                      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 */
43      /* 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 */
44      /* 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 */
45         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
46    };    };
47    
48  const unsigned int vowels[DIC_LETTERS] =              const unsigned int vowels[DIC_LETTERS] =
49    {    {
50      /* 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 */
51         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
52    };    };
53    
54  const unsigned int consonants[DIC_LETTERS] =          const unsigned int consonants[DIC_LETTERS] =
55    {    {
56      /* 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 */
57         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
58    };    };
59    
60  void init_letter_lists(struct search_RegE_list_t *list)  void init_letter_lists(struct search_RegE_list_t *list)
# Line 76  void init_letter_lists(struct search_Reg Line 74  void init_letter_lists(struct search_Reg
74        list->letters[0][i] = all_letter[i];        list->letters[0][i] = all_letter[i];
75        list->letters[1][i] = vowels[i];        list->letters[1][i] = vowels[i];
76        list->letters[2][i] = consonants[i];        list->letters[2][i] = consonants[i];
77      }        }
78    list->valid[3] = 0; // user defined list 1    list->valid[3] = 0; // user defined list 1
79    list->symbl[3] = RE_USR1_MATCH;    list->symbl[3] = RE_USR1_MATCH;
80    list->valid[4] = 0; // user defined list 2    list->valid[4] = 0; // user defined list 2

Legend:
Removed from v.1.8.2.1  
changed lines
  Added in v.1.8.2.2

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