Date: Mon, 8 Aug 2011 22:16:07 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r224723 - user/gabor/tre-integration/contrib/tre/lib Message-ID: <201108082216.p78MG71C065708@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gabor Date: Mon Aug 8 22:16:07 2011 New Revision: 224723 URL: http://svn.freebsd.org/changeset/base/224723 Log: - Fix matching . Modified: user/gabor/tre-integration/contrib/tre/lib/fastmatch.c Modified: user/gabor/tre-integration/contrib/tre/lib/fastmatch.c ============================================================================== --- user/gabor/tre-integration/contrib/tre/lib/fastmatch.c Mon Aug 8 20:53:04 2011 (r224722) +++ user/gabor/tre-integration/contrib/tre/lib/fastmatch.c Mon Aug 8 22:16:07 2011 (r224723) @@ -624,17 +624,19 @@ fastcmp(const void *pat, const void *dat #endif for (int i = len - 1; i >= 0; i--) { - if (pat_wide[i] == TRE_CHAR('.')) - continue; switch (type) { case STR_BYTE: case STR_MBS: + if (pat_byte[i] == '.') + continue; if (icase ? (tolower(pat_byte[i]) == tolower(str_byte[i])) : (pat_byte[i] == str_byte[i])) continue; break; case STR_WIDE: + if (pat_wide[i] == L'.') + continue; if (icase ? (towlower(pat_wide[i]) == towlower(str_wide[i])) : (pat_wide[i] == str_wide[i])) continue;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108082216.p78MG71C065708>