mrDarker
2025-03-24 3628a707a38e1c590216c5983c9b97b9c742f86c
SourceCode/Bond/Servo/ToolUnits.cpp
@@ -2,6 +2,7 @@
#include "ToolUnits.h"
#include <chrono>
#include <memory>
#include <sstream>
CToolUnits::CToolUnits()
@@ -306,4 +307,13 @@
bool CToolUnits::startsWith(const std::string& str, const std::string& prefix)
{
   return str.size() >= prefix.size() && str.compare(0, prefix.size(), prefix) == 0;
}
std::string& CToolUnits::toHexString(int value, std::string& strOut)
{
   std::stringstream ss;
   ss << std::hex << value;
   strOut = ss.str();
   return strOut;
}