A given character value will set/test one bit in the 64-bit filter, whose bit number is taken from low bits of the character value. For example 'b' (ASCII value 98) will set/test bit #34 in the filter. If the bit is set in the filter, the given character *may* be part of the matched characters. If the bit is unset in the filter, the given character *cannot* be part of the matched characters.
| 105 | // of the matched characters. If the bit is unset in the filter, |
| 106 | // the given character *cannot* be part of the matched characters. |
| 107 | FilterType CharFilter(uint8_t c) const { |
| 108 | return static_cast<FilterType>(1) << (c & kCharMask); |
| 109 | } |
| 110 | |
| 111 | FilterType MatchChar(uint8_t c) const { return CharFilter(c) & filter_; } |
| 112 |
nothing calls this directly
no outgoing calls
no test coverage detected