| 5023 | |
| 5024 | |
| 5025 | inline ActionTypeType Script::ConvertActionType(LPCTSTR aActionTypeString) |
| 5026 | // inline since it's called so often, but don't keep it in the .h due to #include issues. |
| 5027 | { |
| 5028 | // For the loop's index: |
| 5029 | // Use an int rather than ActionTypeType since it's sure to be large enough to go beyond |
| 5030 | // 256 if there happen to be exactly 256 actions in the array: |
| 5031 | for (int action_type = ACT_FIRST_NAMED_ACTION; action_type <= ACT_LAST_NAMED_ACTION; ++action_type) |
| 5032 | if (!_tcsicmp(aActionTypeString, g_act[action_type].Name)) // Match found. |
| 5033 | return action_type; |
| 5034 | return ACT_INVALID; // On failure to find a match. |
| 5035 | } |
| 5036 | |
| 5037 | |
| 5038 |
nothing calls this directly
no outgoing calls
no test coverage detected