Skip to content
Phosphor
/
API Reference
Search
PlasmaZones
Libraries
Guides
Brand
Palette
About
GitHub
Discord
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
27
namespace
PhosphorRules
{
28
29
namespace
Detail
{
30
33
inline
QString
encodeSegment
(
const
QString& segment)
34
{
35
return
QString::number(segment.size()) + QLatin1Char(
':'
) + segment;
36
}
37
38
}
// namespace Detail
39
40
}
// namespace PhosphorRules
PhosphorRules::Detail
Definition
IdentityKey.h:29
PhosphorRules::Detail::encodeSegment
QString encodeSegment(const QString &segment)
Length-prefix a segment so concatenated identity keys are unambiguous.
Definition
IdentityKey.h:33
PhosphorRules
Definition
ActionParams.h:25
phosphor-rules
include
PhosphorRules
IdentityKey.h
Generated by
1.15.0