MCPcopy Create free account
hub / github.com/apache/brpc / SplitString

Function SplitString

test/string_split_unittest.cc:26–33  ·  view source on GitHub ↗

Overload SplitString with a wide-char version to make it easier to test the string16 version with wide character literals.

Source from the content-addressed store, hash-verified

24// Overload SplitString with a wide-char version to make it easier to
25// test the string16 version with wide character literals.
26void SplitString(const std::wstring& str,
27 wchar_t c,
28 std::vector<std::wstring>* result) {
29 std::vector<string16> result16;
30 SplitString(WideToUTF16(str), c, &result16);
31 for (size_t i = 0; i < result16.size(); ++i)
32 result->push_back(UTF16ToWide(result16[i]));
33}
34#endif
35
36} // anonymous namespace

Callers 1

TESTFunction · 0.70

Calls 4

WideToUTF16Function · 0.85
UTF16ToWideFunction · 0.85
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected