| 857 | }; |
| 858 | |
| 859 | struct NextCharUTF16 { |
| 860 | base_icu::UChar32 operator()(const char16** p, const char16* end) { |
| 861 | base_icu::UChar32 c; |
| 862 | int offset = 0; |
| 863 | CBU16_NEXT(*p, offset, end - *p, c); |
| 864 | *p += offset; |
| 865 | return c; |
| 866 | } |
| 867 | }; |
| 868 | |
| 869 | bool MatchPattern(const butil::StringPiece& eval, |
| 870 | const butil::StringPiece& pattern) { |