|
QtPass 2.0.0
Developer documentation
|
Implements FileContent::parse() as a single streaming pass over the entry, with the field cap, the display-line cap and the OTP candidate search, plus the cached secret-field-name matcher. More...
#include "filecontent.h"#include <QRegularExpression>#include <QCoreApplication>#include <QStringTokenizer>#include <algorithm>#include <limits>#include <utility>Go to the source code of this file.
Functions | |
| static auto | isOtpUri (const QString &value) -> bool |
| Shorthand for the public FileContent::isOtpUriValue. | |
| static auto | isLineHidden (const QString &line) -> bool |
| Whether a body line carries a TOTP shared secret and must stay out of the parsed display: a bare otpauth:// line, an OTP:/TOTP: field, or any field whose value is an otpauth URI. "Display the file's content
as-is" bypasses this filter and shows the entry raw. | |
Implements FileContent::parse() as a single streaming pass over the entry, with the field cap, the display-line cap and the OTP candidate search, plus the cached secret-field-name matcher.
Definition in file filecontent.cpp.
|
static |
Whether a body line carries a TOTP shared secret and must stay out of the parsed display: a bare otpauth:// line, an OTP:/TOTP: field, or any field whose value is an otpauth URI. "Display the file's content as-is" bypasses this filter and shows the entry raw.
| line | One line of the entry body. |
Definition at line 37 of file filecontent.cpp.
|
static |
Shorthand for the public FileContent::isOtpUriValue.
| value | A line or field value. |
Definition at line 25 of file filecontent.cpp.