29 const char *
const *descriptions,
const char *end_marker)
34 ((end_marker == NULL) && (descriptions[index] != NULL))
35 || ((end_marker != NULL) && (::strcmp(descriptions[index], end_marker) != 0));
39 if (::strcmp(str.c_str(), descriptions[index]) == 0)
52 const std::vector<std::string>& descriptions)
56 for (T index = 0; index < T(descriptions.size()); ++index)
59 if (str == descriptions[std::size_t(index)])
71 const std::vector<std::string>& descriptions)
73 return impl::string2Enum<int32_t>(str, value, descriptions);
77 const std::vector<std::string>& descriptions)
79 return impl::string2Enum<int64_t>(str, value, descriptions);
83 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 86 const char *
const *descriptions,
const char *end_marker)
88 return string2Enum(str, value, descriptions, end_marker);
bool string2Enum(const String &str, int32_t &value, const char *const *descriptions, const char *end_marker)
bool string2Enum(const String &str, T &value, const std::vector< std::string > &descriptions)
Contains helper functions to handle enums with textual descriptions.