MCPcopy Create free account
hub / github.com/MultiMC/Launcher / parse

Method parse

launcher/Version.cpp:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void Version::parse()
75{
76 m_sections.clear();
77
78 // FIXME: this is bad. versions can contain a lot more separators...
79 QStringList parts = m_string.split('.');
80
81 for (const auto &part : parts)
82 {
83 m_sections.append(Section(part));
84 }
85}

Callers 2

ApplicationMethod · 0.45
messageReceivedMethod · 0.45

Calls 3

SectionClass · 0.85
appendMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected