Fix ignoring override blocks for CPS calculations

This commit is contained in:
Thomas Goyne 2014-05-08 12:33:54 -07:00
parent 679b96fdfe
commit b4d49511be

View file

@ -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;