Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
IdentityKey.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <QChar>
7#include <QString>
8
26
27namespace PhosphorRules {
28
29namespace Detail {
30
33inline QString encodeSegment(const QString& segment)
34{
35 return QString::number(segment.size()) + QLatin1Char(':') + segment;
36}
37
38} // namespace Detail
39
40} // namespace PhosphorRules
Definition IdentityKey.h:29
QString encodeSegment(const QString &segment)
Length-prefix a segment so concatenated identity keys are unambiguous.
Definition IdentityKey.h:33
Definition ActionParams.h:25