Debian Codegraph @

Source/Core/DolphinQt/QtUtils/UTF8CodePointCountValidator.h

raw symbols SCIP
1 // Copyright 2020 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <cstddef>
7
8 #include <QString>
9 #include <QValidator>
10
11 class UTF8CodePointCountValidator : public QValidator
12 {
13 Q_OBJECT
14 public:
15 explicit UTF8CodePointCountValidator(std::size_t max_count, QObject* parent = nullptr);
16
17 QValidator::State validate(QString& input, int& pos) const override;
18
19 private:
20 std::size_t m_max_count;
21 };