MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / ToString

Method ToString

src/DictEntry.cpp:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21using namespace opencc;
22
23std::string MultiValueDictEntry::ToString() const {
24 // TODO escape space
25 size_t i = 0;
26 size_t length = Values().size();
27 std::ostringstream buffer;
28 buffer << KeyView() << '\t';
29 for (const std::string& value : Values()) {
30 buffer << value;
31 if (i < length - 1) {
32 buffer << ' ';
33 }
34 i++;
35 }
36 return buffer.str();
37}

Callers 4

TEST_FFunction · 0.45
BuildTrieMethod · 0.45
SerializeToFileMethod · 0.45
InspectMethod · 0.45

Calls 4

KeyViewFunction · 0.85
ValuesFunction · 0.70
sizeMethod · 0.45
strMethod · 0.45

Tested by 1

TEST_FFunction · 0.36