bug-grep
[Top][All Lists]
Advanced

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

bug#21266: [PATCH] dfa: simplify for non-POSIX locales


From: Norihiro Tanaka
Subject: bug#21266: [PATCH] dfa: simplify for non-POSIX locales
Date: Sun, 16 Aug 2015 00:51:16 +0900

Now dfa is not support range, collating element, equivalent class in
non-POSIX locales.  We can do dfa more simply by removing codes for them.


First, I made update dfaexec_main.  Now transit_state is called only
when next character matches with ANYCHAR, and match_anychar always
returns the length of the multibyte character for next character at all
positions in the state.  So we can remove match_anychar.  Further more,
we can also remove check_matching_with_multibyte_ops, which is caller
for match_anychar.

Second, dfa does not support collating element, we can also simplify
transit_state.

In addition, simplify transit_state_singlebyte.

Attachment: 0001-dfa-simplify-for-non-POSIX-locales.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]