| 246 | } |
| 247 | |
| 248 | std::vector<std::string> FragmentString(absl::string_view text) { |
| 249 | std::vector<std::string> fragments; |
| 250 | fragments.reserve(text.size()); |
| 251 | for (const auto& c : text) { |
| 252 | fragments.emplace_back().push_back(c); |
| 253 | } |
| 254 | return fragments; |
| 255 | } |
| 256 | |
| 257 | TEST_P(Utf8DecodeTest, CordFragmented) { |
| 258 | const Utf8DecodeTestCase& test_case = GetParam(); |