Re: [PATCH 2/2] grep: don't call regexec() for fixed strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/1/10 René Scharfe <rene.scharfe@xxxxxxxxxxxxxx>:> +static int isregexspecial(int c)> +{> +       return isspecial(c) || c == '$' || c == '(' || c == ')' || c == '+' ||> +                              c == '.' || c == '^' || c == '{' || c == '|';> +}> +> +static int is_fixed(const char *s)> +{> +       while (!isregexspecial(*s))> +               s++;> +       return !*s;> +}
strchr?��.n��������+%������w��{.n��������n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�m


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux