Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F27683854
anchorcache_p.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
736 B
Subscribers
None
anchorcache_p.h
View Options
/*
This file is part of Kleopatra, the KDE keymanager
SPDX-FileCopyrightText: 2022 g10 Code GmbH
SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include
<QString>
#include
<vector>
struct
AnchorData
{
int
start
;
int
end
;
QString
text
;
QString
href
;
};
class
AnchorCache
{
public
:
void
setText
(
const
QString
&
text
);
void
clear
();
int
size
()
const
;
const
AnchorData
&
operator
[](
int
index
)
const
;
int
findAnchor
(
int
start
)
const
;
private
:
const
std
::
vector
<
AnchorData
>
&
anchors
()
const
;
private
:
QString
mText
;
mutable
bool
mAnchorsValid
=
false
;
mutable
std
::
vector
<
AnchorData
>
mAnchors
;
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Sep 16, 11:58 AM (21 h, 33 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1a/fe/d309483e723adda149de1b2ee94d
Attached To
rKLEOPATRA Kleopatra
Event Timeline
Log In to Comment