MCPcopy Create free account
hub / github.com/czyt1988/SARibbon / isInArray

Function isInArray

example/ThemeDesignerExample/mainwindow.cpp:121–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120static bool isInSet(const char* token, const QSet<QString>& set) { return set.contains(QString(token)); }
121static bool isInArray(const char* token, const char* const* arr, int count)
122{
123 for (int i = 0; i < count; ++i) if (strcmp(token, arr[i]) == 0) return true;
124 return false;
125}
126
127}
128

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected