| 847 | } |
| 848 | |
| 849 | struct NextCharUTF8 { |
| 850 | base_icu::UChar32 operator()(const char** p, const char* end) { |
| 851 | base_icu::UChar32 c; |
| 852 | int offset = 0; |
| 853 | CBU8_NEXT(*p, offset, end - *p, c); |
| 854 | *p += offset; |
| 855 | return c; |
| 856 | } |
| 857 | }; |
| 858 | |
| 859 | struct NextCharUTF16 { |
| 860 | base_icu::UChar32 operator()(const char16** p, const char16* end) { |