Fix ignoring override blocks for CPS calculations
This commit is contained in:
parent
679b96fdfe
commit
b4d49511be
1 changed files with 3 additions and 3 deletions
|
@ -84,9 +84,9 @@ int ignore_mask_to_icu_mask(int mask) {
|
|||
}
|
||||
|
||||
namespace agi {
|
||||
size_t CharacterCount(std::string::const_iterator begin, std::string::const_iterator end, int mask) {
|
||||
mask = ignore_mask_to_icu_mask(mask);
|
||||
if ((mask & agi::IGNORE_BLOCKS) == 0)
|
||||
size_t CharacterCount(std::string::const_iterator begin, std::string::const_iterator end, int ignore) {
|
||||
int mask = ignore_mask_to_icu_mask(ignore);
|
||||
if ((ignore & agi::IGNORE_BLOCKS) == 0)
|
||||
return count_in_range(begin, end, mask);
|
||||
|
||||
size_t characters = 0;
|
||||
|
|
Loading…
Reference in a new issue