MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / has_option

Function has_option

src/api_builder/build_csharp.cpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static 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
75template<typename T>
76static bool has_any_options( json_value* options, const T& list ) {

Callers 1

has_any_optionsFunction · 0.85

Calls 2

jsonArrayIteratorClass · 0.85
get_object_stringFunction · 0.85

Tested by

no test coverage detected