MCPcopy Create free account
hub / github.com/KDE/kid3 / fromString

Method fromString

src/core/model/eventtimingcode.cpp:135–143  ·  view source on GitHub ↗

* Create from string. * @param str untranslated string * @return event time code. */

Source from the content-addressed store, hash-verified

133 * @return event time code.
134 */
135EventTimeCode EventTimeCode::fromString(const char* str)
136{
137 for (int i = 0; i < numCodes; ++i) {
138 if (qstrcmp(codes[i].text, str) == 0) {
139 return EventTimeCode(codes[i].code);
140 }
141 }
142 return EventTimeCode(-1);
143}
144
145/**
146 * Create from index.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected