| 1118 | } |
| 1119 | |
| 1120 | static TitleMatchModes ConvertTitleMatchMode(LPTSTR aBuf) |
| 1121 | { |
| 1122 | if (!aBuf || !*aBuf) return MATCHMODE_INVALID; |
| 1123 | if (*aBuf == '1' && !*(aBuf + 1)) return FIND_IN_LEADING_PART; |
| 1124 | if (*aBuf == '2' && !*(aBuf + 1)) return FIND_ANYWHERE; |
| 1125 | if (*aBuf == '3' && !*(aBuf + 1)) return FIND_EXACT; |
| 1126 | if (!_tcsicmp(aBuf, _T("RegEx"))) return FIND_REGEX; // Goes with the above, not fast/slow below. |
| 1127 | |
| 1128 | if (!_tcsicmp(aBuf, _T("FAST"))) return FIND_FAST; |
| 1129 | if (!_tcsicmp(aBuf, _T("SLOW"))) return FIND_SLOW; |
| 1130 | return MATCHMODE_INVALID; |
| 1131 | } |
| 1132 | |
| 1133 | static ThreadCommands ConvertThreadCommand(LPTSTR aBuf) |
| 1134 | { |
nothing calls this directly
no outgoing calls
no test coverage detected