MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / needsFieldNormalization

Function needsFieldNormalization

pj_datastore/src/plugin_data_host.cpp:63–65  ·  view source on GitHub ↗

A field also needs work if it starts with '/' (a leading slash would double up at the "topic/field" junction), not just when it has internal "//".

Source from the content-addressed store, hash-verified

61// A field also needs work if it starts with '/' (a leading slash would double up at
62// the "topic/field" junction), not just when it has internal "//".
63[[nodiscard]] bool needsFieldNormalization(std::string_view name) {
64 return needsSlashNormalization(name) || (!name.empty() && name.front() == '/');
65}
66
67[[nodiscard]] std::string normalizeSlashes(std::string_view name) {
68 std::string out;

Callers 2

ensureFieldMethod · 0.85
appendRecordMethod · 0.85

Calls 2

needsSlashNormalizationFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected