| 891 | } |
| 892 | |
| 893 | struct NextCharUTF8 { |
| 894 | Rune operator()(const char** p, const char* end) { |
| 895 | Rune c; |
| 896 | int offset = charntorune(&c, *p, static_cast<int>(end - *p)); |
| 897 | *p += offset; |
| 898 | return c; |
| 899 | } |
| 900 | }; |
| 901 | |
| 902 | bool MatchPattern(const StringPiece& eval, |
| 903 | const StringPiece& pattern) { |