summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/StringCodecs/Hexify.cpp')
m---------Swiften0
-rw-r--r--Swiften/StringCodecs/Hexify.cpp22
2 files changed, 0 insertions, 22 deletions
diff --git a/Swiften b/Swiften
new file mode 160000
+Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c
diff --git a/Swiften/StringCodecs/Hexify.cpp b/Swiften/StringCodecs/Hexify.cpp
deleted file mode 100644
index 504e314..0000000
--- a/Swiften/StringCodecs/Hexify.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "Swiften/StringCodecs/Hexify.h"
-
-#include <sstream>
-#include <iomanip>
-#include <boost/numeric/conversion/cast.hpp>
-
-#include "Swiften/Base/String.h"
-#include "Swiften/Base/ByteArray.h"
-
-namespace Swift {
-
-String Hexify::hexify(const ByteArray& data) {
- std::ostringstream result;
- result << std::hex;
-
- for (unsigned int i = 0; i < data.getSize(); ++i) {
- result << std::setw(2) << std::setfill('0') << boost::numeric_cast<unsigned int>(static_cast<unsigned char>(data[i]));
- }
- return String(result.str());
-}
-
-}