* Create from string. * @param str untranslated string * @return event time code. */
| 133 | * @return event time code. |
| 134 | */ |
| 135 | EventTimeCode 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. |
nothing calls this directly
no outgoing calls
no test coverage detected