MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ToVector

Function ToVector

test/tests/StringTest.cpp:234–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232};
233
234static std::vector<char32_t> ToVector(std::string_view s)
235{
236 std::vector<char32_t> codepoints;
237 for (auto codepoint : CodepointView(s))
238 {
239 codepoints.push_back(codepoint);
240 }
241 return codepoints;
242}
243
244static void AssertCodepoints(std::string_view s, const std::vector<char32_t>& expected)
245{

Callers 1

AssertCodepointsFunction · 0.85

Calls 2

CodepointViewClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected