MCPcopy Create free account
hub / github.com/chris2511/xca / stringFromData

Function stringFromData

lib/pki_temp.cpp:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 return c ? true : false;
46 }
47 QString stringFromData(QByteArray &ba)
48 {
49 int idx = ba.indexOf('\0');
50
51 if (idx == -1)
52 throw errorEx(QObject::tr("Error finding endmarker of string"));
53
54 QString ret = QString::fromUtf8(ba.constData(), idx);
55 ba = ba.mid(idx+1);
56 return ret;
57 }
58};
59
60const QList<QString> pki_temp::tmpl_keys = {

Callers 1

old_fromDataMethod · 0.85

Calls 2

errorExClass · 0.85
indexOfMethod · 0.80

Tested by

no test coverage detected