[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 12:05:52 +0900 |
On Sun, 16 Aug 2015 00:51:16 +0900
Norihiro Tanaka <address@hidden> wrote:
> 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.
I do not distinguish between eol and newline in previous patch, so I
fixed it. In addition, I wrote the patch that dfa does not distingish
letter and not letter in non-POSIX locales.
0001-dfa-simplify-for-non-POSIX-locales.patch
Description: Text document
0002-dfa-not-distingish-letter-and-not-letter-in-non-POSI.patch
Description: Text document