MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / getContent

Method getContent

example/searchdialog.cpp:77–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77QByteArray SearchDialog::getContent(int comboIndex, const QString &input)
78{
79 QByteArray findBa;
80 switch (comboIndex)
81 {
82 case 0: // hex
83 findBa = QByteArray::fromHex(input.toLatin1());
84 break;
85 case 1: // text
86 findBa = input.toUtf8();
87 break;
88 }
89 return findBa;
90}
91
92qint64 SearchDialog::replaceOccurrence(qint64 idx, const QByteArray &replaceBa)
93{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected