MCPcopy Create free account
hub / github.com/bluescan/tacentview / Parser

Method Parser

Src/Version.cpp:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28ViewerVersion::Parser::Parser(const char* verStr)
29{
30 if (Parsed)
31 return;
32
33 tList<tStringItem> components;
34 tStd::tExplode(components, tString(verStr), '.');
35
36 tStringItem* comp = components.First(); Major = comp->GetAsInt(10);
37 comp = comp->Next(); Minor = comp->GetAsInt(10);
38 comp = comp->Next(); Revision = comp->GetAsInt(10);
39 Parsed = true;
40}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected