summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearray.h
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2012-07-07 18:11:00 +0200
committerAndré Hartmann <aha_1980@gmx.de>2016-12-24 21:05:43 +0000
commit615027129d3d5e12a6e2f5d02d2af8320cc58ea7 (patch)
tree53bfdc8d0c1742dd7f416854f9eeaed6ef2ab029 /src/corelib/tools/qbytearray.h
parent8266de089cdc85a5ac93361e22722ba817878c4b (diff)
QByteArray: Overload toHex() with separator character
The separator character is inserted in the resulting array after every byte and is useful for MAC address output like 01:23:45:ab:cd:ef, Hash fingerprints, or low level data debug output. [ChangeLog][QtCore][QByteArray] Added toHex() overload to insert a separator character between the hex bytes. Change-Id: Ibe436094badc02f3ade7751aa8b5d690599941d4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
-rw-r--r--src/corelib/tools/qbytearray.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qbytearray.h b/src/corelib/tools/qbytearray.h
index 6875cbd764..cb94b30c2d 100644
--- a/src/corelib/tools/qbytearray.h
+++ b/src/corelib/tools/qbytearray.h
@@ -357,6 +357,7 @@ public:
QByteArray toBase64(Base64Options options) const;
QByteArray toBase64() const; // ### Qt6 merge with previous
QByteArray toHex() const;
+ QByteArray toHex(char separator) const; // ### Qt6 merge with previous
QByteArray toPercentEncoding(const QByteArray &exclude = QByteArray(),
const QByteArray &include = QByteArray(),
char percent = '%') const;