| 108 | } |
| 109 | |
| 110 | CycleMode cycleFromString(const std::string& str) { |
| 111 | if (compare_nocase(str, "loop") == 0) { |
| 112 | return eLoopInf; |
| 113 | } |
| 114 | else if (compare_nocase(str, "random") == 0) { |
| 115 | return eRandomInf; |
| 116 | } |
| 117 | else if (compare_nocase(str, "onerand") == 0) { |
| 118 | return eRandomOnce; |
| 119 | } |
| 120 | |
| 121 | return eNoLoop; |
| 122 | } |
| 123 | |
| 124 | const char* cycleToString(CycleMode mode) { |
| 125 | if (mode == eLoopInf) { |
no test coverage detected