RegExp DEMO version -- [3]核心函数(5)dealState()

作者在 2007-06-02 21:45:00 发布以下内容
                         case DOT:
                             for (OR_MACHINE_i=0; OR_MACHINE_i<(int)'\n'; OR_MACHINE_i++) {
                                 g_ele_ary[OR_MACHINE_i] = 1;
                             }
                             for (OR_MACHINE_i=(int)'\n' + 1; OR_MACHINE_i<=sizeof(g_ele_ary); OR_MACHINE_i++) {
                                 g_ele_ary[OR_MACHINE_i] = 1;
                             }
                             break;
                         case NUMBER:
                             for (OR_MACHINE_i=(int)'0'; OR_MACHINE_i<=(int)'9'; OR_MACHINE_i++) {
                                 g_ele_ary[OR_MACHINE_i] = 1;
                             }
                             break;
                         case NOT_NUMBER:
                             for (OR_MACHINE_i=0; OR_MACHINE_i<=(int)'0'; OR_MACHINE_i++) {
                                 g_ele_ary[OR_MACHINE_i] = 1;
                             }
                             for (OR_MACHINE_i=(int)'9' + 1; OR_MACHINE_i<=sizeof(g_ele_ary); OR_MACHINE_i++) {
                                 g_ele_ary[OR_MACHINE_i] = 1;
                             }
   &nb
C语言 | 阅读 1420 次
文章评论,共0条
游客请输入验证码