MCPcopy Create free account
hub / github.com/KDE/kdiff3 / load

Method load

src/common.cpp:53–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void ValueMap::load(QTextStream& ts)
54{
55 while(!ts.atEnd())
56 { // until end of file...
57 QString s = ts.readLine(); // line of text excluding '\n'
58 qsizetype pos = s.indexOf('=');
59 if(pos > 0) // seems not to have a tag
60 {
61 QString key = s.left(pos);
62 QString val = s.mid(pos + 1);
63 m_map[key] = val;
64 }
65 }
66}
67
68// safeStringJoin and safeStringSplit allow to convert a stringlist into a string and back
69// safely, even if the individual strings in the list contain the separator character.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected