MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / matchAny

Function matchAny

app/src/DataModel/Importers/ModbusMapImporter.cpp:81–88  ·  view source on GitHub ↗

* @brief Returns true if any of the literals matches the lowercase column name. */

Source from the content-addressed store, hash-verified

79 * @brief Returns true if any of the literals matches the lowercase column name.
80 */
81[[nodiscard]] static bool matchAny(const QString& col, std::initializer_list<QLatin1String> options)
82{
83 for (const auto& opt : options)
84 if (col == opt)
85 return true;
86
87 return false;
88}
89
90/**
91 * @brief Maps a single header cell to its column-map slot.

Callers 1

mapCsvHeaderColumnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected