MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / FragmentString

Function FragmentString

internal/utf8_test.cc:248–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248std::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
257TEST_P(Utf8DecodeTest, CordFragmented) {
258 const Utf8DecodeTestCase& test_case = GetParam();

Callers 1

TEST_PFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected