MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / StringToMdMonotony

Function StringToMdMonotony

lib/mdflib/mdflib/src/cncomment.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28MdMonotony StringToMdMonotony(const std::string& mon_text) {
29 for (size_t index = 0; index < kMonotonyList.size(); ++index ) {
30 if (mon_text == kMonotonyList[index]) {
31 return static_cast<MdMonotony>(index);
32 }
33 }
34 return MdMonotony::NotMono;
35}
36
37CnComment::CnComment()
38: MdComment("CN") {

Callers 1

FromXmlMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected