Function mosaic::sanitize_label#
Defined in File session_name.hpp
Function Documentation#
-
QString mosaic::sanitize_label(const QString &raw, int maxChars = k_max_label_chars)#
Best-effort coercion of operator input into a valid label.
Normalizes to NFKD and drops combining marks first, so “Müller” becomes “Muller” rather than “Mller” — dropping the accented letter entirely would quietly merge two different participants. Case is preserved: BIDS treats “rest” and “Rest” as different labels, and silently folding case would hide that from an operator who typed one and meant the other.
Idempotent by construction: sanitize(sanitize(x)) == sanitize(x).