| 61 | } |
| 62 | |
| 63 | static bool has_option( json_value* options, const std::string& option ) { |
| 64 | if( !options ) |
| 65 | return false; |
| 66 | |
| 67 | for( auto& it : jsonArrayIterator(options) ) { |
| 68 | if( get_object_string( it ) == option ) |
| 69 | return true; |
| 70 | } |
| 71 | |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | template<typename T> |
| 76 | static bool has_any_options( json_value* options, const T& list ) { |
no test coverage detected