19 size_t index_of(
const std::vector<std::string>& list,
const char* str) {
20 for (
size_t i = 0; i < list.size(); ++i) {
24 std::string reason =
"Could not find index_of() ";
26 throw std::runtime_error(reason);
29 size_t index_of(
const std::vector<std::string>& list,
const std::string& str) {
30 for (
size_t i = 0; i < list.size(); ++i) {
34 std::string reason =
"Could not find index_of() ";
36 throw std::runtime_error(reason);
39 size_t index_of_icase(
const std::vector<std::string>& list,
const char* str) {
40 for (
size_t i = 0; i < list.size(); ++i) {
44 std::string reason =
"Could not find index_of_icase() ";
46 throw std::runtime_error(reason);
50 index_of_icase(
const std::vector<std::string>& list,
const std::string& str) {
51 for (
size_t i = 0; i < list.size(); ++i) {
55 std::string reason =
"Could not find index_of_icase() ";
57 throw std::runtime_error(reason);